Skip to content

Commit 2c3e972

Browse files
Merge pull request #6 from arnaudleclerc/releases/0.3.0
Releases/0.3.0
2 parents 4606c18 + 5af3880 commit 2c3e972

33 files changed

Lines changed: 470 additions & 133 deletions

File tree

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
pull_request:
1313
branches:
1414
- develop
15-
- master
15+
- main
1616
paths:
1717
- src/**
1818
- tests/**

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
![Nuget](https://img.shields.io/nuget/v/AzureMapsControl.Components) ![Nuget (with prereleases)](https://img.shields.io/nuget/vpre/AzureMapsControl.Components) ![CI](https://github.com/arnaudleclerc/AzureMapsControl.Components/workflows/CI/badge.svg?branch=develop) ![release](https://github.com/arnaudleclerc/AzureMapsControl.Components/workflows/release/badge.svg?branch=develop)
1+
![Nuget](https://img.shields.io/nuget/v/AzureMapsControl.Components) ![Nuget (with prereleases)](https://img.shields.io/nuget/vpre/AzureMapsControl.Components) ![CI](https://github.com/arnaudleclerc/AzureMapsControl.Components/workflows/CI/badge.svg) ![release](https://github.com/arnaudleclerc/AzureMapsControl.Components/workflows/release/badge.svg)
22

33
This library allows you to use `Azure Maps` inside your razor application.
44

docs/layers/bubblelayer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The `Bubble Layer` requires a data source. The ID of the datasource to bind to t
2222
{
2323
const string dataSourceId = "bubbleDataSource";
2424
var dataSource = new AzureMapsControl.Components.Data.DataSource(dataSourceId);
25-
await events.Map.AddDataSourceAsync(dataSource);
25+
await events.Map.AddSourceAsync(dataSource);
2626
2727
2828
var geometries = new List<AzureMapsControl.Components.Atlas.Geometry>();

docs/layers/heatmaplayer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The `Heatmap Layer` requires a data source. The ID of the datasource to bind to
2323
{
2424
const string dataSourceId = "heatmapDataSource";
2525
var dataSource = new AzureMapsControl.Components.Data.DataSource(dataSourceId);
26-
await events.Map.AddDataSourceAsync(dataSource);
26+
await events.Map.AddSourceAsync(dataSource);
2727
await dataSource.ImportDataFromUrlAsync("https://services1.arcgis.com/0MSEUqKaxRlEPj5g/arcgis/rest/services/ncov_cases/FeatureServer/1/query?where=1%3D1&f=geojson&outFields=*");
2828
2929
var layer = new AzureMapsControl.Components.Layers.HeatmapLayer

docs/layers/linelayer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ A line layer can be used to render `LineString` and `MultiLineString` features a
2828
LineMetrics = true
2929
}
3030
};
31-
await events.Map.AddDataSourceAsync(dataSource);
31+
await events.Map.AddSourceAsync(dataSource);
3232
3333
await dataSource.AddAsync(new AzureMapsControl.Components.Atlas.LineString(new[] {
3434
new AzureMapsControl.Components.Atlas.Position(11.575454, 48.137392),

docs/layers/polygonextrusionlayer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The polygon extrusion layer renders areas of `Polygon` and `MultiPolygon` featur
2222
{
2323
const string dataSourceId = "dataSource";
2424
var dataSource = new AzureMapsControl.Components.Data.DataSource(dataSourceId);
25-
await events.Map.AddDataSourceAsync(dataSource);
25+
await events.Map.AddSourceAsync(dataSource);
2626
2727
await dataSource.ImportDataFromUrlAsync("https://raw.githubusercontent.com/arnaudleclerc/ng-azure-maps/master/assets/data/countries.geojson.json");
2828

docs/layers/polygonlayer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ A Polygon Layer renders the areas of `Polygon` and `MultiPolygon` feature geomet
2020
{
2121
const string dataSourceId = "dataSource";
2222
var dataSource = new AzureMapsControl.Components.Data.DataSource(dataSourceId);
23-
await events.Map.AddDataSourceAsync(dataSource);
23+
await events.Map.AddSourceAsync(dataSource);
2424
2525
var polygon = new AzureMapsControl.Components.Atlas.Polygon(new[]
2626
{

docs/layers/symbollayer/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ i
2121
public async Task OnMapReady(MapEventArgs events)
2222
{
2323
var blueDataSource = new AzureMapsControl.Components.Data.DataSource("blueDataSource");
24-
await events.Map.AddDataSourceAsync(blueDataSource);
24+
await events.Map.AddSourceAsync(blueDataSource);
2525
2626
var redDataSource = new AzureMapsControl.Components.Data.DataSource("redDataSource");
27-
await events.Map.AddDataSourceAsync(redDataSource);
27+
await events.Map.AddSourceAsync(redDataSource);
2828
2929
var bluePoints = new List<AzureMapsControl.Components.Atlas.Point>();
3030
var redPoints = new List<AzureMapsControl.Components.Atlas.Point>();

docs/sources/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## Sources
2+
3+
Most of the layers require `sources` to read their data from. A source needs to be added on the `Map` and its ID needs to be provided on the options of the layer. It does not matter if the source or the layer is added first, the layer being refreshed whenever the source changes.
4+
5+
Two types of sources are available :
6+
7+
- [Data Source](./datasources)
8+
- [Vector Tile Source](./vectortilesources)
9+
10+
## Add a source
11+
12+
A source can be added to the map using the `AddSourceAsync` method.
13+
14+
## Removing the data source
15+
16+
A data source can be removed from the map using the `RemoveSourceAsync` method. A call to `ClearSourcesAsync` removes all the data sources from the map.
Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
## Data Sources
2-
3-
Most of the layers require `data sources` to read their data from. A data source needs to be added on the `Map` and its ID needs needs to be provided on the options of the layer. It does not matter if the data source or the layer is added first, the layer being refreshed whenever the data source changes.
1+
A data source manages raw location data in GeoJSON format locally. Good for small to medium data sets (upwards of hundreds of thousands of shapes).
42

53
## Adding geometries
64

@@ -31,7 +29,7 @@ You can add geometry on a data source using the `AddAsync` method.
3129
{
3230
const string dataSourceId = "bubbleDataSource";
3331
var dataSource = new AzureMapsControl.Components.Data.DataSource(dataSourceId);
34-
await events.Map.AddDataSourceAsync(dataSource);
32+
await events.Map.AddSourceAsync(dataSource);
3533
3634
3735
var geometries = new List<AzureMapsControl.Components.Atlas.Geometry>();
@@ -80,7 +78,7 @@ You can import data on the data source using the `ImportDataFromUrlAsync` method
8078
{
8179
const string dataSourceId = "heatmapDataSource";
8280
var dataSource = new AzureMapsControl.Components.Data.DataSource(dataSourceId);
83-
await events.Map.AddDataSourceAsync(dataSource);
81+
await events.Map.AddSourceAsync(dataSource);
8482
await dataSource.ImportDataFromUrlAsync("https://services1.arcgis.com/0MSEUqKaxRlEPj5g/arcgis/rest/services/ncov_cases/FeatureServer/1/query?where=1%3D1&f=geojson&outFields=*");
8583
8684
var layer = new AzureMapsControl.Components.Layers.HeatmapLayer
@@ -111,8 +109,4 @@ Geometries can be removed from the data source using the `RemoveAsync` method.
111109

112110
## Clear the data source
113111

114-
The data source can be cleared using the `ClearAsync` method. This will remove all the geometries from the data source.
115-
116-
## Removing the data source
117-
118-
A data source can be removed from the map using the `RemoveDataSourceAsync` method. A call to `ClearDataSourcesAsync` removes all the data sources from the map.
112+
The data source can be cleared using the `ClearAsync` method. This will remove all the geometries from the data source.

0 commit comments

Comments
 (0)