I've tried to incorporate this sample that shows how to switch base layers into a page I am working on:
http://openlayers.org/en/v3.10.1/examples/bing-maps.html
When I try to load my page with the code included I get this error: Uncaught Error: addEventListener and attachEvent are unavailable. ol.js:34. I've googled this some but haven't found the answer yet. Here is all of the code for my page - I've pieced together code from various samples so I know it needs some cleanup, but wanted to include everything I have for reference. Can anyone help?
Vector layer example
http://www.gisarab.com/
Aerial with labels Road
أكثر...
http://openlayers.org/en/v3.10.1/examples/bing-maps.html
When I try to load my page with the code included I get this error: Uncaught Error: addEventListener and attachEvent are unavailable. ol.js:34. I've googled this some but haven't found the answer yet. Here is all of the code for my page - I've pieced together code from various samples so I know it needs some cleanup, but wanted to include everything I have for reference. Can anyone help?
Vector layer example
http://www.gisarab.com/
Aerial with labels Road
أكثر...