[mapguide-users] Virtual Earth and Firefox with FUSION?
GordonL
gordon.luckett at arrowgeomatics.com
Thu Oct 8 21:49:59 EDT 2009
Thanks Paul,
I don't think its an iFrame issue, I checked the site without the iFrame
(http://mapguide.ca/mapguide2010/fusion/templates/mapguide/liveaqua/index.html?APPLICATIONDEFINITION=Library://Sydney/6_LAYOUTS/SYDNEY_LAYOUT.ApplicationDefinition)
and same error (left)
gordon
Paul Spencer wrote:
>
> When I run this in firefox 3.5.2 on OS X it fails to load and I see a
> javascript error in firebug
>
> this.scroller.getStyle('left') has no properties
>
> If I turn on 'Break on all errors' in firebug and reload, I get a
> number of exceptions that can be safely continued from (they are in
> try/catch blocks but firefox stops on them anyway) and, strangely,
> everything eventually loads and works.
>
> Very strange. This behaviour is normally the opposite, firefox works
> and the other browsers don't.
>
> I don't really know what to think about this. Not sure if it is due
> to being in an iframe, a timing issue loading the ms maps api or
> something else
>
> Can you try with firebug and see if you get the same thing (with break
> on all errors on)
>
> Cheers
>
> Paul
>
>
> On 2009-10-08, at 8:13 PM, GordonL wrote:
>
>>
>> No Kori, I never did find a solution. I am running it at
>> http://www.mapguide.ca/sydney/ but I can't get it work in FireFox
>> (just
>> Safari and Internet Explorer)
>>
>> gordon
>>
>>
>> Kori Maleski wrote:
>>>
>>> Hi Gordon,
>>>
>>> Did you find a work around or determine what the issue was? I am
>>> using
>>> the
>>> SVN trunk version and hit the same snag.
>>>
>>>
>>>
>>> Cheers,
>>>
>>>
>>> Kori Maleski
>>>
>>>
>>>
>>> On Tue, Aug 11, 2009 at 11:47 AM, GordonL
>>> <gordon.luckett at arrowgeomatics.com
>>>> wrote:
>>>
>>>>
>>>> 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.
>>>> _______________________________________________
>>>> mapguide-users mailing list
>>>> mapguide-users at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>>
>>>
>>> _______________________________________________
>>> 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-and-Firefox-with-FUSION-tp3426002p3791581.html
>> Sent from the MapGuide Users mailing list archive at Nabble.com.
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
> _______________________________________________
> 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-and-Firefox-with-FUSION-tp3426002p3791892.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list