[mapguide-users] Virtual Earth and Firefox with FUSION?
GordonL
gordon.luckett at arrowgeomatics.com
Tue Aug 11 14:47:33 EDT 2009
Hi All, I have a strange issue. For some reason the Virtual Earth OpenLayers
overlay only seems to work with Internet Explorer (Windows) and Safari
(Windows and MacBook Pro), but no Firefox (any OS).
I am not sure what the issue is, but I checked out the openlayers demo
(http://openlayers.org/dev/examples/spherical-mercator.html) and the
OpenLayers seemed to handle Virtual Earth and Firefox nicely..so I think it
might be how FUSION is implemented the OpenLayers (I am using the Full
openlayers.js file too).
And:
<script
src='http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1'></script>
Oh and the code to add the VE Layer in the INDEX.htm
var mapWidget = Fusion.getWidgetById('Map');
var map = mapWidget.oMapOL;
mapWidget.fractionalZoom = false;
map.setOptions({fractionalZoom: false, numZoomLevels: 30});
//Create Virtual Earth - Live Maps example
velayer = new OpenLayers.Layer.VirtualEarth('VE', {
'sphericalMercator': true,
'type': VEMapStyle.Road
});
map.addLayer(velayer);
var mgLayers = map.getLayersByClass('OpenLayers.Layer.MapGuide');
if(mgLayers.length != 0)
{
var mgLayer = mgLayers[0];
if(mgLayer.isBaseLayer)
{
map.setBaseLayer(velayer);
mgLayer.setIsBaseLayer(false);
mgLayer.setVisibility(true);
}
}
See what I mean by using Firefox at:
http://mapguide.ca/sydney/ http://mapguide.ca/sydney/
regards
gordon
--
View this message in context: http://n2.nabble.com/Virtual-Earth-and-Firefox-with-FUSION--tp3426002p3426002.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list