This class performs all the read/write updates on the map
See theMapEditor for the one and only one instance of this class
This method add an itinerary point marker to the map (= a leaflet.circleMarker object). This method is called by the 'additinerarypointmarker' event listener.
Name | Type | Description |
---|---|---|
objId | Number | A unique identifier to attach to the circleMarker |
latLng | Array of Number | The latitude and longitude of the itinerary point marker |
This method add a rectangle to the map. This method is called by the 'addrectangle' event listener.
Name | Type | Description |
---|---|---|
objId | Number | A unique identifier to attach to the rectangle |
bounds | Array of Array of Number | The lower left and upper right corner of the rectangle |
properties | LeafletObject | The Leaflet properties of the rectangle |
This method add an search point marker to the map (= a leaflet.circleMarker object or a polyline, depending of the zoom and the geometry parameter). This method is called by the 'addsearchpointmarker' event listener.
Name | Type | Description |
---|---|---|
objId | Number | A unique identifier to attach to the circleMarker |
latLng | Array of Number | The latitude and longitude of the search point marker |
geometry | null or Array of Array of Number | The latitudes and longitudes of the search point marker when a polyline can be showed |
This method add a WayPoint to the map. This method is called by the 'addwaypoint' event listener.
Name | Type | Description |
---|---|---|
wayPoint | WayPoint | The wayPoint to add |
letter | String or Number | The letter or number to show with the WayPoint |
This method removes all objects from the map. This method is called by the 'removeallobjects' event listener
This method removes an object from the map. This method is called by the 'removeobject' event listener
Name | Type | Description |
---|---|---|
objId | Number | The objId of the object to remove |
This method changes the background map. This method is called by the 'layerchange' event listener.
Name | Type | Description |
---|---|---|
layer | MapLayer | The layer to set |
This method update a note on the map. This method is also used for removing a note with the addedNoteObjId = INVALID_OBJ_ID. This method is also used for adding a note with the removedNoteObjId = INVALID_OBJ_ID. This method is called by the 'noteupdated' event listener.
Name | Type | Description |
---|---|---|
removedNoteObjId | Number | The objId of the note to remove |
addedNoteObjId | Number | The objId of the note to add |
This method update a route on the map. This method is also used for removing a route with the addedRouteObjId = INVALID_OBJ_ID. This method is also used for adding a route with the removedRouteObjId = INVALID_OBJ_ID. This method is called by the 'routeupdated' event listener.
Name | Type | Description |
---|---|---|
removedRouteObjId | Number | The objId of the route to remove |
addedRouteObjId | Number | The objId of the route to add |
This method update the properties of a route on the map This method is called by the 'routepropertiesupdated' event listener.
Name | Type | Description |
---|---|---|
routeObjId | Number | The objId of the route to update |
Simple constant for computing if we add a polyline or a marker for the search
Remove a Leaflet object from the map
Name | Type | Description |
---|---|---|
objId | Number | The objId of the object to remove |