Upgrading OpenLayers from v 5.3.0 to v 6.12.0 results in "ReferenceError: TileLayer is not defnied"
I try to update this layer from OpenLayers v5.3.0 to v6.12.0 but I get an error: ReferenceError: TileLayer is not defined as if the function was not loaded from the ol library call: <link rel="stylesheet" type="text/css" href="/iliad/bibliotheques_javascript/olv6.12.0/css/ol.css"> <script type="text/javascript" src="/iliad/bibliotheques_javascript/olv6.12.0/build/ol.js" data-url="/iliad/autoconfINRAP.json"></script> the layer code in v5.3.0 var osmLyr = new ol.layer.Tile({ olParams: { crossOrigin: "Anonymous", }, source: new ol.source.OSM(), opacity: 1, name: 'Carte Osm', description: "carte o
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.