@bricebou:
I don’t see any reason why more than one map would be needed (on the backend) for this need
You never know what other use cases might be. It's better to at least plan ahead, that someone might want to have multiple maps. For example store locations around the country as a list.
@bricebou:
Multiple coordinates are saved within a single text field :
title: sdfsdfsdf
coordinates: '51.48890840245442,-0.406494140625;51.7106931293536,0.49987792968750006'
How do I add a title for each of these coordinates? Or any other additional info 🙂 IMO marker should have it's own set of fields also
@bricebou:
I’ve extended the default.yaml blueprint, as the Quark theme does
Currently you're extending the default blueprint itself. I'm not even sure what takes priority - theme or plugin. Or are they merged.. And don't know what happens if multiple plugins extend it this way. Quark does this, because it's a theme (not a plugin) and it adds body_classes text field to it, which is necessary for theme to function as intended. Plugin should have its own template and separate blueprint for it. You can check an example on one of my own plugins to see what I try to say. There's a separate page template and a blueprint for it, which extends the default as you want to.
Current approach eliminates an option of having a page without a map. If default blueprint is merged from theme and all the plugins (as I would expect), then most of the pages (I suspect even of other plugins, that are extending default for their own custom page blueprint) would have a map.
I mean my plugin linked above - image_comparer template page would also have a map (probably, because I extend default; need to test). I definitely wouldn't want that to happen. Even if it doesn't mess up things, I would still want to have an option to add a default page without a map.
@bricebou:
For the frontend, the idea is to supply something like {{ gis }} that adds the map with all markers.
My suggestion is to at least prepare for multiple maps solution
@bricebou:
And then to work on the shortcode way to insert maps within the content
And here we have a problem if user decides to insert multiple maps in the content. There's basically no way to prevent user doing that. If user will try and it won't work, at least I would consider it as a bug.
TBH, if I needed such a plugin, I'd probably took quite a few parts of what you have already done, give you credit, but create my own with all the features I could think of, that anyone might find a use case for. Marker without at least a title for me would be a deal breaker.
Don't get me wrong. You already did a good job, but in the current direction I don't really see how it can't be used in a variety of different cases.