[mapguide-users] fusion theme -No access control allow origin error
Hadis Alinia
hadissaalinia at gmail.com
Mon Jun 5 20:21:53 PDT 2023
Pierre
Thank you for your response. By replacing that with
https://mt0.google.com/vt/lyrs=m&hl=en&x=${x}&y=${y}&z=${z} still I get the
error and I see the pink background with no map. However, by using the
example tile and specifying x=1&y=1&z=2
<https://mt0.google.com/vt/lyrs=s&x=1&y=1&z=2> I see the tiles (multiple
similar tiles in the fusion) showing somewhere in the world. And when I use
the Theme widget it classifies the layer and the tiles are still there. It
looks like I am getting close to the right answers and have the background
map with the themed layer.
My question is how to get the right tile location and scale that is matched
my layer's bounding box.
Thank you
Hadis
On Mon, Jun 5, 2023 at 7:11 PM Pierre Cardinal <pierre.cardinal at sympatico.ca>
wrote:
> Hi,
>
> The tile https://mt1.google.com/vt/lyrs=s&x=262143&y=262143&z=19 does not
> exist. Example of a valid one https://mt0.google.com/vt/lyrs=s&x=1&y=1&z=2
>
> Regards,
>
> Pierre
>
> ------------------------------
> *De :* mapguide-users <mapguide-users-bounces at lists.osgeo.org> de la part
> de Hadis Alinia <hadissaalinia at gmail.com>
> *Envoyé :* lundi, juin 5, 2023 2:38:40 p.m.
> *À :* MapGuide Users Mail List <mapguide-users at lists.osgeo.org>
> *Objet :* [mapguide-users] fusion theme -No access control allow origin
> error
>
> Hi,
> I am using MG version 3.1.2 on IIS. On the fusion, when I use the Theme
> widget I get the themed layers and it's added to the legend but the base
> map of Openstreet doesn't load and the cursor spins forever. By Looking at
> the errors in the console I see the 100 errors of "access to the image at
> https://c.tile.openstreetmap.org/5.379310131539869/13/13.png from the
> origin my website address has been blocked by CORS policy: No
> 'Access-Control-Allow-Origin' header is present on the requested resource"
> and the same error for https://b.tile and a.tile.
>
> Just letting you know I tried adding and removing basemaps even Generic
> XYZs still get the same results and error.
>
> Removing the openstreet map and with Generic XYZ for google street I get
> the error as follows:
>
>
> GET https://mt1.google.com/vt/lyrs=s&x=262143&y=262143&z=19 404
> Image (async)
> setImgSrc @ fusionSF.js:72880
> initImage @ fusionSF.js:72856
> renderTile @ fusionSF.js:72725
> draw @ fusionSF.js:72698
> initGriddedTiles @ fusionSF.js:81293
> moveTo @ fusionSF.js:80764
> redraw @ fusionSF.js:56355
> redraw @ fusionSF.js:80161
> setVisibility @ fusionSF.js:56531
> setBaseLayer @ fusionSF.js:54205
> removeLayer @ fusionSF.js:54084
> layerLoaded @ fusionSF.js:111583
> (anonymous) @ fusionSF.js:46681
> triggerEvent @ fusionSF.js:108396
> onRuntimeMapCreated @ fusionSF.js:131138
> (anonymous) @ fusionSF.js:46681
> respondToReadyState @ fusionSF.js:97102
> onStateChange @ fusionSF.js:97005
> (anonymous) @ fusionSF.js:46681
> XMLHttpRequest.send (async)
> request @ fusionSF.js:96987
> initialize @ fusionSF.js:96931
> dispatchRequest @ fusionSF.js:109871
> loadMap @ fusionSF.js:130574
> mapSessionCreated @ fusionSF.js:130510
> initialize @ fusionSF.js:130409
> loadMapGroup @ fusionSF.js:111501
> initialize @ fusionSF.js:111397
> create @ fusionSF.js:109118
> create @ fusionSF.js:108672
> setLoadState @ fusionSF.js:521
> scriptLoaded @ fusionSF.js:639
> (anonymous) @ fusionSF.js:46681
> load (async)
> queueScript @ fusionSF.js:594
> require @ fusionSF.js:1156
> (anonymous) @ fusionSF.js:119177
>
> I would appreciate it if please assist me to solve this issue.
> Thanks
> Hadis
>
> _______________________________________________
> 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/20230605/870cd605/attachment.htm>
More information about the mapguide-users
mailing list