1
votes

I was used this tutorial and copy code of tutorial step by step but don't work for me.

As mentioned in the tutorial, I was used ?renderer=webgl as a query string.

here is jsfiddle of my code: https://jsfiddle.net/4gvdsjwj/

What is wrong?

1

1 Answers

3
votes

You need to include the 'renderer' option in your map definition.

var map = new ol.Map({
layers: [layer],
renderer: 'webgl',
target: 'map',
view: new ol.View({
  center: [0, 0],
  zoom: 2
})

});