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

Add other geometries to maps #14

Open
wragge opened this issue Nov 5, 2024 · 1 comment
Open

Add other geometries to maps #14

wragge opened this issue Nov 5, 2024 · 1 comment

Comments

@wragge
Copy link
Owner

wragge commented Nov 5, 2024

The Mapping module now supports lines and polygons, so I should include methods for adding them to an item.

The geography-type values are:

  • Point
  • Polygon
  • LineString
@wragge
Copy link
Owner Author

wragge commented Nov 24, 2024

API endpoint is now: https://data.katebagnall.com/api/mapping_features/

The payload for features includes:

  • o:item -- item that this feature will be attached to
  • o:media -- media object displayed with feature
  • o:label -- label displayed with feature
  • o-module-mapping:geography-type -- one of Point, Polygon, or LineString
  • o-module-mapping:geography-coordinates -- array of coordinates eg [longitude, latitude] for a Point

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

1 participant