Skip to main content

All Questions

0 votes
0 answers
117 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: ...
basarozcan's user avatar
1 vote
0 answers
56 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 ...
Rob0ut's user avatar
  • 11
0 votes
0 answers
183 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....
Matredok's user avatar
  • 120
0 votes
0 answers
51 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 ...
malikite's user avatar
-3 votes
1 answer
746 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
Mike Johnson Jr's user avatar
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 ...
Tikky's user avatar
  • 1,283
0 votes
2 answers
832 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 ...
AdityaDees's user avatar
  • 1,048
0 votes
1 answer
947 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 ...
DERNERSERFT's user avatar
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 ...
dracodormiens's user avatar
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 ...
Stefan's user avatar
  • 69
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, ...
Tejas Rane's user avatar
1 vote
1 answer
297 views

I could not find json file in OSMBuilding

I make clickable buildings with OSM Buildings. When I click a building, I get Building ID. However, I could not get height of a building because I cannot fing JSON file to get this value. Codes are ...
alicant's user avatar
  • 63
0 votes
1 answer
2k views

Leaflet. How I can get JSON marker property by Latitude and Longitude?

I have my custom 'latitude' and 'longitude' variable. var custom_loc = [50.34434, 63.23442] And also I have JSON data with points in GeoJSON format. { "type": "Feature", "geometry": { "...
T.Abdullaev's user avatar
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 ...
steros's user avatar
  • 1,856

15 30 50 per page