Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (15 sloc) 0.459 kB
$ ->
($ '#map').gmap().bind 'init', (evt, map)->
($ '#posts .tags').each ->
$link = ($ this).siblings 'a'
console.log $link
coords = ($ this).text().split()[0]
($ '#map').gmap('addMarker', {
'position': coords,
'bounds': true
}, (map, marker)->
$link.click (e)->
e.preventDefault()
($ marker).triggerEvent 'click'
).click ->
map.panTo $( this).get(0).getPosition()
Jump to Line
Something went wrong with that request. Please try again.