[mapguide-users] fusion error in google chrome
pierre.cardinal at sympatico.ca
pierre.cardinal at sympatico.ca
Sun Oct 16 13:50:01 PDT 2022
Hi,
�
I also have the error in Chrome but it’s still possible to display Google map and Street view (for Street view, I add my API key in the file ..\Web\www\fusion\widgets\GoogleStreetViewerGoogleStreetView.templ)
�
Regards,
�
Pierre
From: mapguide-users <mapguide-users-bounces at lists.osgeo.org> On Behalf Of Gordon Luckett
Sent: Sunday, October 16, 2022 1:57 PM
To: MapGuide Users Mail List <mapguide-users at lists.osgeo.org>
Subject: Re: [mapguide-users] fusion error in google chrome
�
Yes, I still haven't figured out what changed in the Google api that broke MapGuide fusion 3.1.2.
�
I've been using xyz and skipping the streetview widget lately.
�
On Wed., Oct. 5, 2022, 10:13 p.m. Hadis Alinia, <hadissaalinia at gmail.com <mailto:hadissaalinia at gmail.com> > wrote:
Thank you, Gordon. The site loads in Google Chrome with the Generic XYZ layer but with adding any of the Google Base maps I get the same error!
�
I need to use google street view and it doesn't work without the google base map. �
�
Hadis
�
�
On Wed, Oct 5, 2022 at 5:27 PM Gordon Luckett <gordon.luckett at arrowgeomatics.com <mailto:gordon.luckett at arrowgeomatics.com> > wrote:
It is just a XYZ Generic Layer in your layout.
�
�
On Wed, Oct 5, 2022 at 5:23 PM Hadis Alinia <hadissaalinia at gmail.com <mailto:hadissaalinia at gmail.com> > wrote:
Hi Gordon, �
�
Thank you for your prompt reply. Can you specify where I need to change the links to the xyz version? I am adding the commercial maps in Mapguide Maestro under child maps with the google API I have. �
I have the following scripts in my application definition XML :
�
" <OpenStreetMapScript>http://www.openstreetmap.org/openlayers/OpenStreetMap.js</OpenStreetMapScript>
� � <GoogleScript>https://maps.googleapis.com/maps/api/js?key=API KEY</GoogleScript>"
�
or do you �mean I change the �http://www.google.com links in �fusionSF-compressed.js to �https://mt0.google.com/vt/lyrs=m <https://mt0.google.com/vt/lyrs=m&hl=en&x=$%7Bx%7D&y=$%7By%7D&z=$%7Bz%7D> &hl=en&x=${x}&y=${y}&z=${z}?
�
Thank you �
Hadis
�
�
�
On Wed, Oct 5, 2022 at 3:19 PM Gordon Luckett <gordon.luckett at arrowgeomatics.com <mailto:gordon.luckett at arrowgeomatics.com> > wrote:
Something has recently changed in the past month or so with the Google API.
�
I have changed all my links to Google to use the XYZ version:
https://mt0.google.com/vt/lyrs=m <https://mt0.google.com/vt/lyrs=m&hl=en&x=$%7Bx%7D&y=$%7By%7D&z=$%7Bz%7D> &hl=en&x=${x}&y=${y}&z=${z} �
�
You should still have an API Key (or at least pay for the licence) as it is required by the TOS �
�
On Wed, Oct 5, 2022 at 2:04 PM Hadis Alinia <hadissaalinia at gmail.com <mailto:hadissaalinia at gmail.com> > wrote:
Hi, �
�
I am using MapGuide version 3.1.2 and when I add the commercial layers my application �doesn't open in google chrome but works fine with other browsers like Microsoft Edge. When I try to open it in Google Chrome, I get the following errors "Cannot read properties of undefined (reading 'width')
Stack Trace:
�- ? at � /mapguide/fusion/lib/fusionSF-compressed.js (line: 55)" �
�
I even changed �fusionSF-compressed.js to �fusionSF.js still doesn't work.
�
The MapGuide version 2 was working with commercial layers. �
�
What is the reason and what changes �need to be made?
�
Thank you �
Hadis
�
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org <mailto:mapguide-users at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org <mailto:mapguide-users at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/mapguide-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20221016/59047730/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 113197 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20221016/59047730/attachment.png>
More information about the mapguide-users
mailing list