Skip to content

Commit e35d1e2

Browse files
committed
update docs
1 parent c4b8b3b commit e35d1e2

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

J4JMapWinLibrary/docs/map-control.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,27 @@ If `Latitude` and `Longitude` are both valid values they will override any value
181181

182182
The visual element's position also takes into account `HorizontalAlignment` and `VerticalAlignment` values, if those are specified. `HorizontalAlignment` defaults to `Center` while `VerticalAlignment` defaults to `Middle`.
183183

184+
### Templated Annotations
185+
186+
Templated annotations are defined by setting several properties on the map control:
187+
188+
|Property|Type|Comments|
189+
|--------|----|--------|
190+
|`PoIDataSource`|object|an enumerable holding items defining the templated items to be constructed. Each record must at least contain location data.|
191+
|`PoILatitude`|`string`|the name of the property in the data source which holds parseable latitude values (e.g., 10, -10, 10N, 10S)|
192+
|`PoILongitude`|`string`|the name of the property in the data source which holds parseable longitude values (e.g., 10, -10, 10E, 10W)|
193+
|`PoILatLong`|`string`|the name of the property in the data source which holds parseable latitude/longitude values (e.g., "-10, 10", "10S, 10W")|
194+
195+
If `PoIDataSource` is not an `IEnumerable` it will be ignored and no templated annotations will be created. The UI will update to reflect changes to the collection `PoIDataSource` points to.
196+
197+
If `PoILatitude` and `PoILongitude` are both valid property names that contain valid values they will override the use of data contained in a `PoILatLong` property, even if it is separately defined.
198+
184199
[return to top](#basic-usage)
185200

186201
## Miscellaneous properties
187202

188203
|Property|Type|Comments|
189204
|--------|----|--------|
190-
|`Annotations`|`List<FrameworkElement>`|holds the FrameworkElements which are displayed above the map as annotations. See the [`MapPin` documentation](map-pin.md) for details.|
191205
|`ShowRotationHints`|`bool`|shows (`true`) or hides (`false`) hints showing how a map's heading is being changed while using click-and-drag to rotate it|
192206
|`MinMapScale`|`double`|sets the minimum map scale allowed. Values outside the range of what the projection supports are adjusted automatically.|
193207
|`MaxMapScale`|`double`|sets the maximum map scale allowed. Values outside the range of what the projection supports are adjusted automatically.|

0 commit comments

Comments
 (0)