Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
label: "OpenStreetMap contributors",
link: "https://www.openstreetmap.org/copyright"
}
]);
//filter all but one layer on one of the mapviews
const filterBuilder = new OmvFeatureFilterDescriptionBuilder({
processLayersDefault: true
});
filterBuilder.ignoreLayer("boundaries", OmvFilterString.StringMatch.Match);
filterBuilder.ignoreLayer("water", OmvFilterString.StringMatch.Match);
filterBuilder.ignoreLayer("landuse", OmvFilterString.StringMatch.Match);
filterBuilder.ignoreLayer("earth", OmvFilterString.StringMatch.Match);
filterBuilder.ignoreLayer("places", OmvFilterString.StringMatch.Match);
filterBuilder.ignoreLayer("pois", OmvFilterString.StringMatch.Match);
filterBuilder.ignoreLayer("buildings", OmvFilterString.StringMatch.Match);
filterBuilder.ignoreLayer("transit", OmvFilterString.StringMatch.Match);
//filterBuilder.ignoreLayer("roads", OmvFilterString.StringMatch.Match);
const filterDescr = filterBuilder.createDescription();
dataSources.omvDataSource2.setDataFilter(filterDescr);
// end:vislib_multiview_mapDiffView_2.ts
/**
* A function that copies the position and orientation of one MapView/MapControl to the others
* @param srcView Source with MapView with current location and MapControl with current camera
* position and orientation
* @param destView Destination MapView synced to current location; MapControl synced to current
* position and orientation
*/
// snippet:vislib_multiview_mapDiffView_3.ts
.attach(mapViews.view1.mapView)
.attach(mapViews.view2.mapView)
.setDefaults([
{
id: "openstreetmap.org",
label: "OpenStreetMap contributors",
link: "https://www.openstreetmap.org/copyright"
}
]);
//filter all but one layer on one of the mapviews
const filterBuilder = new OmvFeatureFilterDescriptionBuilder({
processLayersDefault: true
});
filterBuilder.ignoreLayer("boundaries", OmvFilterString.StringMatch.Match);
filterBuilder.ignoreLayer("water", OmvFilterString.StringMatch.Match);
filterBuilder.ignoreLayer("landuse", OmvFilterString.StringMatch.Match);
filterBuilder.ignoreLayer("earth", OmvFilterString.StringMatch.Match);
filterBuilder.ignoreLayer("places", OmvFilterString.StringMatch.Match);
filterBuilder.ignoreLayer("pois", OmvFilterString.StringMatch.Match);
filterBuilder.ignoreLayer("buildings", OmvFilterString.StringMatch.Match);
filterBuilder.ignoreLayer("transit", OmvFilterString.StringMatch.Match);
//filterBuilder.ignoreLayer("roads", OmvFilterString.StringMatch.Match);
const filterDescr = filterBuilder.createDescription();
dataSources.omvDataSource2.setDataFilter(filterDescr);
// end:vislib_multiview_mapDiffView_2.ts
/**
* A function that copies the position and orientation of one MapView/MapControl to the others
* @param srcView Source with MapView with current location and MapControl with current camera