A control that enables users to add points to a map by clicking the map, and
then clicking those points to remove them. Like the boxselector control, it
calls a callback with the current map data, and also exposes an API,
addLocation(com.modestmaps.Location), if you wish to add points on pageload.
Example
API
Create a new pointselector object. The tilejson argument is ignored. Options
is an object with options:
callback
A function that will be called with a single argument
coords, containing a list of coordinates of
points that you've selected.
Add a new location (latitude/longitude), redraw the map, and call callback
with the new locations list. Useful for pre-populating point-selecting maps
on page load
Delete a location from the internal locations list. This is mainly an internal
API and requires that the location passed is not just a com.modestmaps.Location,
but the actual location object in the internal location object.
Changed in 3.0.7: was deletePoint() before.
Unbind the pointselector from the map and remove all of its points and events.
An accessor method for the pointselector's array of locations.