Exemple #1
0
 public override void CalcAppPointFromLatLng(IGeoMapLayer geoMapLayer, Rectangle mapBounds, int zoom, List <LatLng> latLngs, LatLng baseLatLng)
 {
     this.AppMapPanePoints = new List <Point>(latLngs.Count);
     foreach (LatLng latLng in latLngs)
     {
         this.AppMapPanePoints.Add(geoMapLayer.GetLocationInMapPaneFromLatLng(mapBounds, zoom, latLng, baseLatLng));
     }
 }
Exemple #2
0
 /// <summary>
 /// обработка события изменения поставщика отображения карты
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void miFile_MapProviders_Items_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (this.miFile_MapProviders_Items.SelectedIndex == 0)
     {
         this._geoMapLayer = new OsmMapLayer();
     }
     if (this.miFile_MapProviders_Items.SelectedIndex == 1)
     {
         this._geoMapLayer = new YandexMapLayer();
     }
     if (this.miFile_MapProviders_Items.SelectedIndex == 2)
     {
         this._geoMapLayer = new GoogleMapLayer();
     }
     this.lblProviderMap.Text = string.Format("Поставщик карт: {0}", this.miFile_MapProviders_Items.SelectedItem);
     this._geoDataLayer.ClearCacheTiles();
     this.pnlMap.Invalidate();
 }
 public abstract void CalcAppPointFromLatLng(IGeoMapLayer geoMapLayer, Rectangle mapBounds, int zoom, List <LatLng> latLngs, LatLng baseLatLng);