-
Notifications
You must be signed in to change notification settings - Fork 8
Ol Package
Tzahi Levi edited this page May 7, 2019
·
3 revisions
@ansyn/ol
give the ability to use OpenLayers api without the need to know anything about OpenLayers.
npm i @ansyn/ol
@ansyn/ol
must be install with the @ansyn/imagery
packages
@ansyn/ol
supply number of clases that you can provide to your imagery module
-
OpenLayersMap
- To create an open layers map container in your app. -
OpenLayerOSMSourceProvider
- To use open layers map with OSM as your world map source provider. -
OpenLayerBingSourceProvider
- To use open layers map with BING as your world map source provider. -
OpenLayerESRI4326SourceProvider
- To use open layers map with ESRI_4326 as your world map source provider. -
OpenLayerTileWMSSourceProvider
- To use open layers map with TileWMS server as your world map source provider. -
AnnotationsVisualizer
- Open Layers plugin to draw annotations on the map.
When we use OpenLayersMap
we must provide to our root module an OL_CONFIG
config
in our app.module.ts
we pass
import {OL_CONFIG} from '@ansyn/ol';
...
providers: [
{
provide: OL_CONFIG,
useValue: {}
}
...
]
We can pass an empty object to use the default config or pass an object with the structure:
{
tilesLoadingDoubleBuffer: {
debounceTimeInMs: number;
timeoutInMs: number;
};
floatingPositionSuffix?: string;
}
-
tilesLoadingDoubleBuffer
: time to wait when loading tiles before show them-
debounceTimeInMs
: add delay to the event. -
timeoutInMs
: start showing the tiles.
-
-
floatingPositionSuffix
: string to concat to the coordinates position.