-
Notifications
You must be signed in to change notification settings - Fork 118
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
Applying style to VectorTile layer #1106
Comments
What you're trying here is definitely possible. However, you might want to start small and then make bigger changes to make debugging easier. Questions that arise include:
|
This was the issue, I was trying to adjust Your help is much appreciated! I'am closing this issue but here is the way I did it if it helps someone in the future: JS:
style.json
Tegola capabilities:
|
Hi,
I'm trying to use mapbox defined style on VectorTile layers in OpenLayers. The issue I am having is I can't seem to figure out if it's possible to define VectorTileSource (with url fetching data from my server) and VectorTileLayer which should only apply styling from Mapbox or Mapbox style JSON file.
Map itself and other Openlayers logic is made using React, but this is how I'm trying to do it:
I have included below the .json file of style definition
style.json
I have also tried implementing this using
stylefunction
fromol-mb
but as far as I can see the behavior is pretty much same. I can see that tiles are loaded on map and on move (served from tegola) and there is nothing displaying in console nor there are some errors in network tab when inspecting requests. I can confirm tiles and features are displayed when I comment outapplyStyle
function.Am I missing something obvious here? Is it even possible to do apply style to a source not defined through mapbox?
The text was updated successfully, but these errors were encountered: