You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to fit a static .png image over Sweden using the ImageOverlay function. The reason for this is that I'm using the generated HTML file on an offline client. My goal is to take a static OpenStreetMap layer, export it as a .png, and then fit it within the borders of the attached GeoJSON file sweden.geojson (attatched as sweden.json).
I've tried using the "bounds" properties, but I'm struggling to scale the .png correctly to match the GeoJSON borders. Could someone provide an example to help me with this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm trying to fit a static .png image over Sweden using the ImageOverlay function. The reason for this is that I'm using the generated HTML file on an offline client. My goal is to take a static OpenStreetMap layer, export it as a .png, and then fit it within the borders of the attached GeoJSON file
sweden.geojson
(attatched as sweden.json).sweden.json
I've tried using the "bounds" properties, but I'm struggling to scale the .png correctly to match the GeoJSON borders. Could someone provide an example to help me with this?
Beta Was this translation helpful? Give feedback.
All reactions