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

Show arbitrary shapes, administrative area boundaries #68

Open
jeffreykemp opened this issue Jul 17, 2019 · 4 comments
Open

Show arbitrary shapes, administrative area boundaries #68

jeffreykemp opened this issue Jul 17, 2019 · 4 comments
Assignees

Comments

@jeffreykemp
Copy link
Owner

  • Allow drawing circles, rectangles and other shapes on the map
  • Load administrative area boundaries
  • Style shapes with border and/or fill

Investigation required to determine feasibility.

@jeffreykemp
Copy link
Owner Author

@jeffreykemp jeffreykemp self-assigned this Jul 17, 2019
@jeffreykemp jeffreykemp changed the title Support arbitrary shapes Support arbitrary shapes, administrative area boundaries Jul 17, 2019
@jeffreykemp
Copy link
Owner Author

https://stackoverflow.com/a/31865958/103295

Possible method:

  1. Download KMZ from http://www.gadm.org/country
  2. Upload the KMZ to application static files
  3. API call to load data from the KMZ file
    • unzip the file
    • parse the XML
    • find the placemark desired
    • get the polygon geometry
    • add the polygon(s) to the map

Might have a performance penalty. Alternatively, provide instructions/method to upload the KMZ file, parse and load it into a database table which can then be queried by the plugin.

@jeffreykemp
Copy link
Owner Author

jeffreykemp commented Jul 17, 2019

Polygon styling:

  • line color
  • line opacity
  • line weight
  • fill color
  • fill opacity

https://developers.google.com/maps/documentation/javascript/examples/polygon-arrays

@jeffreykemp jeffreykemp changed the title Support arbitrary shapes, administrative area boundaries Show arbitrary shapes, administrative area boundaries Jul 17, 2019
@jeffreykemp jeffreykemp added this to the 1.1 milestone Jul 23, 2019
@jeffreykemp jeffreykemp modified the milestones: 1.1, 1.2 Oct 2, 2019
@jeffreykemp
Copy link
Owner Author

Partly added in Drawing/Viewing of GeoJSON layers #78

@jeffreykemp jeffreykemp removed this from the 1.2 milestone May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant