Closed tomchadwin closed 8 years ago
The error thrown is:
OSMBuildings-OL3.debug.js:2160:
TypeError: Cannot read property 'appendChild' of null(…)
Looks like it can't append the OSM Buildings layer to some map container. Could you provide some demo environment in order to check?
It's the output from qgis2web:
That gives the error above.
Could you provide me a sample site with qgis2web output or could you share screen?
I'll do an export and upload it somewhere. I'll see if I can also simplify it a bit. Share screen is an option - I'm in the UK, as far as timezone goes.
:+1: Helps me to get the error. I'll check.
I've added a fix. Please retry.
Brilliant - that appears to have sorted it. Many thanks!
This version is now used in qgis2web master, and on initial tests seems to work a treat. Thanks once again.
You're welcome :-)
I've added the Leaflet code to qgis2web (https://github.com/tomchadwin/qgis2web), and it works brilliantly. I'm now trying to add support for qgis2web's OL3 output. I've used the OL3 JS file in
/dist
, but I'm getting an error.Can anyone tell me what is possible/not possible with OL3, and how to do it?