All Questions
Tagged with leaflet openstreetmap
556
questions
0
votes
0
answers
99
views
How to find the shortest public transit route to take to go from one point to another
I'm making a web app that makes what the title says, right now I have my bus stops and routes and I know how to add them to my map as markers and polylines respectively, I can also get the users ...
0
votes
0
answers
174
views
Why doesn't this add markers to my Leaflet map?
I have this leaflet map inside a HTML file that I can easily return with my Flask app.py, but I've been trying to add a marker for a while now to no avail.
var marker = L.marker([latitud, longitud]);
...
-1
votes
1
answer
117
views
I'm using breezometer api and leaflet and openstreetmap to show heatmap of world but the api require key and I don't want to show the key to end user
I'm creating a project in laravel to show heatmap of a country by using breezometer heatmap layer api and leaflet with openstreet map to achieve the same. But Idk how can I hide the api key from end ...
0
votes
0
answers
96
views
Image manipulation on the map in Leaflet
I would like to be able to resize the image displayed on the map. E.g. using sliders (other solution is also welcome).
The image is in png format, the background is transparent.
I would like to be ...
0
votes
1
answer
121
views
Unable to see polyline in OSM map
I'm working to plot ways using OSM and leaflet using node as a back end. On the front end I have leaflet2.html which has the following in the script tag:
const mymap = L.map("map");
...
0
votes
1
answer
220
views
Neatly put markers in a row when they have the same exact coordinates
I have a map component that loads data from a geoJSON file and displays each datapoint on an openstreetmap map. The library is use for that is the 'react-leaflet' library. And I also use the 'react-...
1
vote
1
answer
554
views
Getting Linestring coordinates for roads using OSM
I'm trying to get the road network in an area focusing on the smaller (1-2 lane ) roads using osm and node. Using the OSM overpass api, I used the following query:
const roadsOverpassQuery = `
[out:...
1
vote
1
answer
868
views
Search bar for open street map
I need help to add an functional search bar for this project. Like you search 'London' and get redirect to London, I'm having problems.
Here is my code for you guys:
var mymap = L.map("mapid"...
1
vote
0
answers
327
views
How to create city boundaries using bbox data in React Leaflet?
I'm working on a React application that uses Leaflet and react-leaflet to display a map.
I want to create boundaries around cities that are marked on the map with a marker. To get the necessary ...
0
votes
1
answer
389
views
Leaflet - Layer-type object spawned by method 'L.marker' it contains information, which wasn't passed to that method
I'm attempting to implement a mapping functionality into my Laravel app, using Leaflet.
For doing that, I've been analyzing, line by line, how it works the code of an existing example project, with ...
0
votes
1
answer
92
views
Highlight borders of the nation
When I search for a country I would like the borders to be highlighted on the map.
I don't know how to do with openstreetmap , leaflet and react
Demo: Countries App
0
votes
0
answers
612
views
Leaflet / Alpinejs / all markers (layer) position change on zoom after using categories filters
You will find my code below.
I have a map with category filters. The map initialize and display correctly but when I use the filter (and the filterMarkers function), the markers change but when I zoom ...
2
votes
1
answer
95
views
Leaflet - Define maxNativeZoom based on specific regions
I'm trying to figure out how I can specify the maxNativeZoom multiple times for different regions/bounds.
Our tile server has more detailed tiles available for some parts of Europe. I would like to ...
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 ...
0
votes
1
answer
448
views
how to find my city location with location search in React Redux with Leaflet with OpenStreetMap
I was assigned by my lecturer to add city search to my application using React(Redux) using Leaflet (OpenStreetMap) can anyone help me to solve this problem? and what are the dependencies needed?
Here ...