frictionlessdata / livemark

Data presentation framework for Python that generates static sites from extended Markdown with interactive charts, tables, scripts, and other features
https://livemark.frictionlessdata.io
MIT License
95 stars 9 forks source link

Option to Specify Lon/Lat Center for the Map Plugin #138

Open AyrtonB opened 3 years ago

AyrtonB commented 3 years ago

Overview

Essentially what it says on the tin. Currently the map is initialised with const map = L.map(elem).setView([51.505, -0.09], 4), it would be useful to be able to specify the center (and zoom) from the markdown doc.


Please preserve this line to notify @roll (lead of this repository)

roll commented 3 years ago

@AyrtonB Thanks. Initially, it was implemented as a prototype so it doesn't center and zoom automatically (although it should). The options is also a good idea

AyrtonB commented 3 years ago

Completely understand, loving LiveMark so far BTW. I'm planning to integrate some of the LiveMark plugins in a separate build process and will aim to submit a PR adding the center and zoom options once that's working.

roll commented 3 years ago

Great! Thanks