Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

All Questions

0 votes
0 answers
18 views

How to properly zoom and update OpenStreetMap tiles on my JS Maps

When I launch the file everything works fine and the mouse movements are correct however the zoom is catastrophic and it does not zoom/refresh the next tiles of OpenStreetMap class CustomMap { ...
SearchArea France's user avatar
1 vote
1 answer
141 views

Set Leaflet marker to always stay in the middle of the map

I'm working on a SvelteKit project where we're moving from Google Maps to Open Street Maps using Leaflet.js. With Google Maps we have a marker that always stays in the center of the map even when ...
TheGreatZackAttack's user avatar
0 votes
1 answer
260 views

How do you auto zoom maps marker on Thingsboard?

So I have 2 Table widgets and a Maps Widget on the Thingsboard, when I click an item in the list table, I want the maps to auto zoom to the marker in the second Maps Widget on the Thingsboard? How to ...
zidniryi's user avatar
  • 1,294
1 vote
1 answer
227 views

How to visualize multiple lanes (bus, cycle etc.) from single polyline (OSM data) in Leaflet?

My use case: Single polyline is tagged with multiple lanes containing also a cycle lane. How would I go about visualizing them side by side using Leaflet? Polyline is a set of GPS coordinates and I ...
dusoft's user avatar
  • 11.4k
2 votes
2 answers
1k views

map.getCenter and map.getBounds are not functions inside map.target.on('click') function

I am creating an app that makes use of the leaflet OpenStreetMap API but I am running into a problem. I am trying to get the center coordinates when I click my map, but i am getting the error: '...
yourivdloo's user avatar
4 votes
1 answer
2k views

How to Display and Interact with Open Street Maps in a Delphi VCL application

This is a rather broad question but I will try to narrow it down to the essentials. I am working on a Delphi Application for a school project wherein I would like to add a map to my program to provide ...
Oliver Hope's user avatar
-2 votes
2 answers
2k views

How to call getFeatureInfo from react-leaflet? [closed]

I have example from github how to add wms layer: https://github.com/PaulLeCam/react-leaflet/blob/master/example/components/wms-tile-layer.js but how to getFeatureInfo on click from wms layer?
Sergey Komarov's user avatar
4 votes
2 answers
14k views

How to implement a Map in android studio with Leaflet and OpenStreetMap?

I am new to android. I am trying to develop a small app for loading a map with markers in android studio using leaflet and openstreetmap. I have read the article in this link https://asmaloney.com/...
geethuth's user avatar
  • 103
0 votes
2 answers
211 views

Centering a marker at the center of a div

I have a div that i am using to hold a leaflet map. It currently looks like this I want the marker to be at the center or near center of the div so that its visible always even the marker is further ...
Gandalf's user avatar
1 vote
1 answer
5k views

How to center world map using leaflet

I am trying to display the full map using leaflet. Code Pen I am trying to achieve the following via leaflet: I thought using mymap.fitWorld() would achieve the effect but it is not.
user3525290's user avatar
  • 1,577
0 votes
2 answers
404 views

Render Icon on custom floor tiles using OSM & Leaflet

I need to convert the some functionality of google maps into Leaflet and OSM. What I have is an indoor visitor tracking application that uses google maps with custom tiles (Indoor floor plan image). ...
Billz's user avatar
  • 1,087
0 votes
0 answers
52 views

browser connectivity status using leafletjs

Currently I am using leafletjs for showing maps. Is there a way I can detect browser offline or online status.
Pradyumna Ravuri's user avatar
2 votes
1 answer
2k views

Leafletjs: Dynamically changing map feature colors

It's been a few days now that I have been looking for a way to be able to dynamically change the colors of different map features such as Roads, Water, Buildings, Background etc using leaflet.js. I ...
Corporal's user avatar
  • 157
1 vote
1 answer
1k views

How to determine which country/ state/ region/ city/ locality lies inside a leaflet polygon | rectangle | circle etc

How can I determine which country, state, region, city or locality lies inside a leaflet shape (polygon | rectangle | circle etc) created by the user?
codejunkie's user avatar

15 30 50 per page