Replies: 1 comment
-
My bad, I was overthinking it, and actually transforming the data from 4326 to 3857 - this was handled already by nettopologysuite, therefore I actually broke it. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Good Morning,
I am sure this is obvious...
We have recently migrated to MapLibre and are super happy - so initially THANKS!
I have create a custom addProtocol which fetches vector tiles created from our own data to overlay on top of a map, the source c# code fetches the geography data for the given bounds of the tile, converts to 3857 (it is 4326 in the database) then using NetTopologySuite's NetTopologySuite.IO.VectorTiles.VectorTile and NetTopologySuite.IO.VectorTiles.Mapbox "Write"
much like in the example here:
https://github.com/NetTopologySuite/NetTopologySuite.IO.VectorTiles
I set the layer "Name" in C# to say "test" and in the style definition I set the source-layer also to "test" but it doesn't want to show :(
line 70 in draw_circles.ts:
const bucket: CircleBucket = (tile.getBucket(layer) as any);
returns undefined
in _validateLayer of style.ts the source.vectorLayerIds is also undefined
I am sure its something really simple I have missed, but any help would be much appreciated
thank you
Beta Was this translation helpful? Give feedback.
All reactions