All Questions
22
questions
0
votes
0
answers
23
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 {
...
1
vote
1
answer
157
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 ...
0
votes
1
answer
265
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 ...
1
vote
1
answer
232
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 ...
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: '...
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 ...
-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?
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/...
0
votes
2
answers
214
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 ...
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.
0
votes
2
answers
406
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). ...
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.
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 ...
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?
1
vote
1
answer
857
views
leaflet - count number of requests sent by leaflet to osm (openstreetmap)
I'm using leaflet.js for a project. Leaflet sends requests to open street map (osm) tile server to get its tiles. As these requests are sent directly from the client, I have a hard time finding about ...