Use renderTo instead of el as method/option name.

This commit is contained in:
ahocevar
2012-06-22 11:17:27 +02:00
parent 86a3eaad19
commit fbcca9642c
2 changed files with 7 additions and 7 deletions

View File

@@ -14,7 +14,7 @@
<div id="map"></div>
<script type="text/javascript">
ol.map({
el: 'map',
renderTo: 'map',
layers: [ol.layer.osm()],
center: [45, 5],
zoom: 10