Skip to content

Commit

Permalink
v0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Dec 16, 2021
1 parent 75788c9 commit 563b175
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ You can also build the files yourself and deploy them to any web host:
* Development: Run the development server by executing `npm start`.
* Deployment: Build the project by executing `npm run build`. Afterwards upload the content of the `dist` folder to your server.

### Breaking changes

* Please note that in v0.9.8 and v0.9.9 the config file structure has changed slightly.
You need to add the new `basemaps` property to your config file. Otherwise, you won't see a basemap any more.

### Query Parameters

You can use some query parameters to set initial state to the Editor.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openeo/web-editor",
"version": "0.9.9",
"version": "0.10.0",
"apiVersions": [
"1.0.0-rc.2",
"1.0.0",
Expand Down
26 changes: 14 additions & 12 deletions src/components/MapMixin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,20 @@ export default {
attributionsCollapsible: false
};
this.baseLayers = [];
let hasDefault = false;
for(let opts of this.$config.basemaps) {
let basemap = new XYZ(Object.assign({}, basemapOptions, opts));
let baselayer = new TileLayer({
source: this.trackTileProgress(basemap),
baseLayer: true,
title: opts.title,
noSwitcherDelete: true,
visible: !hasDefault
});
this.baseLayers.push(baselayer);
hasDefault = true;
if (Array.isArray(this.$config.basemaps)) {
let hasDefault = false;
for(let opts of this.$config.basemaps) {
let basemap = new XYZ(Object.assign({}, basemapOptions, opts));
let baselayer = new TileLayer({
source: this.trackTileProgress(basemap),
baseLayer: true,
title: opts.title,
noSwitcherDelete: true,
visible: !hasDefault
});
this.baseLayers.push(baselayer);
hasDefault = true;
}
}
let center = [this.center[1], this.center[0]];
var mapOptions = {
Expand Down

0 comments on commit 563b175

Please sign in to comment.