You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: J4JMapWinLibrary/docs/map-control.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -181,13 +181,27 @@ If `Latitude` and `Longitude` are both valid values they will override any value
181
181
182
182
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`.
183
183
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
+
184
199
[return to top](#basic-usage)
185
200
186
201
## Miscellaneous properties
187
202
188
203
|Property|Type|Comments|
189
204
|--------|----|--------|
190
-
|`Annotations`|`List<FrameworkElement>`|holds the FrameworkElements which are displayed above the map as annotations. See the [`MapPin` documentation](map-pin.md) for details.|
191
205
|`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|
192
206
|`MinMapScale`|`double`|sets the minimum map scale allowed. Values outside the range of what the projection supports are adjusted automatically.|
193
207
|`MaxMapScale`|`double`|sets the maximum map scale allowed. Values outside the range of what the projection supports are adjusted automatically.|
0 commit comments