Skip to main content

All 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 { ...
SearchArea France's user avatar
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 ...
TheGreatZackAttack's user avatar
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 ...
zidniryi's user avatar
  • 1,294
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 ...
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
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 ...
Gandalf's user avatar
  • 13.6k
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
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). ...
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
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 ...
vjjj's user avatar
  • 1,039
1 vote
1 answer
650 views

leaflet blank screen on meteor but not on single nonmeteor test.html

I´m using leaflet on meteor but its only showing a blank (grey) map without displaying the map tiles. when I test the script locally in a single html file its working. <html> <head> <...
Dude's user avatar
  • 1,045
1 vote
0 answers
95 views

Is there a way to cluster leaflet markers with similar properties ?

I create my layers from geoJson, which has specified adress among other things. I understand that grouping is done based on distance between them and current zoom to map. I want to achieve that ...
Lasto's user avatar
  • 127
3 votes
1 answer
472 views

Use leaflet to display 45° Imagery

Assuming I had 45° Imagery similar to Google's (I want to draw them by hand, it's a small project) is it possible to use leaflet to display a map in a similar manner Google does? The problem is that ...
Cáno's user avatar
  • 57
0 votes
1 answer
2k views

Set view for an array of addresses(no coordinates) using leaflet js

I don't have latitude and longitude coordinates to set view on leaflet js library. I had an array of objects which contains city and state, country as properties.Now i want to set the markers on the ...
Siva's user avatar
  • 1
0 votes
2 answers
335 views

Land Cover Dataset

I'm interested in implementing some data visualizations as map layers. But I'm interested in generating data layers only above land area (land cover). A good example would be to plot population ...
Cosmin SD's user avatar
  • 1,557
0 votes
1 answer
5k views

Leaflet Update Marker getLatLng

I want to alert all position of my markers with getLatLng. This works also very fine. I place the marker on the map by this code: var marker = new L.Marker(e.latlng, { draggable:true, ...
user avatar
4 votes
1 answer
2k views

Map with rows in inverted order

I download a few tiles from OpenStreetMap (only for testing purpose). Then i use the fantastical Leaflet javascript framework to view the interactive map, but when i open the browser i see the ...
Javier Cadiz's user avatar
  • 12.5k