2014-04-28 00:33:21 +02:00
|
|
|
# Place all the behaviors and hooks related to the matching controller here.
|
|
|
|
# All this logic will automatically be available in application.js.
|
|
|
|
# You can use CoffeeScript in this file: http://coffeescript.org/
|
|
|
|
|
|
|
|
#= require openlayers-rails
|
|
|
|
|
|
|
|
$(document).ready ->
|
|
|
|
map = new OpenLayers.Map 'map'
|
|
|
|
layer = new OpenLayers.Layer.WMS 'OpenLayers WMS',
|
|
|
|
'http://vmap0.tiles.osgeo.org/wms/vmap0', {
|
|
|
|
layers: 'basic'
|
|
|
|
}
|
|
|
|
map.addLayer layer
|
2014-05-10 11:38:39 +02:00
|
|
|
map.setCenter new OpenLayers.LonLat(2.5, 46.4), 7
|
2014-04-28 00:33:21 +02:00
|
|
|
map.addControl new OpenLayers.Control.LayerSwitcher()
|
|
|
|
|
|
|
|
map.addLayer eventsLayer
|
|
|
|
map.addLayer lugsLayer
|