ThinkGeo.com    |     Documentation    |     Premium Support

Google Map Zoom Levels Functionality

I am looking at implementing Google Maps as a background layer and found there is a separate ZoomLevelSet just for GoogleMaps. Does the GoogleMapZoomLevelSet allow you to tell Map Suite when you want your DynamicLayers to draw according to GoogleMaps Zoom levels?



So for example if I wanted my Political Districts shapefile to display over my Google Background map but I only wanted it to display when the map was zoomed in to the fifth level or closer of zoom within Google Maps that I would set my AreaStyles on the GoogleMapZoomLevels?


Hope this makes sense.


Thanks!


Steve



Steve, 
  
 Just create a new GoogleMapZoomLevelSet and it will bring you there. Here are the codes for that: 
  
 

        Dim Layer As New ShapeFileLayer("PoliticalDistricts.shp")
        Layer.ZoomLevelSet = New GoogleMapZoomLevelSet()
        Layer.ZoomLevelSet.ZoomLevel05.DefaultAreaStyle = AreaStyles.Country1
        Layer.ZoomLevelSet.ZoomLevel05.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20

 
  
 Besides that, we also provide VirtualEarthZoomLevelSet and YahooMapZoomLevelSet. You can use them in a same way. 
  
 Ben.