[Talk-GB] Selection of zoom area.

Dan S danstowell+osm at gmail.com
Fri Apr 4 07:49:38 UTC 2014


Hi Lester,

I'd suggest using the Leaflet javascript library to embed your maps:
<http://leafletjs.com/> They have some simple usage examples on the
site, and when you want to zoom the map to a particular bounding-box,
you can use a single javascript call "map.fitbounds(<bounds>)" which
you could put directly into your left-hand links.
<http://leafletjs.com/reference.html#map-fitbounds>

Best
Dan

2014-04-03 22:33 GMT+01:00 Lester Caine <lester at lsces.co.uk>:
> I'm in the process of moving a site from using google to OSM, but I'm
> looking at doing something a little different to my normal setups.
>
> http://espc.lsces.org.uk/wiki/Coverage+Area is as far as I have got, and the
> left hand links drop over to OSM, but obviously I'd like to get the right
> hand map updating. Can anybody suggest an example I can crib to get it
> working?
>
> --
> Lester Caine - G8HFL
> -----------------------------
> Contact - http://lsces.co.uk/wiki/?page=contact
> L.S.Caine Electronic Services - http://lsces.co.uk
> EnquirySolve - http://enquirysolve.com/
> Model Engineers Digital Workshop - http://medw.co.uk
> Rainbow Digital Media - http://rainbowdigitalmedia.co.uk
>
> _______________________________________________
> Talk-GB mailing list
> Talk-GB at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/talk-gb



More information about the Talk-GB mailing list