You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which just converts map records to json directly, and results in them having a lot of not very useful content that's not readable; the body attribute especially.
We should remove body and instead include an imageUrl parameter, by appending it like we do here:
Yes! As an attribute alongside other map data. We can just use the url of
the first returned image for the map and not provide the attribute if there
aren't any!
Our API currently shows:
https://mapknitter.org/map/region/Gulf-Coast.json?minlon=-98.8&minlat=23.6&maxlon=-79.1&maxlat=31.8
Which just converts map records to json directly, and results in them having a lot of not very useful content that's not readable; the
body
attribute especially.We should remove
body
and instead include animageUrl
parameter, by appending it like we do here:mapknitter/app/controllers/maps_controller.rb
Lines 146 to 157 in bf0b340
This would let us display an image in the popup on the Leaflet map in Leaflet Environmental Layers: publiclab/leaflet-environmental-layers#112
The text was updated successfully, but these errors were encountered: