sylvainjule / kirby-locator

A simple map & geolocation field, built on top of open-source services and Mapbox. Kirby 3 and 4.
97 stars 14 forks source link

Feature suggestion: Panel view to display a collection of locator-pages on a map #48

Closed moevbiz closed 10 months ago

moevbiz commented 2 years ago

I've been using this plugin for a handful of sites that include, in some way or another, a collection of multiple pages with locator fields. In the frontend, all pages are output as a set of markers on a full-screen map, each having a popup or linking to a page etc.

I'd like to suggest building an "all locations"-view as an optional panel section. This could display multiple markers on a large map, each marker linking to the respective page in the panel. I know it will come in handy at least for my current/upcoming projects.

Is this something you would consider building/reviewing a pull request for? I'll be working on at least one or two map sites this year, so these projects could justify helping out with such an addition to this plugin.

sylvainjule commented 2 years ago

I haven't encountered the need for such a view in a project yet so I'll probably not find the time to dig into this myself in a near future, but I'd completely be open to merge a PR which adds this as an option!

sylvainjule commented 2 years ago

After giving it second thoughts, I will also have a use case for such a section quite soon. However, I'll also require to preview GeoJSON (for which I am currently working on a dedicated field) and coordinates of virtual pages. Not sure if it makes much sense to integrate it here, or work on a more global view (that would be also compatible with data from kirby-map, for example) and release as a separate plugin.

moevbiz commented 2 years ago

a separate plugin sounds like a smart idea. let me know if you decide to do this/need help/etc – i will likely have more time after summer

the-leonat commented 2 years ago

i am working on this and will share results soon.

the-leonat commented 2 years ago

this is a rough start: https://github.com/the-leonat/kirby-map-section

i reused some code from your field-plugin. but i decided to use vue2-leaflet for its declarative approach. i also reduced the customizability a lot to get going.

sylvainjule commented 10 months ago

Closing this in favor of a separate plugin.