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 grey transparent? 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
-~----------~----~----~----~------~----~------~--~---