- ECMap
- Purchase - Contact
- Use License
- Installation
- Positioning
- Card Type
- Controls
- Location
- Places
- Import / Export
-
Overlays
- Markers
- InfoWindow
- Labels
- Roads
- Layers
- Groups
- StreetView
- EarthView
- Panoramio
- DistanceMatrix
- TECMapAdressEdit
- TECStaticMap
- Programming
- Table of Figures
- Glossary
Not available CloudMade
13Labels are containers Html movable with the mouse, they are manipulated through the Labels list.
// Delphi
map component ECMap
// add label at center of
map
id := map.Labels.add(map.latitude,map.longitude);
// set draggable
map.Labels[id].draggable := true;
Even if a label is not moved with the mouse you can change its position through setPosition code or properties Latitude and Longitude
31// Delphi
map component ECMap
// add label at center of
map
id := map.Labels.add(map.latitude,map.longitude);
// set draggable
map.Labels[id].draggable := true;
// set content html
map.Labels[id].Content := 'my
<b>label</b> html';
// set css style
map.Labels[id].Css := 'background:
red;border: 2px solid #fff;padding:
3px;';
Events
Labels respond to events:index is the index of the label in its list
dLatitude,dLongitude geographical coordinates of the click
OverlayType the type of overlay (ovCircle, ovRectangle, ovLine, ovPolygone,ovLabel ou ovGroundOverlay), So ovLabel for a label
Url contains the target link