Angular Azure Maps
Angular Azure Maps is a wrapped MS Azure Map on Angular
How to use
AzureMapDocumentation
First add this two line to your index.html:
Or use our lazy loading
Lazy loading
// in component constructor:constructorprivate mapService: LoadMapService // and use load() method for expample in ngOnInit this.mapService.load.subscribe
This mapService
own isLoaded
properties so you can simple use it to know when map was loaded in temaple
To wrap this module you can add in your template:
// For multiple maps
First input is your config to create map. Look
Map Init.
Second is your data with map's items that you can add on map
Your config should look like:
public config =;
Other config options: Style Options | User Interaction Options | Service Options | Camera Options
To add items you must use
@ViewChild('maper') maper: AtlasMapComponent;
and
this.maper.updatePoints(features)
Your data element should by AmFeatures type:
In your parent component you must create your data.
First create your map feature - Feature
Example for simple Point:
dataPointsInitdata: atlas.data.Feature
Example for PinLaterOptions:
dataLayerOptionsitem: PinLayerOptions
And merge it do AmFeature type:
mergeDataPointdata
Components
Our AtlasMapComponent will create your map canvas, and add your Map Elements to map through added pins on it.
Also can added PopUps on pins through atlas-popup directive and ng-template in your parent component html file:
<!--Item you want to show in popup--> <!--<div>{{ dataElement.name}}</div>--> <!--<div> {{ dataElement.status }}</div>-->