This commit is contained in:
Willem Dantuma 2021-01-22 12:26:14 +01:00
parent 9376c236aa
commit 2949e39fcd
2 changed files with 4 additions and 4 deletions

View File

@ -129,7 +129,7 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange
source: new VectorTileSource({ source: new VectorTileSource({
maxZoom: rt.maxzoom, maxZoom: rt.maxzoom,
minZoom: rt.minzoom, minZoom: rt.minzoom,
format: new MVT({idProperty:'OBJECTID'}), format: new MVT(),
url: `${this._apiEndPoint}/api/v1/items/${item.code}/vectortiles/{z}/{x}/{y}.pbf?v=${Date.parse(item.updated)}` url: `${this._apiEndPoint}/api/v1/items/${item.code}/vectortiles/{z}/{x}/{y}.pbf?v=${Date.parse(item.updated)}`
}), }),
style: (feature) => { style: (feature) => {
@ -386,7 +386,7 @@ export class ItemLayersComponent extends LayerGroupComponent implements OnChange
} }
mapEventHandler = (event) => { mapEventHandler = (event) => {
return; //return;
//if(event.type === 'click' && !this.onFeatureSelected.observers.length) return; //if(event.type === 'click' && !this.onFeatureSelected.observers.length) return;
//if(event.type === 'pointermode' && !this.onFeatureHover.observers.length) return; //if(event.type === 'pointermode' && !this.onFeatureHover.observers.length) return;
if(this.itemLayer && this.itemLayer.layer) { if(this.itemLayer && this.itemLayer.layer) {

View File

@ -1,9 +1,9 @@
{ {
"issuer": "https://accounts.test.farmmaps.eu", "issuer": "https://accounts.test.farmmaps.eu",
"clientId": "farmmapsdev", "clientId": "farmmapsdev",
"audience": "https://test.farmmaps.eu/", "audience": "http://localhost:8082",
"requireHttps": true, "requireHttps": true,
"apiEndPoint": "https://test.farmmaps.eu", "apiEndPoint": "http://localhost:8082",
"grantType":"code" "grantType":"code"
} }