-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #234 from dymaptic/feature/231_text_symbol_offsets
Implemented all properties on TextSymbol, unit tests and Label sample
- Loading branch information
Showing
12 changed files
with
457 additions
and
19 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
samples/dymaptic.GeoBlazor.Core.Sample.Shared/Pages/Labels.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@page "/labels" | ||
<PageTitle>Labels</PageTitle> | ||
<h1>Labels</h1> | ||
|
||
<div class="links-div"> | ||
<a class="btn btn-secondary" target="_blank" href="https://developers.arcgis.com/javascript/latest/sample-code/labels-basic/">ArcGIS API for JavaScript Reference</a> | ||
<a class="btn btn-primary" target="_blank" href="https://www.arcgis.com/home/item.html?id=372b7caa8fe340b0a6300df93ef18a7e">Labels BaseMap</a> | ||
</div> | ||
<p class="instructions"> | ||
Demonstrates how to add labels to a map. | ||
</p> | ||
|
||
<MapView Center="@(new Point(-116.925, 34.2501))" Zoom="12" Class="map-view"> | ||
<WebMap> | ||
<PortalItem Id="372b7caa8fe340b0a6300df93ef18a7e" /> | ||
<FeatureLayer> | ||
<PortalItem Id="6012738cd1c74582a5f98ea30ae9876f" /> | ||
<Label LabelPlacement="above-center"> | ||
<TextSymbol Color="@(new MapColor("green"))" | ||
BackgroundColor="@(new MapColor(213, 184, 255, 0.75))" | ||
BorderLineColor="@(new MapColor("green"))" | ||
BorderLineSize="1" | ||
YOffset="5"> | ||
<MapFont Family="Playfair Display" Size="12" Weight="bold" /> | ||
</TextSymbol> | ||
<LabelExpressionInfo Expression="$feature.MARKER_ACTIVITY" /> | ||
</Label> | ||
<SimpleRenderer> | ||
<SimpleMarkerSymbol Color="@(new MapColor(0, 100, 0, 0.6))" Size="3"> | ||
<Outline Color="@(new MapColor(0, 0, 0, 0.1))" Width="0.5" /> | ||
</SimpleMarkerSymbol> | ||
</SimpleRenderer> | ||
</FeatureLayer> | ||
</WebMap> | ||
</MapView> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.