From c69366ec0a1a2564c824d723f982aecda4192763 Mon Sep 17 00:00:00 2001 From: Olivier Guyot Date: Thu, 15 Nov 2018 09:04:24 +0100 Subject: [PATCH] Updated the sphere mollweide example --- examples/sphere-mollweide.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/examples/sphere-mollweide.js b/examples/sphere-mollweide.js index e86d0c3ab7..340119a7d7 100644 --- a/examples/sphere-mollweide.js +++ b/examples/sphere-mollweide.js @@ -1,4 +1,4 @@ -import Graticule from '../src/ol/Graticule.js'; +import Graticule from '../src/ol/layer/Graticule.js'; import Map from '../src/ol/Map.js'; import View from '../src/ol/View.js'; import GeoJSON from '../src/ol/format/GeoJSON.js'; @@ -30,7 +30,8 @@ const map = new Map({ url: 'data/geojson/countries-110m.geojson', format: new GeoJSON() }) - }) + }), + new Graticule() ], target: 'map', view: new View({ @@ -40,7 +41,3 @@ const map = new Map({ zoom: 0 }) }); - -new Graticule({ - map: map -});