[mapguide-users] fusion error in google chrome

Gordon Luckett gordon.luckett at arrowgeomatics.com
Sun Oct 16 10:57:03 PDT 2022


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>
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> wrote:
>
>> It is just a XYZ Generic Layer in your layout.
>>
>> [image: image.png]
>>
>> On Wed, Oct 5, 2022 at 5:23 PM Hadis Alinia <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&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> 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&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>
>>>> 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: 57)
>>>>>  - ? at https://maps.googleapis.com/maps-api-v3/api/js/50/7a/util.js (line: 328)
>>>>>  - ? at https://maps.googleapis.com/maps-api-v3/api/js/50/7a/util.js (line: 21)
>>>>>
>>>>>  - ? 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
>>>>> https://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>>>
>>>> _______________________________________________
>>>> mapguide-users mailing list
>>>> mapguide-users at lists.osgeo.org
>>>> https://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>>
>>> _______________________________________________
>>> mapguide-users mailing list
>>> mapguide-users at lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/mapguide-users
>>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
> _______________________________________________
> mapguide-users mailing list
> 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/ecb9e1a6/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 113197 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/mapguide-users/attachments/20221016/ecb9e1a6/attachment.png>


More information about the mapguide-users mailing list