[OpenLayers-Users] Using British OS National Grid-based WMS in
openlayers... how?
Nick Whitelegg
nick at hogweed.org
Wed Nov 1 17:11:02 EST 2006
> Seems like you're looking for the information in:
> http://openlayers.org/pipermail/users/2006-October/000067.html
>
> in other words, your map should be constructed with an options array:
>
> {
> maxExtent: new OpenLayers.Bounds(0,0,500000,600000),
> maxResolution: 'auto',
> units: 'meters'
> }
>
> maxResolution 'auto' can be changed to any reasonable value:
> reasonable is typically 'width of maximum extent in units of the map
> divided by the width of the div in which it is being displayed'.
> Setting this to a fixed value allows you to cache the results for
> different browser windows, which maxResolution 'auto' does not allow.
OK thanks.
Result is at http://nick.dev.openstreetmap.org/openpaths/ (tested firefox 1.5
only)
Nick
More information about the Users
mailing list