Skip to content

Commit

Permalink
* fixed issue with colors on map widget
Browse files Browse the repository at this point in the history
  • Loading branch information
agnybida committed Aug 28, 2024
1 parent e841e4f commit 139efd3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "deep-see-web",
"version": "4.0.6",
"version": "4.0.7",
"scripts": {
"ng": "ng",
"start": "ng serve --proxy-config=proxy.conf.samples-bi.js",
Expand Down
5 changes: 2 additions & 3 deletions src/app/components/widgets/map-widget/map-widget.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export class MapWidgetComponent extends BaseWidget implements OnInit, OnDestroy,
// }
// }
/// url = 'uspolygons.js';
//this.ds.getFile('/assets/UAMap.geojson')
//this.ds.getFile('/assets/uaeMap.geojson')
this.ds.getFile(url)
.then(data => this.onPolyFileLoaded(data))
.finally(() => this.hideLoading());
Expand Down Expand Up @@ -363,14 +363,13 @@ export class MapWidgetComponent extends BaseWidget implements OnInit, OnDestroy,
f = f.substring(fidx + 1, f.length - 1);
parts = f.split(',');
const x = value || 0;
var tmp;
for (let i = 0; i < parts.length; i++) {
if (parts[i].indexOf('x') === -1) {
continue;
}
parts[i] = parts[i].replace(/x/g, x.toString());
const ev = 'eval';
window[ev]('tmp = ' + parts[i] + ';');
let tmp = window[ev](parts[i]);
if (tmp > 255) {
tmp = 255;
}
Expand Down
3 changes: 3 additions & 0 deletions src/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#### 4.0.7
* fixed issue with colors on map widget

#### 4.0.6
* changing `tile push` option now applied immediately without page refresh (#310)

Expand Down

0 comments on commit 139efd3

Please sign in to comment.