-
Notifications
You must be signed in to change notification settings - Fork 6
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
Support existing URLs #246
Labels
Milestone
Comments
ezwelty
added a commit
that referenced
this issue
Dec 27, 2022
- /about/project -> /about - /about/press -> /press - /about/share -> /sharing - /about/data -> /data + /datasets (combines both pages) Deprecated alternate paths /maps and /inventories are ignored. - /about/dataset/:id -> /imports/:id See #246.
ezwelty
added a commit
that referenced
this issue
Dec 27, 2022
- /entry/:id -> /locations/:id - /entry/new -> /locations/new - /entry/edit -> /locations/edit See #246.
ezwelty
added a commit
that referenced
this issue
Dec 27, 2022
- /account -> /users/edit - /login -> /users/sign_in - /signup -> /users/sign_up - /password -> /users/password - /password/reset -> /users/password/new - /password/set -> /users/password/edit (API update required) - /confirmation/new -> /users/confirmation/new - /confirmation -> /users/confirmation (API update required) See #246.
ezwelty
added a commit
that referenced
this issue
Dec 30, 2022
See #246. * Use about paths that match existing website - /about/project -> /about - /about/press -> /press - /about/share -> /sharing - /about/data -> /data + /datasets (combines both pages) Deprecated alternate paths /maps and /inventories are ignored. - /about/dataset/:id -> /imports/:id * Replace /entry path with existing /locations - /entry/:id -> /locations/:id - /entry/new -> /locations/new - /entry/edit -> /locations/edit * Use auth paths that match existing website - /account -> /users/edit - /login -> /users/sign_in - /signup -> /users/sign_up - /password -> /users/password - /password/reset -> /users/password/new - /password/set -> /users/password/edit (API update required) - /confirmation/new -> /users/confirmation/new - /confirmation -> /users/confirmation (API update required) * Use /reviews to match style of other paths - /review/:id/edit -> /reviews/:id/edit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Global URL parameters
locale
(default: 'en') – Language for interface and type common names: If not one of the supported translations (e.g.de
,el
,es
,fr
,it
,nl
,pl
,pt-br
), default to English (en
). Load the regional variant if requested and supported (e.g. 'pt-BR':pt-br
), and the parent language if not (e.g. 'fr-fr':fr
). Load a regional variant if the parent language is not supported (e.g. 'pt':pt-br
).Map URL parameters
Applies to any of the several URLs (see next section) that loads a view of the map.
High priority
x
,y
,z
– Map longitude, latitude, and zom: Either map to@{y},{x},{z}z
or rename@{y},{x},{z}z
tox={x}&y={y}&z={z}
m
(default: 'true') – Municipal tree inventories: Set settings checkbox state and map toGET api/locations?muni=
.f
– Location types (comma-separated type ids): Set type filter state and map toGET api/locations?types=
.c
(default: 'forager,freegan') – Location type categories (forager
,freegan
,grafter
,honeybee
): Either map to type filter based ontype.categories
returned byGET api/types
(not yet supported) or map toGET api/locations?categories=
(not yet supported)Low priority
t
(default: 'roadmap') – Map type ('roadmap': Google default, 'hybrid': Google satellite, 'toner-lite': Stamen toner-lite, 'OSM': OpenStreetMap default)toner-lite
,OSM
)l
(default: 'false') – Location labels: Set label checkbox stateMap URLs
/map
/map
/map
/map
(not ideal)c
: 'freegan' or the equivalent type filtert
: 'toner-lite'c
: 'grafter' or the equivalent type filterf
: 4628,x
: -99.09492,y
: 38.48128,z
: 5f
: 3082,x
: -99.09492,y
: 38.48128,z
: 5Other URLs
Not yet supported
GET api/locations/changes
/map
GET user/favorites
(not yet supported)/map
GET user/favorites/{id}
(not yet supported)Already supported
/data
The text was updated successfully, but these errors were encountered: