-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new property to shapefile #47
Comments
so this plugin, internally, just converts the shapefile to geojson and creates a geojson layer, so anything you can do to a leaflet geojson layer you can do with this |
OK I get it, thanks for your help. |
I got another problem: var test = new L.Shapefile('XX/XX/XX.zip'); these code works fine |
this is 100% a leaflet issue you have so you may want to seek help there, but more generally some issues
|
ok this is probably just because the way this works is
in your app you're probably somewhere in steps 3-5 when you're looking you're going to want to wait for the 'data:loaded' event to fire on the layer before doing any of that stuff. |
OK, thanks for the help. |
Hello,
I'm now using your plugin for shapefiles.
I want to know if there's a method to add new properties (self-defined) into the shapefile object?
There's a method like "feature.properties.XXX = YYY" to add new property to the feature in GeoJson.
Wondering if there's something similar to it or another way to do this.
Thanks.
The text was updated successfully, but these errors were encountered: