Rapide correction pour que la cartographie ne soit pas toujours générée
This commit is contained in:
parent
11223fbfa3
commit
f6d3a9fbba
|
@ -5,6 +5,7 @@
|
||||||
#= require openlayers-rails
|
#= require openlayers-rails
|
||||||
|
|
||||||
$(document).ready ->
|
$(document).ready ->
|
||||||
|
if $('#map').size() > 0
|
||||||
map = new OpenLayers.Map 'map'
|
map = new OpenLayers.Map 'map'
|
||||||
layer = new OpenLayers.Layer.WMS 'OpenLayers WMS',
|
layer = new OpenLayers.Layer.WMS 'OpenLayers WMS',
|
||||||
'http://vmap0.tiles.osgeo.org/wms/vmap0', {
|
'http://vmap0.tiles.osgeo.org/wms/vmap0', {
|
||||||
|
|
Loading…
Reference in New Issue