You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A quick fix could be to have itowns.ShapefileParser.parse accept an argument of type ArrayBuffer containing the zip and call parseZip(data.zip || data) internally.
styling for point features
the default DragNDrop style does not display point feature, we could add to it :
an optionnal style argument could be added to DragNDrop.register to override the style which is now limited to random colors. A similar request could be to override the convert function of geometry layers.
The text was updated successfully, but these errors were encountered:
A quick fix could be to have itowns.ShapefileParser.parse accept an argument of type ArrayBuffer containing the zip and call parseZip(data.zip || data) internally
Yes, I let you do this quick patch !
the default DragNDrop style does not display point feature, we could add to it :
Yeah I didn't see that, thanks for noticing it. I let you do this too ;)
an optionnal style argument could be added to DragNDrop.register to override the style
I agree, maybe you can add a options as a last argument of register, and then at first you can put style into it, and convert can be added later.
3 comments/issues related to my attempt to use DragNDrop plugin to load a zipped version of the velib dataset used in the shapefile example.
API mismatch
The APIs of DragNDrop and shapefileParser are not directly compatible, such that the following does not work :
DragNDrop.register('zip', DragNDrop.BINARY, itowns.ShapefileParser.parse, DragNDrop.COLOR);
A quick fix could be to have
itowns.ShapefileParser.parse
accept an argument of type ArrayBuffer containing the zip and callparseZip(data.zip || data)
internally.styling for point features
the default DragNDrop style does not display point feature, we could add to it :
style option
an optionnal style argument could be added to
DragNDrop.register
to override the style which is now limited to random colors. A similar request could be to override the convert function of geometry layers.The text was updated successfully, but these errors were encountered: