Skip to main content

All Questions

0 votes
0 answers
153 views

Changing the color of a Leaflet map polyline as I navigate from point A to B

I'm working on a project where I'm using Leaflet to create a map. I've defined a path from point A to B, and it's currently colored yellow. However, I want to change the color of the traveled path to ...
Sammith Gowda's user avatar
0 votes
0 answers
45 views

how to use leaflet.shapefile plugin

how do we actually start using leaflet.shapefile plugin from calvinmetcalf? I ran npm install shpjs --save, but when I do something like new L.Shapefile it will show this error: ...
Qwerty's user avatar
  • 23
-1 votes
1 answer
247 views

How to read/load zipped Shapefile on leaflet/react-leaflet in reactjs

do anyone knows how to read/load shapefile (in zip format) on leaflet in reactjs? In this project I had given a zipped shapefile and i want to show that data on Leaflet OSM map on react application. ...
Sonu Gadewar's user avatar
0 votes
1 answer
370 views

Lastest Version of ReactJS and LeafLet.Shapefile Not Work, only display blank page

I'm currently working on ReactJS GIS and referring to this sample Demo. But when I update the latest version of React and dependencies is not work, no error message displayed on the console. What ...
Plipus Tel's user avatar
2 votes
0 answers
594 views

How to clip GeoTiff according to shapefile using javascript?

Situation: I am plotting data provided in a GeoTIFF file on a map using Reactjs and geoTiff.js. An example of the GeoTiff files I am using is at the following link: https://drive.google.com/file/d/...
piyush kasturi's user avatar
0 votes
0 answers
696 views

How do I access attribute data from a shapefile to make a chloropleth in react using leaflet?

I have a react leaflet web page I am putting together where I read in a shapefile. I want to be able to map data from the attributes table connected to the shapefile. In this case I am using the taxi ...
LoF10's user avatar
  • 2,017
1 vote
1 answer
3k views

Add zipped shapefiles to a react-leaflet map

I would like to add shapefiles in a zipped folder to a react leaflet map. I have tried converting them to JSON format and reading them using this package => https://www.npmjs.com/package/react-...
Priscilla Adong's user avatar