Not available CloudMade
14Labels 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.labels [id].setPosition(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
34// Delphi
map component ECMap
// add label at center of
map
id := map.Labels.add;
map.labels[id].setPosition(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