示例#1
0
        public void SerializeTo(ClientSideObjectWriter writer)
        {
            if (writer == null)
            {
                throw new ArgumentNullException(nameof(writer));
            }

            writer.AppendClientEvent("bounds_changed", this.OnMapBoundChanged);
            writer.AppendClientEvent("center_changed", this.OnMapCenterChanged);
            writer.AppendClientEvent("click", this.OnMapClick);
            writer.AppendClientEvent("dblclick", this.OnMapDoubleClick);
            writer.AppendClientEvent("rightclick", this.OnMapRightClick);
            writer.AppendClientEvent("drag", this.OnMapDrag);
            writer.AppendClientEvent("dragend", this.OnMapDragEnd);
            writer.AppendClientEvent("dragstart", this.OnMapDragStart);
            writer.AppendClientEvent("heading_changed", this.OnMapHeadingChanged);
            writer.AppendClientEvent("idle", this.OnMapIdle);
            writer.AppendClientEvent("maptypeid_changed", this.OnMapTypeIdChanged);
            writer.AppendClientEvent("mousemove", this.OnMouseMove);
            writer.AppendClientEvent("mouseout", this.OnMouseOut);
            writer.AppendClientEvent("mouseover", this.OnMouseOver);
            writer.AppendClientEvent("projection_changed", this.OnMapProjectionChanged);
            writer.AppendClientEvent("resize", this.OnResize);
            writer.AppendClientEvent("tilesloaded", this.OnTilesLoaded);
            writer.AppendClientEvent("resize", this.OnTiltChanged);
            writer.AppendClientEvent("zoom_changed", this.OnZoomChanged);
            writer.AppendClientEvent("map_loaded", this.OnMapLoaded);
            writer.AppendClientEvent("markers_geocoding_completed", this.OnMarkersGeocodingCompleted);
            writer.AppendClientEvent("markers_geocoding_progress", this.OnMarkersGeocodingProgress);
        }
示例#2
0
        public void SerializeTo(ClientSideObjectWriter writer)
        {
            if (writer == null)
            {
                throw new ArgumentNullException(nameof(writer));
            }

            writer.AppendClientEvent("animation_changed", this.OnMarkerAnimationChanged);
            writer.AppendClientEvent("click", this.OnMarkerClick);
            writer.AppendClientEvent("clickable_changed", this.OnMarkerClickableChanged);
            writer.AppendClientEvent("cursor_changed", this.OnMarkerCursorChanged);
            writer.AppendClientEvent("dblclick", this.OnMarkerDoubleClick);
            writer.AppendClientEvent("dragstart", this.OnMarkerDragStart);
            writer.AppendClientEvent("drag", this.OnMarkerDrag);
            writer.AppendClientEvent("dragend", this.OnMarkerDragEnd);
            writer.AppendClientEvent("flat_changed", this.OnMarkerFlatChanged);
            writer.AppendClientEvent("icon_changed", this.OnMarkerIconChanged);
            writer.AppendClientEvent("mousedown", this.OnMarkerMouseDown);
            writer.AppendClientEvent("mouseout", this.OnMarkerMouseOut);
            writer.AppendClientEvent("mouseover", this.OnMarkerMouseOver);
            writer.AppendClientEvent("mouseup", this.OnMarkerMouseUp);
            writer.AppendClientEvent("position_changed", this.OnMarkerPositionChanged);
            writer.AppendClientEvent("rightclick", this.OnMarkerRightClick);
            writer.AppendClientEvent("shape_changed", this.OnMarkerShapeChanged);
            writer.AppendClientEvent("title_changed", this.OnMarkerTitleChanged);
            writer.AppendClientEvent("visible_changed", this.OnMarkerVisibleChanged);
            writer.AppendClientEvent("zindex_changed", this.OnMarkerZIndexChanged);
        }