private void DetailsMap_MapZoom(object sender, MapZoomEventArgs e) { if (DetailsMap.TargetZoomLevel < 15) { BusStopsLayer.Visibility = System.Windows.Visibility.Collapsed; } else { BusStopsLayer.Visibility = System.Windows.Visibility.Visible; } }
private void DetailsMap_MapZoom(object sender, MapZoomEventArgs e) { if (DetailsMap.TargetZoomLevel < 15) BusStopsLayer.Visibility = System.Windows.Visibility.Collapsed; else BusStopsLayer.Visibility = System.Windows.Visibility.Visible; }
void map_MapZoom(object sender, MapZoomEventArgs e) { DumpMapSettings(); }
void _map_MapZoom(object sender, MapZoomEventArgs e) { UpdateFriendsOnMap(); }
void map_MapZoom(object sender, MapZoomEventArgs e) { _timer.Stop(); _args.ZoomOrScroll = ZoomScrollType.Zoom; _args.ZoomLevel = _map.ZoomLevel; _args.Center = _map.ViewportPointToLocation(e.ViewportPoint); _changedByEvents = true; }
void map_MapZoom( object sender, MapZoomEventArgs e ) { DumpMapSettings(); }
private void OSM_Map_MapZoom(object sender, MapZoomEventArgs e) { this.lastKnownZoom = this.OSM_Map.TargetZoomLevel; }
public void MapZoomed(object o, MapZoomEventArgs e) { // we need to reload the listModels again zoomlevel = Map.ZoomLevel; App.Log("Map zoomed to level " + zoomlevel.ToString()); bool _visiblePinsChanged = false; // When zoomed out to zoomlevel 15 and smaller show only the precinct pins if (zoomlevel < 15) { if (!ShowPrecincts || ShowStreets || ShowPushpins || _PrecinctFilter != "") { _PrecinctFilter = ""; _StreetFilter = ""; ShowPrecincts = true; ShowStreets = false; ShowPushpins = false; _visiblePinsChanged = true; _showDetails = false; } } // When zoomed between 15 and 16 show streets and precincts (TODO: Verify we want precincts to still be shown) else if (zoomlevel >= 15 && zoomlevel <= 16.2) { if (ShowPushpins) // We are zooming out - just show the streets { } if (!ShowStreets || ShowPrecincts || ShowPushpins || _StreetFilter != "") { _StreetFilter = ""; ShowPrecincts = false; // NOTE: Set this to false if precincts are in the way in street view ShowStreets = true; ShowPushpins = false; _visiblePinsChanged = true; _showDetails = false; } } // When zoomed in to 16 or closer just show the individual voter pins, hide street and precinct pins // TODO: We need a new pin type to represent an aggregate view of multi-family locations where // multiple voters map to the same geographic location. else { if (!ShowPushpins || ShowStreets || ShowPrecincts) { // NOTE: We are purposely not clearing the street or precinct filters when zooming in ShowPushpins = true; ShowStreets = false; ShowPrecincts = false; _visiblePinsChanged = true; } if (zoomlevel >= 18.0) // Needed to support changing pushpin content to expanded view { if (!_showDetails) { _showDetails = true; _visiblePinsChanged = true; } } else { if (_showDetails) { _showDetails = false; _visiblePinsChanged = true; } } } if (_visiblePinsChanged) { wait.Set(); } }