<div dir="ltr">It is just a XYZ Generic Layer in your layout.<div><br></div><div><img src="cid:ii_l8w53ihu1" alt="image.png" width="536" height="269"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 5, 2022 at 5:23 PM Hadis Alinia <<a href="mailto:hadissaalinia@gmail.com">hadissaalinia@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="auto">Hi Gordon, </div><div dir="auto"><br></div><div dir="auto">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. </div><div>I have the following scripts in my application definition XML :</div><div><br></div><div>" <OpenStreetMapScript><a href="http://www.openstreetmap.org/openlayers/OpenStreetMap.js" target="_blank">http://www.openstreetmap.org/openlayers/OpenStreetMap.js</a></OpenStreetMapScript></div><div>    <GoogleScript><a href="https://maps.googleapis.com/maps/api/js?key=API" target="_blank">https://maps.googleapis.com/maps/api/js?key=API</a> KEY</GoogleScript>"</div><div><br></div><div>or do you mean I change the <a href="http://www.google.com" target="_blank">http://www.google.com</a> links in fusionSF-compressed.js to <a href="https://mt0.google.com/vt/lyrs=m&hl=en&x=$%7Bx%7D&y=$%7By%7D&z=$%7Bz%7D" target="_blank">https://mt0.google.com/vt/lyrs=m&hl=en&x=${x}&y=${y}&z=${z}</a>?</div><div><br></div><div>Thank you </div><div>Hadis</div><div><br></div><div dir="auto"><br></div></div></div></div></div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 5, 2022 at 3:19 PM Gordon Luckett <<a href="mailto:gordon.luckett@arrowgeomatics.com" target="_blank">gordon.luckett@arrowgeomatics.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Something has recently changed in the past month or so with the Google API.<div><br><div>I have changed all my links to Google to use the XYZ version:</div><div><a href="https://mt0.google.com/vt/lyrs=m&hl=en&x=$%7Bx%7D&y=$%7By%7D&z=$%7Bz%7D" target="_blank">https://mt0.google.com/vt/lyrs=m&hl=en&x=${x}&y=${y}&z=${z}</a> <br></div><div><br></div></div><div>You should still have an API Key (or at least pay for the licence) as it is required by the TOS </div></div><br><div class="gmail_quote"></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Oct 5, 2022 at 2:04 PM Hadis Alinia <<a href="mailto:hadissaalinia@gmail.com" target="_blank">hadissaalinia@gmail.com</a>> wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi, <div><br></div><div>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 "<span style="background-color:rgb(240,240,240);color:rgb(0,0,0)">Cannot read properties of undefined (reading 'width')</span></div><br style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;background-color:rgb(240,240,240)"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;background-color:rgb(240,240,240);color:rgb(0,0,0)">Stack Trace:</span><br style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;background-color:rgb(240,240,240)"><pre style="margin-top:0px;margin-bottom:0px;padding:0px;font-family:monospace;background-color:rgb(240,240,240);color:rgb(0,0,0)"> - ? at /mapguide/fusion/lib/fusionSF-compressed.js (line: 57)
 - ? at <a href="https://maps.googleapis.com/maps-api-v3/api/js/50/7a/util.js" style="font-family:monospace" target="_blank">https://maps.googleapis.com/maps-api-v3/api/js/50/7a/util.js</a> (line: 328)
 - ? at <a href="https://maps.googleapis.com/maps-api-v3/api/js/50/7a/util.js" style="font-family:monospace" target="_blank">https://maps.googleapis.com/maps-api-v3/api/js/50/7a/util.js</a> (line: 21) </pre><div><span style="background-color:rgb(240,240,240);color:rgb(0,0,0)"> - ? at  /mapguide/fusion/lib/fusionSF-compressed.js (line: 55)"</span> </div><div><br></div><div>I even changed <span style="background-color:rgb(240,240,240);color:rgb(0,0,0)">fusionSF-compressed.js to </span><span style="background-color:rgb(240,240,240);color:rgb(0,0,0)">fusionSF.js still doesn't work.</span></div><div><br></div><div>The MapGuide version 2 was working with commercial layers. </div><div><br></div><div>What is the reason and what changes need to be made?</div><div><br></div><div>Thank you </div><div>Hadis</div><div><br></div></div></div></div></div></div></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapguide-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
</blockquote></div>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapguide-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
</blockquote></div></div>
_______________________________________________<br>
mapguide-users mailing list<br>
<a href="mailto:mapguide-users@lists.osgeo.org" target="_blank">mapguide-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapguide-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapguide-users</a><br>
</blockquote></div>