g3w-suite / g3w-admin

Server module for G3W-SUITE
https://g3w-suite.readthedocs.io/en/latest/g3wsuite_administration.html
Mozilla Public License 2.0
40 stars 34 forks source link

Problem with adding new basemap #169

Closed teepie closed 3 years ago

teepie commented 3 years ago

Hi I tried to add a new basemap: Basemap definition looks like this: { "crs": {"epsg": 3067, "proj4": "+proj=utm +zone=35 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs", "geographic": False, "axisinverted": True }, "url": "https://tiles.kartat.kapsi.fi/peruskartta_3067/{z}/{x}/{y}.jpg", "servertype": "TMS", "attributions": "TESTI123" }

Basemap is selectable in the Client app(MML Kii) , but it doesn't appear on the map even though selected demo.asemakaava.fi/en/map/test_3857/qdjango/3/

addedbasemapnotvisible

wlorenzetti commented 3 years ago

Hi @teepie, is possible TMS service is in 3857 intead of 3067? QGIS desktop open it in 3857...

wlorenzetti commented 3 years ago

Hi again @teepie sorry I reply to fast, we are looking for the issue.

wlorenzetti commented 3 years ago

@volterra79 this issue is related to issue #168?

billjwilliamson commented 3 years ago

Maybe try this as a test

Name:: Google Hybrid Title:: Google Hybrid Basemap Icon:: gmaps_icon.png Description:: Google Hybrid Basemap Property:: { "crs":{ "epsg":3857, "proj4":"+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs", "geographic":False, "axisinverted":False }, "scalebasedvisibility":False, "url":"https://mt1.google.com/vt/lyrs=y&x={x}&y={y}&z={z}", "servertype":"TMS", "attribution": "Copyright Google and Maxar" }