MapBBCode / share.mapbbcode.org

MapBBCode Share
http://share.mapbbcode.org
57 stars 12 forks source link

Draw and edit circles #38

Open mmeinert opened 9 years ago

mmeinert commented 9 years ago

Hi there,

I'd like to draw circles on my map so I activated it with [...]circle:!0[...] in mapbbcode.js. It works but I can't save my map(s) with circle(s) and I can't change colors of it when clicking on it.

What did I miss or what's missing ?

Thank you

Zverik commented 9 years ago

Hi! Alas, circles are not enabled, because 1) they are not in the MapBBCode specification, and therefore cannot be stored in the database; 2) circles and rectangles look strange on the planet surface and need a lot of computational resources to draw. Or simply, my library does not support proper drawing of them.

mmeinert commented 9 years ago

Hi Zverik, thank you for your fast answer.

Do you think possible to prepare circles of radius 50m-100m-200m and add them as "markers" ? As they are predefined, only the center of the circle should be geopositioned and this should fit in the database.

If you think that possible, where should I start hacking ?

Thank you

Zverik commented 9 years ago

That is not possible with this service, or its alternative, uMap. You would have to make a page yourself and upload it somewhere. For example, on Github Pages. This guide has everything you would need. For center coordinates, you can use share.mapbbcode to place center markers, and then export them as html: you will receive a page with leaflet map, and all you would need to do is to replace markers with circles.

mmeinert commented 9 years ago

Thank you, I'll try my best

mmeinert commented 9 years ago

Hi @Zverik, I opened a Stackexchange thread and found an answer to another thread very relevant. I'd like to hear your impression on the feasibility to add this to MapBBCode specification.