Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draw and edit circles #38

Open
mmeinert opened this issue Mar 16, 2015 · 5 comments
Open

Draw and edit circles #38

mmeinert opened this issue Mar 16, 2015 · 5 comments

Comments

@mmeinert
Copy link

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
Copy link
Member

Zverik commented Mar 16, 2015

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
Copy link
Author

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
Copy link
Member

Zverik commented Mar 17, 2015

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
Copy link
Author

Thank you, I'll try my best

@mmeinert
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants