Thank you Pamela for the reply. I've played around with this but am still not seeing how to do what I want. I'll pose my response in two parts:
1. Your snippet, I think, does essentially the same thing that mine does except that the custom zoom type has two layers. My question is whether it is possible to create a MapType with a single street label layer and be able to see through it to whatever is underneath. My code (or yours minus MapType.PHYSICAL_MAP_TYPE.getTileLayers()[0]) shows grey underneath. 2. The motivation for my question: what I want to achieve is a map with the following data, from top to bottom: - Polygons - Street labels - GroundOverlays - Satellite imagery By manipulating panes and map layers, I can produce this order except for the street labels, because I can't find a way to insert GroundOverlays between the satellite imagery and (transparent) street labels. Does anyone have advice for how I could accomplish this? Many thanks, Kim On Feb 7, 1:32 am, pamela fox <[email protected]> wrote: > Hi Kim- > > It should be possible. The following code shows how to create a > maptype composed of the terrain tile layers and the hybrid upper tile > layer: > > private function onMapPreinitialize(event:Event):void { > var opts:MapOptions = new MapOptions(); > var limitedZoomMapType:IMapType = new > MapType([MapType.PHYSICAL_MAP_TYPE.getTileLayers()[0], > MapType.HYBRID_MAP_TYPE.getTileLayers()[1]], > > MapType.NORMAL_MAP_TYPE.getProjection(), > "LimitedZoom Demo", > new > MapTypeOptions({maxResolution: 4, minResolution: 1})); > opts.mapTypes = [limitedZoomMapType]; > map.setInitOptions(opts); > > } > > - pamela > > On Thu, Feb 5, 2009 at 4:29 PM, Kim <[email protected]> wrote: > > > I'm an admitted newbie, so sorry if I posed the question in a naive > > way or the answer is obvious. But I was hoping for at least one reply > > -- anybody? > > > It must be possible -- the same roads layer sits on top of the > > satellite imagery in regular hybrid mode, and there's no grey then. Is > > it because I'm trying to create a new MapType with just the streets > > layer? The idea is to eventually insert a layer of ground overlays in > > between the satellite layer and the roads layer. > > > On Feb 3, 12:37 am, Kim <[email protected]> wrote: > >> Hello, > > >> I've seen many references to this question but no definitive answer. > >> The following AS gives me a working street layer but filled with grey > >> behind the streets and labels: > > >> var hybridTileLayers = > >> MapType.HYBRID_MAP_TYPE.getTileLayers(); > >> var streetMapType:IMapType = new MapType(new > >> Array(hybridTileLayers > >> [1]), MapType.HYBRID_MAP_TYPE.getProjection(), "streetMap", new > >> MapTypeOptions({maxResolution: 18, minResolution: 11})); > >> streetMap.setCenter(initMapCenter, initZoomLevel, > >> streetMapType); > > >> Is it possible to make the greytransparent? What I want to accomplish > >> is something like this:http://www.philageohistory.org/tiles/viewer/ > >> except underneath the streets are ground overlays, not tiles. > > >> Thanks, > >> Kim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-maps-api-for-flash?hl=en -~----------~----~----~----~------~----~------~--~---
