Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 113694

GeoJSON is a geospatial data interchange format based on JavaScript Object Notation (JSON)

0 votes
1 answer
1k views

Calculating gained elevation on GeoJSON

I need to calculate gained elevation on Multilines GeoJSON files in a Leaflet.js map. Is there is any plug-in to do that? My GeoJSON files contains Z/elevation data in geometry. …
Eslam Farag's user avatar
1 vote
2 answers
622 views

Getting hightest and lowest points

I have GeoJSON files that contains altitude values. I have used these GeoJSON files to be shown on leaflet.js web map. … Here is my code that to show GeoJSON lines on the map: $.getJSON('data/routes/New/Lwn.geojson', function (collection) { Lwn = L.geoJson(collection, { 'style': function () { return { …
Eslam Farag's user avatar
0 votes
1 answer
1k views

Export selected lines as GPX

I have created an option in my Leaflet.js web map that exports clicked lines as GPX, but it is just exports only the last clicked line. I need to export all clicked/highlighted/selected lines in one G …
Eslam Farag's user avatar
0 votes
1 answer
2k views

Converting JSON response into a GeoJSON layer in my Leaflet map

I need to convert a JSON response from Mapquest elevation API into a GeoJSON layer in my Leaflet map. var ele = $.getJSON('http://open.mapquestapi.com/elevation/v1/profile? …
Eslam Farag's user avatar
0 votes
1 answer
441 views

How to repeat drawing function in Leaflet

I am trying to create a Leaflet.js web map that gives users the opportunity to draw lines. this line will be sent to mapquest elevation API to be retun to the map as a GeoJSON with elevation data calculated … }); var firstPoint = feature.geometry.coordinates[0][2]; gainElevation = maxH - firstPoint; var length = turf.length(geojson
Eslam Farag's user avatar
3 votes
1 answer
1k views

Access geometry.coordinates of sliced vector grid

I am trying to represent LineString GeoJSON as vector tile layer using Leaflet.VectorGrid. … var tileLayer = L.vectorGrid.slicer(geojson, { rendererFactory: L.canvas.tile, vectorTileLayerStyles: { sliced: { color: "red", weight: 3, opacity: 0 …
Eslam Farag's user avatar