[mapguide-users] Virtual Earth Zoom Levels

GordonL gordon.luckett at arrowgeomatics.com
Thu Dec 31 14:30:49 EST 2009


Yes, this one bugged me too.  I created an INVOKESCRIPT in Studio.
Two key things: 
(1) if you embed the Fusion in a frame or iFrame you will have to make sure
this is caught (i.e. I use iFrameMap)
(2) Create a white 1px by 1px png file to use as the background.
(3) Use OpenLayers to create the white background.


var map = this.getMap();
var openLayersMap = map.oMapOL;

var googleLayers =
openLayersMap.getLayersByClass('OpenLayers.Layer.Google');
openLayersMap.removeLayer(googleLayers[0]);

var blankLayer = new OpenLayers.Layer.Image("No Base
Layer",'white.png',openLayersMap.maxExtent,new OpenLayers.Size(1,1));

openLayersMap.addLayer(blankLayer);
openLayersMap.setBaseLayer(blankLayer);

window.top.iFrameMap.Fusion.getWidgetById('Map').redraw();





pcardinal wrote:
> 
> Hi gordon
> 
> How did you turn off Google below 1:1128 ?
> 
> Pierre 
> 
> 
> 
> 
> 
> GordonL wrote:
>> 
>> I haven't been able to go below either limit (even after experimenting
>> with the ranges).  I have to turn off Google below the 1:1128 and the VE
>> below the 1:4500 - unfortunately that leaves a very boring map.
>> 
>> regards
>> gordon
>> 
>> 
>> 
>> Fraser Burgess wrote:
>>> 
>>> Hi List
>>> 
>>>  
>>> 
>>> Has anyone been able to implement Virtual Earth in Fusion AND get the
>>> final two zoom levels to work?  I notice a few applications around the
>>> net that share the same issue that I'm having.  
>>> 
>>>  
>>> 
>>> The max zoom level I'm able to access in MSVE 1:4514.002.  Google Earth
>>> will zoom right down to 1:1128.5
>>> 
>>>  
>>> 
>>> Cheers,
>>> 
>>> Fraser
>>> 
>>> 
>>> _______________________________________________
>>> mapguide-users mailing list
>>> mapguide-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://n2.nabble.com/Virtual-Earth-Zoom-Levels-tp3829430p4237602.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list