Use renderTo instead of el as method/option name.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user