public void ShapeMarker(MapShapes shape, LatLng point, String title, String iconSource) { String icon = "G_DEFAULT_ICON"; if (iconSource != null) { icon = "new GIcon(G_DEFAULT_ICON,'" + iconSource + "')"; } String evalString = shape.Id + " = new GMarker(new GLatLng(" + point.ToString() + "),{title: '" + title + "',icon:" + icon + "});"; HtmlPage.Window.Eval(evalString); ShapeInitClickHandler(shape.Id); }
public void MapSetCenterZoom(LatLng center, Int32 zoom, Map mapJsObj) { HtmlPage.Window.Eval(mapJsObj.Id + ".setCenter(new GLatLng(" + center.ToString() + ")," + zoom.ToString() + ");"); }
public void ShapeMarkerSetPoint(MapShapes shape, LatLng point) { HtmlPage.Window.Eval(shape.Id + ".setLatLng(new GLatLng(" + point.ToString() + "));"); }