ng2-heremaps
Version:
Here Maps for Angular 6
46 lines (45 loc) • 1.49 kB
TypeScript
/// <reference types="heremaps" />
/**
* Created by Bosko-Vibe on 7.11.2016.
*/
import { OnDestroy } from '@angular/core';
import { BaseMapComponent } from './base-map-component';
import { HereMapsManager } from '../services/maps-manager';
import { PolylineOptions } from '../interface/polyline-options';
import { MapComponent } from './map';
/**
* Directive that will render plyline to map. Please note that directive must be placed inside
* map component, otherwise it will never render polyline.
*/
export declare class MapPolylineDirective extends BaseMapComponent<H.map.Polyline> implements OnDestroy {
protected mapComponent: MapComponent;
private polyline;
private _fillColor;
private _strokeColor;
private _lineWidth;
/**
* Fill color that should be used when polyline is rendered on map
*/
fillColor: string;
/**
* Stroke color that should be used when polyline is rendered on map
*/
strokeColor: string;
/**
* Gives plyline with
*/
lineWidth: number;
options: PolylineOptions;
constructor(mapsManager: HereMapsManager);
/**
* Checks if map is set to directive
*/
hasMapComponent(): boolean;
/**
* Sets heremap to polyline. This is called by map component so you don't need to call it manually.
* @param component map component
* @param map here map instance
*/
setMapComponent(component: MapComponent, map: H.Map): void;
ngOnDestroy(): void;
}