diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-26 20:52:44 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-26 20:52:44 +1300 |
commit | a0193f2b96bc41de02d7a2e07c13e829643d17f5 (patch) | |
tree | 93d1b8eb1faf3985cc90c2bcf7fdabc1e1c1393f /src/org/traccar/web/client | |
parent | cda6c01a2abc7f60a191d97e8b070218879f7f92 (diff) | |
download | trackermap-web-a0193f2b96bc41de02d7a2e07c13e829643d17f5.tar.gz trackermap-web-a0193f2b96bc41de02d7a2e07c13e829643d17f5.tar.bz2 trackermap-web-a0193f2b96bc41de02d7a2e07c13e829643d17f5.zip |
Fix Google zoom levels (fix #12)
Diffstat (limited to 'src/org/traccar/web/client')
-rw-r--r-- | src/org/traccar/web/client/view/MapView.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/org/traccar/web/client/view/MapView.java b/src/org/traccar/web/client/view/MapView.java index e54381dc..3568d920 100644 --- a/src/org/traccar/web/client/view/MapView.java +++ b/src/org/traccar/web/client/view/MapView.java @@ -93,18 +93,22 @@ public class MapView { map.addLayer(OSM.Mapnik("OpenStreetMap")); GoogleV3Options gHybridOptions = new GoogleV3Options(); + gHybridOptions.setNumZoomLevels(20); gHybridOptions.setType(GoogleV3MapType.G_HYBRID_MAP); map.addLayer(new GoogleV3("Google Hybrid", gHybridOptions)); GoogleV3Options gNormalOptions = new GoogleV3Options(); + gNormalOptions.setNumZoomLevels(22); gNormalOptions.setType(GoogleV3MapType.G_NORMAL_MAP); map.addLayer(new GoogleV3("Google Normal", gNormalOptions)); GoogleV3Options gSatelliteOptions = new GoogleV3Options(); + gSatelliteOptions.setNumZoomLevels(20); gSatelliteOptions.setType(GoogleV3MapType.G_SATELLITE_MAP); map.addLayer(new GoogleV3("Google Satellite", gSatelliteOptions)); GoogleV3Options gTerrainOptions = new GoogleV3Options(); + gTerrainOptions.setNumZoomLevels(16); gTerrainOptions.setType(GoogleV3MapType.G_TERRAIN_MAP); map.addLayer(new GoogleV3("Google Terrain", gTerrainOptions)); @@ -120,7 +124,6 @@ public class MapView { contentPanel.setHeadingText("Map"); MapOptions defaultMapOptions = new MapOptions(); - defaultMapOptions.setNumZoomLevels(16); mapWidget = new MapWidget("100%", "100%", defaultMapOptions); map = mapWidget.getMap(); |