function createMarker(point, html, StartEnd) { var markerImage = "Images/AirplaneIcon.gif"; var markerIcon = new GIcon(G_DEFAULT_ICON); markerIcon.image = markerImage; markerIcon.iconSize = new GSize(50, 50); markerIcon.iconAnchor = new GPoint(25, 25); var markerImage2 = "/Icons/IntersectionIconRed.png"; var markerIcon2 = new GIcon(G_DEFAULT_ICON); markerIcon2.image = markerImage2; markerIcon2.iconSize = new GSize(25, 25); markerIcon2.iconAnchor = new GPoint(20, 20); // var markerImage2 = "http://localhost:3301/icons/Icons.aspx"; // var markerIcon2 = new GIcon(G_DEFAULT_ICON); // markerIcon2.image = markerImage2; // markerIcon2.iconSize = new GSize(25, 25); // markerIcon2.iconAnchor = new GPoint(20, 20); var marker; if (StartEnd == "true") { marker = new GMarker(point, { icon: markerIcon }); } else { marker = new GMarker(point, { icon: markerIcon2 }); } GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); }); return marker; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)