mapbox / leaflet-omnivore

universal format parser for Leaflet & Mapbox.js
https://www.mapbox.com/mapbox.js/example/v1.0.0/omnivore-gpx/
Other
650 stars 126 forks source link

Possible to use omnivore to populate popup info? #13

Closed tdaubs closed 10 years ago

tdaubs commented 10 years ago

Is it possible to use omnivore to parse other data in a CSV file other than just lat and long? For instance, if I want to populate popups with info from the csv or even customize the marker based on csv data, is this possible with omnivore? If so, is there any documentation or code samples on how that can be accomplished?

tmcw commented 10 years ago

This is the same as customizing any marker layer, just that you need to wait for the ready event. Here are examples: https://www.mapbox.com/mapbox.js/example/v1.0.0/markers-from-csv-custom-style/ & https://www.mapbox.com/mapbox.js/example/v1.0.0/omnivore-kml-tooltip/