private void Initialize() { Id = "map"; ClientEvents = new GoogleMapClientEvents(); MarkerClientEvents = new MarkerClientEvents(); DisableDoubleClickZoom = false; Draggable = true; EnableMarkersClustering = false; Latitude = 23; Longitude = -82; Layers = new List <Layer>(); MapTypeId = MapTypes.Roadmap.ToClientSideString(); MapTypeControlPosition = ControlPosition.TopRight; MapTypeControlVisible = true; ImageMapTypes = new List <ImageMapType>(); StyledMapTypes = new List <StyledMapType>(); Markers = new List <Marker>(); MarkerClusteringOptions = new MarkerClusteringOptions(); Polygons = new List <Polygon>(); Circles = new List <Circle>(); PanControlPosition = ControlPosition.TopLeft; PanControlVisible = true; OverviewMapControlVisible = false; OverviewMapControlOpened = false; StreetViewControlVisible = true; StreetViewControlPosition = ControlPosition.TopLeft; ZoomControlVisible = true; ZoomControlPosition = ControlPosition.TopLeft; ZoomControlStyle = ZoomControlStyle.Default; ScaleControlVisible = false; Height = 0; Width = 0; UseCurrentPosition = false; }
public GoogleMapClientEventsBuilder(GoogleMapClientEvents clientEvents) { if (clientEvents == null) { throw new ArgumentNullException("clientEvents"); } this.ClientEvents = clientEvents; }
public GoogleMap(ViewContext viewContext) { ScriptFileNames = new List <string>(); ScriptFileNames.AddRange(new[] { "jmelosegui.googlemap.js" }); ClientEvents = new GoogleMapClientEvents(); if (viewContext == null) { throw new ArgumentNullException("viewContext"); } ViewContext = viewContext; Initialize(); }
public GoogleMapClientEventsBuilder(GoogleMapClientEvents clientEvents) { if(clientEvents == null)throw new ArgumentNullException("clientEvents"); this.ClientEvents = clientEvents; }