rob-murray / os-leaflet

A Leafletjs TileLayer using Ordnance Survey OpenSpace web map service
http://rob-murray.github.io/os-leaflet/
MIT License
24 stars 8 forks source link

Add host Url as parameter when creating tile layer #14

Closed JimBacon closed 7 years ago

JimBacon commented 7 years ago

When applying for an OSOpenSpace API key it is associated with a project url. It appears from the example provided by OS that this should be included as the URL parameter in the WMS request as part of the authentication process. Currently this is hard-coded as URL: 'file:///' which is allowed for testing purposes. It would be good to allow this to be overriden by a user-supplied value.

JimBacon commented 7 years ago

Relates to issue #12

rob-murray commented 7 years ago

Fixed on master now