HandsOnDataViz/leaflet-storymaps-with-google-sheets

Add a custom number or id to the marker

Opened this issue · 1 comments

Apart from the option "Numbered", add an option "CustomNumbered" (or similar), and a way to specify the custom number or identifier of the marker.

Hi @Robot8A and thank you for the suggestion.

I'm inclined to keeping it limited to simply Numbered to avoid over-complicating the template. You can always edit your code around line 156 to get desired numbers. For example, if you want even numbering (2, 4, 6, ...), you could do chapterCount * 2 like this:

number: c['Marker'] === 'Plain' ? '' : chapterCount * 2,