This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
thinkgeo_cloud_maps_vector_tiles [2019/04/01 08:05] johnnyz [Samples] |
thinkgeo_cloud_maps_vector_tiles [2019/05/07 08:53] (current) tgwikiupdate |
||
|---|---|---|---|
| Line 81: | Line 81: | ||
| <code javascript> | <code javascript> | ||
| - | <link rel="stylesheet" href="https://cdn.thinkgeo.com/vectormap-js/2.0.2/vectormap.css"></link> | + | <link rel="stylesheet" href="https://cdn.thinkgeo.com/vectormap-js/3.0.0/vectormap.css"></link> |
| - | <script src="https://cdn.thinkgeo.com/vectormap-js/2.0.2/vectormap.js"></script> | + | <script src="https://cdn.thinkgeo.com/vectormap-js/3.0.0/vectormap.js"></script> |
| </code> | </code> | ||
| Line 93: | Line 93: | ||
| <code javascript> | <code javascript> | ||
| - | var worldstreetsStyle = "https://cdn.thinkgeo.com/worldstreets-styles/1.0.0/light.json"; | + | var worldstreetsStyle = "https://cdn.thinkgeo.com/worldstreets-styles/3.0.0/light.json"; |
| var worldstreets = new ol.mapsuite.VectorTileLayer(worldstreetsStyle, | var worldstreets = new ol.mapsuite.VectorTileLayer(worldstreetsStyle, | ||
| { | { | ||
| Line 101: | Line 101: | ||
| layers: [worldstreets], | layers: [worldstreets], | ||
| target: 'map', | target: 'map', | ||
| + | renderer: 'webgl', | ||
| view: new ol.View({ | view: new ol.View({ | ||
| center: [-10775718.490585351, 3868389.0226015863], | center: [-10775718.490585351, 3868389.0226015863], | ||
| zoom: 4, | zoom: 4, | ||
| - | maxResolution: 40075016.68557849 / 512, | + | maxResolution: 40075016.68557849 / 512 |
| }), | }), | ||
| }); | }); | ||