Comment 2 for bug 744940

Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :

It should be noted that geomap.js already has the option of using a bounding box if a bbox parameter is used in the URL.

So there are two options:

1. redirect the geomap frontpage to the same URL with a bbox-query created from the list of room locations.

or

2. make a geomap url that produces a short javascript snippet creating a bounding box from all the room locations, and using that bounding box as the default bounding box in geomap.js init() function (unless a parameters.bbox is set). Include this URL in the geomap document <head>.

The latter solution would perhaps be preferred, as it at least will be more robust against too long URLs in the case of an installation that has insanely many rooms.