blob: ea2984d0227f309e5900bb40b7dafa5a941d1d43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
jQuery ->
select_stop_on_map = (event) ->
if (event.type == 'mouseenter')
if event.target.id.match(/^stop_point_(\w+)$/)
console.log(event.target.id)
stopAreaId = $("#"+event.target.id+" a").attr('href').match(/\d+$/)[0]
console.log(stopAreaId)
placeMark = selectFeature.layer.getFeatureByFid( stopAreaId)
selectFeature.unselectAll()
selectFeature.select( placeMark)
else
selectFeature.unselectAll()
$(document).on("hover", '.routes.show div.stop_points .stop_point', select_stop_on_map)
|