Example #1
0
        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);
        }
Example #2
0
 public void MapSetCenterZoom(LatLng center, Int32 zoom, Map mapJsObj)
 {
     HtmlPage.Window.Eval(mapJsObj.Id + ".setCenter(new GLatLng(" + center.ToString() + ")," + zoom.ToString() + ");");
 }
Example #3
0
 public void ShapeMarkerSetPoint(MapShapes shape, LatLng point)
 {
     HtmlPage.Window.Eval(shape.Id + ".setLatLng(new GLatLng(" + point.ToString() + "));");
 }