MapLibre example with symbols and text layer #1144
josemamira
started this conversation in
General
Replies: 1 comment
-
@josemamira I just checked sprites work as intended by:
It showed the correct sprite image, so not certain why you are seeing issues. Were there any log entries? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have configured a service with Martin that is offering vector tiles of data coming from PostgreSQL-PostGIS views, I have also added some fonts (Open Sans family) and icons coming from a folder with SVG files.
Catalog
The catalog shows perfectly the tiles, sprites and fonts.
Endpoint API
In the documentation it is indicated that Martin endpoint API the call to an image is made with:
/sprite/.{png or json}
In my case it is:
http://localhost:3000/sprite/pc.png
And the result is always: Sprite pc not found
Maplibre GL JS
I have also created a web page with MapLibre GL JS to display a polygonal layer that I have symbolized without problems. However I did not know how to add a layer of symbols or text layer
This is my code:
I would be very grateful if there was an example in MapLibre GL JS to show a layer with symbols and another layer with text.
Thanks for your attention
Beta Was this translation helpful? Give feedback.
All reactions