Title: Sorting feasability?
Last modified: November 1, 2024

---

# Sorting feasability?

 *  Resolved [nebulal45](https://wordpress.org/support/users/nebulal45/)
 * (@nebulal45)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/sorting-feasability/)
 * I’m hoping to reproduce [this ](https://cambridgeringing.info/map.htm)Leaflet
   map on a new wordpress site.
 * I’m unsure if the sorting/filtering of markers above the map is possible using
   this plugin/wordpress?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/sorting-feasability/#post-18110672)
 * This is possible with [leaflet-optiongroup and leaflet-featuregroup](https://leafext.de/en/doku/featuregroup/).
 *  Thread Starter [nebulal45](https://wordpress.org/support/users/nebulal45/)
 * (@nebulal45)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/sorting-feasability/#post-18116763)
 * Thanks.
 * Do you have any experience or advice for generating the geojson file from within
   wordpress?
 * I have the data for a set of markers in the wordpress database (used in other
   parts of the site), how could I automatically produce a geojson file that extracts
   from this database?
 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/sorting-feasability/#post-18116829)
 * I would use [https://overpass-turbo.eu/](https://overpass-turbo.eu/) for the 
   boundaries. These you can export to geojson. Or get the ids for the administrative
   areas from [https://www.openstreetmap.org](https://www.openstreetmap.org) and
   then use [https://polygons.openstreetmap.fr/](https://polygons.openstreetmap.fr/)
   to get the geojsons. Load the geojsons with `leaflet-geojson color=... src=...]
   Name[/leaflet-geojson]` Then use
 *     ```wp-block-code
       [leaflet-optiongroup option="color" values="blue, red" groups="Diocese Boundary, District  Boundary" visible=0,1]
       ```
   
 * It is easy to generate the markers from a database. Do you know php?
 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/sorting-feasability/#post-18132174)
 * Can I help you further? Otherwise I will set the thread as resolved.
 *  Thread Starter [nebulal45](https://wordpress.org/support/users/nebulal45/)
 * (@nebulal45)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/sorting-feasability/#post-18135866)
 * I have made it all work now thank you very much for pointing me in the right 
   direction.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Sorting feasability?’ is closed to new replies.

 * ![](https://ps.w.org/extensions-leaflet-map/assets/icon-256x256.png?rev=3067862)
 * [Extensions for Leaflet Map](https://wordpress.org/plugins/extensions-leaflet-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/extensions-leaflet-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/extensions-leaflet-map/)
 * [Active Topics](https://wordpress.org/support/plugin/extensions-leaflet-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/extensions-leaflet-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/extensions-leaflet-map/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [nebulal45](https://wordpress.org/support/users/nebulal45/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/sorting-feasability/#post-18135866)
 * Status: resolved