Skip to main content

All Questions

0 votes
0 answers
121 views

Mounting custom vue component as a tooltip/popup on leaflet on each geojson object

I would like to mount my custom MapDeparturePin component to leaflet map. Circle Markers created by L.geoJSON method and I tried to bind popupInstance to each generated marker. Here is the code: ...
0 votes
1 answer
491 views

Leaflet: sort and edit geojson data in a table with if-statements

I'm having trouble with displaying JSON data in a table. I am working on a map that shows data which is directly exported as a geojson file from Openstreetmap via overpass-turbo.eu. This means that ...
5 votes
2 answers
3k views

How to query Overpass area through leaflet?

I have a OpenstreetMap with leaflet. I'm using this Plugin for leaflet to query with Overpass. var opl = new L.OverPassLayer({ query: "(area['name'='Roma']; node(area)['amenity'='drinking_water']);...
1 vote
0 answers
57 views

create the map layer of a single country with open street map and leaflet geojson

I am trying to create the layer of the only country that is clicked earlier but without success. I managed to highlight it, but it shows me the highlighted country but also the rest of the world that ...
0 votes
0 answers
185 views

Leaflet openpopup doesn't show up

Hello I'm trying to open popup in Leaflet by clicking on elements: let markersS = L.markerClusterGroup(); const markers = places.map(function (place) { return markersS.addLayer( L.marker([place....
0 votes
0 answers
52 views

What can I create a roadgrid from code, using the OpenStreetMaps.org data?

Currently I am trying to create a Map from the OSM data which is openly available to create road links, using Data that I retrieved from GeoJSON.io The map I got from coordinates at OSM and the Blue ...
1 vote
3 answers
3k views

Where to get polygons for german postcodes (from OSM, in GeoJSON)?

I want to draw a choropleth map based on german zipcode areas and some data. It should look like this, just down to zipcodes: https://maps.aimpulse.com/osm/addresses/ I asked the osm irc channel and ...
-3 votes
1 answer
767 views

How can I visualize geojson data?

In other words, how does this site work: http://geojson.io/? Is it harder than it looks? github does the same thing. Thanks in advance
0 votes
1 answer
1k views

How to update geojson markers periodically

What I am trying to do is to use Leaflet with OSM map, and load data from PHP in GeoJSON format + update periodically. I can manage to display a map, load data, but do not know how to update points ...
0 votes
2 answers
834 views

leaflet variable for import data geojson

I just used a leaflet. From the geoJSON demo page I saw if you want to include data you have to use <script src="data/us-states.geojson"></script> and if you open the files looks like ...
12 votes
2 answers
8k views

How to retrieve LayerPoint (X, Y) from Latitude and Longitude coordinates using Leaflet API

If I use the following code to get the LayerPoint from a specified Lat/Lng: var latLng = new L.latLng(-37.81303878836989, 144.97421264648438); var point = map.latLngToLayerPoint(latLng); The output ...
0 votes
1 answer
948 views

Multiple Category Options per Marker Using GeoJSON in Leaflet Map

I'm new to Leaflet and GeoJSON, and haven't been able to find an example of what I want. The map I'm making has multiple markers for various services in the area. I need to add a demographic category ...
0 votes
1 answer
930 views

Leafletjs GeoJSON layer is not working for map data from Natural Earth

I am using leafletjs to plot geographical maps using OSM tiles. I used the following GeoJSON as a map layer http://code.highcharts.com/mapdata/1.0.0/custom/world.js which uses data from ...
0 votes
1 answer
2k views

How can I add multiple overlay layers in leaflet.js having three categories at the right top of the map?

I want to make a map where I will have three categories at the right top of it, such as Toilets, Dustbins, and Hospitals. I have created a map layer using QGIS open source mapping. Here is my code, ...

15 30 50 per page