Tom Chance wrote:
    I'm in the middle of a web site overhaul for a town council, and I'd like to
    improve the site by using OSM maps for each of the wards. The problem is how
    to highlight the relevant area?


One simple solution I have used:

* get the OS open data boundary line dataset
* use QGIS to clip the shapefile to just have the boundaries for wards in the
town council's bounds
* save that as geojson from QGIS
* or as that previous step sometimes fails save as GPX, open in JOSM and save as
geojson (!)
* reference that in your leaflet or openlayers script, and use the attributes
and styling to only show the selected ward, or show it differently, etc.

In some map tools I've created for a local political party branch using
leaflet-js, this results in nice polygons on a slippy map with the MapBox
streets tiles. Very clean, attractive, quick and easy to use. Also for this site
- www.londonrents.org.uk <http://www.londonrents.org.uk>

You can also use QGIS to simplify the polygons if you're not bothered about
precision. I've done this for the rents map above, which resulted in a much
smaller chunk of geojson, which hugely improves loading times.

That is on the line of where I am heading :)
Of cause being able to click on a 'ward' and show the councillors will have to come later ... Currently the site just has a list of streets for each, so it will be nice to know if they are ALL on OSM ...

--
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@openstreetmap.org
http://lists.openstreetmap.org/listinfo/talk-gb

Reply via email to