youyesyet.canvasser-app.gis

Canvasser app map stuff.

add-map-pin

(add-map-pin address view)

Add an appropriate map-pin at this address in this map view.

get-current-location

(get-current-location)

TODO: write docs

map-pin-click-handler

(map-pin-click-handler id)

On clicking on the pin, navigate to the electors at the address. This way of doing it adds an antry in the browser location history, so back links work.

map-remove-pins

(map-remove-pins view)

Remove all pins from this map view. Side-effecty; liable to be problematic.

pin-image

(pin-image address)

Return the name of a suitable pin image for this address.

refresh-map-pins

(refresh-map-pins)

Refresh the map pins on the current map. Side-effecty; liable to be problematic.