I have a leaflet map that I need to fitBound on a given rectangle. The coordinate for the fit bound will be transfered in JSON via a REST call on a server. We are using GEOJson to encode our geometry
So my question is : what would be the correct way to encode this using geojson? The RC candidate seemed to include a BOX type that would be perfect, but this type is not present in the final specification.
So far I see :
- There is a bbox attribute, but it seem to apply to a specific geometry. I couldn't use it on its own.
- I could just send a dumb JSON array
[-90, -180, 90, 180], but then I lose the advantages of using a standardised format.
- I could use the BOX type but it appear to have been dropped.
What should I use to send this information?