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

Problem adding vector tiles map #2328

Closed
vladimir-rybalko opened this issue May 29, 2024 · 3 comments · Fixed by #2330
Closed

Problem adding vector tiles map #2328

vladimir-rybalko opened this issue May 29, 2024 · 3 comments · Fixed by #2330
Assignees

Comments

@vladimir-rybalko
Copy link

Hello!

I want to display a MapBox vector tile map just like the OpenLayers 2D map does.
An example of my code is in the sandbox, here is the link.

  1. Why does iTowns draw a sprite of pictures, and not just one icon?
  2. How can I add vector tiles from maptiler.com?

@AnthonyGlt, can you help?

@AnthonyGlt
Copy link
Contributor

Hello,
I think @ftoromanoff you work on the style recently, could you check what is happening here please ? Is it related to the recent changes in the style ?
Thank you

@ftoromanoff
Copy link
Contributor

ftoromanoff commented May 31, 2024

Hello,
Thanks for the issue @vladimir-rybalko. It was indeed an oversight.
Hopefully #2330 can fix it.

For the 2nd question, I don't know but i can try to have a look, I never used maptiler.com..
PS: maptiler seems to have its own standard
https://docs.maptiler.com/cloud/api/maps/
I'm not sure if is currently supported in itowns without some modifications.
PS2: As It seems to provide a WMTS
https://docs.maptiler.com/cloud/api/maps/#wmts-capabilities
Using a WMTSSource might be possible to get the data from maptiler.

@vladimir-rybalko
Copy link
Author

Hello, Thanks for the issue @vladimir-rybalko. It was indeed an oversight. Hopefully #2330 can fix it.

For the 2nd question, I don't know but i can try to have a look, I never used maptiler.com.. PS: maptiler seems to have its own standard https://docs.maptiler.com/cloud/api/maps/ I'm not sure if is currently supported in itowns without some modifications. PS2: As It seems to provide a WMTS https://docs.maptiler.com/cloud/api/maps/#wmts-capabilities Using a WMTSSource might be possible to get the data from maptiler.

@ftoromanoff, thank you for your work!

I couldn't check the style fixes for mapbox earlier. Now I see that for the mapbox style the problem with duplicating icons has really been solved.
I want to use maptiler format maps. I have my own server with a base map, but itowns behavior is the same on the standard maptiler map.
style-winter-v2.json
I have attached an example of the style in the attachment.

@ftoromanoff, tell me where I can look at style parsing to try to implement support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants