staticmaps icon indicating copy to clipboard operation
staticmaps copied to clipboard

GeoJSON as input format

Open kuuup-at-work opened this issue 2 years ago • 2 comments

Hi.

It would be useful if we could input GeoJSON data without extracting coordinates. Styling information can be provided by the properties section so data could be used by staticmaps and other libs interchangeably.

kuuup-at-work avatar Feb 27 '23 07:02 kuuup-at-work

My suggestion for this: To keep backward compatibility, keep the addFeature methods and add a new addGeoJSON method that then passes the data to the respective method.

StephanGeorg avatar Feb 27 '23 11:02 StephanGeorg

Hi, I got interested in implementing this and created an addGeoJSON method. I have made a pull request for it, #87. Please let me know what you think.

leoalho avatar Jun 12 '23 15:06 leoalho