- Purchase - Contact
- Use License
- Card Type
- Import / Export
- Table of Figures
This list type TMobileList is available through the property Mobiles.
TECMap available in more than two properties related to mobiles
TMobileListYou have access to methods and properties
iMarker is the index of the list marker Markers
iRoute index is the way forward is in Roads (default) or in Polygons or Polylines
iSpeed is the mobile speed in km / h
iDistance is the starting position on the road in meters
Delphi map component ECMap
// add marker at center of map
idMarker := map.AdMarker(map.latitude,map.longitude);
// idMarker mobile on route 0, speed 50 km/h, start à 0 meter
idMobile := map.Mobiles.add(idMarker,0,50,0);
// enabled automatic mobiles
map.MobilesEnabled := true;
// automatic move mobile idMobile
map.Mobiles[idMobile].mobile := true
Property read / write indicating what is the motive that we will follow the card is automatically refocus on him when he crosses the boundaries visible.
Set this property to -1 to not follow any mobile26
By default, the mobile does not move, you can move in either automatic mode or manual mode.
In automatic mode they will move at the speed that you've assigned them in manual mode or you can directly manipulate the distance is to be calculated according to time and speed.
Even in automatic mode you can manually change the distance, speed, you can also change the road on which the mobile moves, its position is automatically adjusted.27
To do this you must access the class tmobile
Property read / write sets the distance in meters, mobile since its real starting point, management is not taken into account.
Any change of this property leads to a shift of the marker associated with mobile28
Direction of movement, dsStartEnd or dsEndStart
For a road dsStartEnd corresponds to a displacement of the point of departure or arrival point for polylines and polygons of the first point to last.
The distance is always calculated based on the real starting point, management will not be decisive for a shift automatic or manual call to Move.
Index in the list of mobile phones
Property read / write the index of the Marker to move
Property read / write set if the mobile moves automatically or not, by default set to false the mobile does not move by itself.
EventsTwo events are related to mobile
Index is the index of the list marker Markers
dLatitude an dLongitude the new position
Vous can change it in the event8
iMobile index in the list of mobile Mobiles
Depending on the direction the mobile is either at the terminus or point of departure
Property Mobile is set to false, to boost your mobile in automatic mode you must return it to true and reverse the direction.