2014-04-28 00:33:21 +02:00
|
|
|
%h2=t '.title'
|
|
|
|
|
|
|
|
#map
|
|
|
|
|
|
|
|
:javascript
|
|
|
|
var eventsLayer = new OpenLayers.Layer.Markers("#{t '.events'}");
|
|
|
|
eventsLayer.setVisibility(true);
|
|
|
|
var iconSize = new OpenLayers.Size(20, 20);
|
|
|
|
var iconOffset = new OpenLayers.Pixel(-(iconSize.w/2), -iconSize.h);
|
|
|
|
|
|
|
|
- for city in @cities_event
|
|
|
|
:coffee
|
2014-05-10 11:38:39 +02:00
|
|
|
eventsLayer.addMarker new OpenLayers.Marker(
|
2014-04-28 00:33:21 +02:00
|
|
|
new OpenLayers.LonLat(#{city.longitude}, #{city.latitude})
|
|
|
|
)
|
|
|
|
|
|
|
|
:javascript
|
|
|
|
var lugsLayer = new OpenLayers.Layer.Markers("#{t '.lugs'}");
|
|
|
|
lugsLayer.setVisibility(true);
|
|
|
|
var iconSize = new OpenLayers.Size(20, 20);
|
|
|
|
var iconOffset = new OpenLayers.Pixel(-(iconSize.w/2), -iconSize.h);
|
|
|
|
|
|
|
|
- for city in @cities_lug
|
|
|
|
:coffee
|
2014-05-10 11:38:39 +02:00
|
|
|
lugsLayer.addMarker new OpenLayers.Marker(
|
2014-04-28 00:33:21 +02:00
|
|
|
new OpenLayers.LonLat(#{city.longitude}, #{city.latitude})
|
|
|
|
new OpenLayers.Icon("/assets/team.png", iconSize, iconOffset)
|
|
|
|
)
|