ASP.NET Pack Programmer's Guide
MapView.getDecorationsAt Method
See Also
 





Gets the list of Decoration instances at a specified client position.

Namespace: MindFusion.Mapping
Package: MapView.js

 Syntax

JavaScript  Copy Code

function getDecorationsAt (point)

 Parameters

point

Point. The point to test.

 Return Value

Array. An array of Decoration instances.

 Example

The following example creates a new MapView using a <DIV> element called "mapview" that we've declared in the HTML code of the page. Then it handles its click event and gets all Decoration-s located at the point of the click:

JavaScript  Copy Code

var m = MindFusion.Mapping;

// create a new instance of the mapView
var view = new m.MapView(document.getElementById("mapView"));
view.theme = "light";
view.click.addEventListener(mapViewClickHandler);

function mapViewClickHandler( sender, args )
{
      var objects = view.getDecorationsAt( args.position );
}

 See Also

MapView Members
MapView Class
MindFusion.Mapping Namespace