Standard Esri Map Control

Display Objects from a Single DataSource on a Map

Technologies > User Interface Add-Ins> Geographic Information System (GIS) Views > Map with Single Datasource

In this example the user selects one or more properties and then presses the "Show Properties" button to display markers for the selected properties on the map.

The restriction for the selected rows is applied to the marker property object before refreshing the map:

prMarkerProperty.setRestriction(restriction);

this.map.updateDataSourceMarkerPropertyPair('pr_ds', prMarkerProperty);
this.map.refresh();

Because the marker property can be recycled for each subsequent button press event, you may first attempt to retrieve the marker property associated with the data source, if it already exists:

var prMarkerProperty = this.map.getMarkerPropertyByDataSource('pr_ds');

See: Show Buildings on a Map

Sample view: http://localhost:8080/archibus/schema/ab-products/solutions/arcgismap/ab-arcgis-property-single-datasource-map.axvww