Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New base layer #943

Open
1 task done
BaBoWaGa opened this issue Sep 30, 2024 · 4 comments
Open
1 task done

New base layer #943

BaBoWaGa opened this issue Sep 30, 2024 · 4 comments
Assignees
Labels
feature New feature or request

Comments

@BaBoWaGa
Copy link

Checklist

  • I've searched through the current issues to make sure this feature hasn't been requested already.

Motivation

Hello, I would like to add OpenTopoMap as a base layer I have tried several json variants but nothing. Perhaps it would also be useful to better document how to insert OpenTopoMap or other base layers. Regards

Suggested solution

It would be useful to be able to add more alternatives

Alternatives considered

No response

@BaBoWaGa BaBoWaGa added the feature New feature or request label Sep 30, 2024
@wlorenzetti
Copy link
Member

Hi @BaBoWaGa please report your G3W-SUITE version and post here an example of json you tried.

@BaBoWaGa
Copy link
Author

Hi @wlorenzetti sorry for the delay monster, G3W-SUITE Version 3.8.
Among the various tests ....

{
"type": "tilelayer",
"url": "https://tile.opentopomap.org/{z}/{x}/{y}.png",
"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,
"minscale": 100000000,
"maxscale": 0,
"servertype": "TMS",
"attribution": "OpenTopoMap contributors"
}

@BaBoWaGa BaBoWaGa reopened this Nov 16, 2024
@wlorenzetti
Copy link
Member

Hi @BaBoWaGa on v3.8.x this works for me:

{
   "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
   },
   "url":"https://a.tile.opentopomap.org/{z}/{x}/{y}.png",
   "servertype":"TMS",
   "attributions":""
}

@BaBoWaGa
Copy link
Author

BaBoWaGa commented Nov 18, 2024

Thank you very much, unfortunately I lack this expertise. Anyway, I had tried a very similar one and only got the servertype wrong.

If it is not too much to ask, how could I configure the json for
Name ESRI Satellite
URL https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}
Source type=xyz&zmin=0&zmax=20&url=https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}
Data source wms

What size and format should the base map representation icon have?

Staying on the subject, given that many base maps have a paid key for display (Bing and Google Maps first), wouldn't it be possible in the future to have base maps that are 'activated' based on the user/user group?
Same for geocoding providers

Thanks
Regards

@BaBoWaGa BaBoWaGa reopened this Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants