Replies: 1 comment 3 replies
-
|
It does sais in the console the the geojson data is invalid, have you checked this direction? |
Beta Was this translation helpful? Give feedback.
3 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I recently moved from Mapbox to MapLibre via OpenFreeMaps. On my Mapbox site, I had a bunch of stations that would appear as an image and you could click on them etc.

Here is an example of what the stations look like on the map. I made the switch to MapLibre by installing it via npm and updating my code to initialize the map. When map(style.load) runs, I run a method which runs a function called AddStations(). This is the code for addStations:
I changed nothing from when I used it with Mapbox (where it worked fine) and it simply does not show anything anymore, The station image appears to load, as hasImage prints true but when I check Inspect Element it simply says unable to load content. Everything else works fine so I was looking for some help into why the stations simply do not appear on my map.


I pointed to the console printing true for hasImage, yet I cannot see anything on the map and stations does not appear in the sources either.
It simply hasn't worked since I switched to this from Mapbox and nothing I try seems to fix it, so I would appreciate any help.
Beta Was this translation helpful? Give feedback.
All reactions