- 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
BicyclingLayer
Shows bike paths only available with api Google// Delphi
map component ECMap
// show bicyclinglayer
map.BicyclingLayer := true;
For the moment the layer is not particularly well developed in Europe, you can replace it with a card that OpenMapStreet CycleMap to the advantage of operating under all apis.
// Delphi
map component ECMap
// change map type to
CycleMap
map.MapTypeId := mtCYCLEMAP;
TrafficLayer
Displays the status of traffic does not seem enabled on all regions, only available with api Google
// Delphi map component
ECMap
// show Trafficlayer
map.TrafficLayer := true;
TrafficArea
The procedure TrafficArea(const dLatSW,dLngSW,dLatNE,dLngNE:double) determines the incidents taking place in a given area.
You must you connect on the OnTraffic of component event to use the response
// see incident on area show by map
map.TrafficArea(map.SouthWestLatitude,map.SouthWestLongitude,map.NorthEastLatitude,map.NorthEastLongitude);
// event OnTraffic
procedure TFormDemoECMap.mapTraffic(sender: TObject; const XmlResponse,
TxtMapMarkers: string);
begin
// use XmlResponse for details
// show on map
map.Groups['traffic'].ItemsToTxt := TxtMapMarkers;
map.Groups['traffic'].Show;
end;
Properties TrafficIconLowImpact, TrafficIconMinor, TrafficIconModerate, TrafficIconSerious and TrafficIconRoadClosed allow you to use your own icons.
TrafficArea uses services from Bing Traffic, you need to get your own key Bing to use this feature.
FusionTablesLayer
Displays data from a table Google Fusion only available with api Google
You manage your layers FusionTablesLayers through the property type TECMapFusionTablesLayers
// Delphi map component
ECMap
// add un
fusiontableslayer
id := map.FusionTablesLayers.Add('Geocodable address','139529','','');
map.FusionTablesLayers[id].visible := true;
TECMapFusionTablesLayers
See the documentation on google FusionTablesLayerAdds a layer and returns its index
Column is the column of the table corresponds to select the google doc
Id is the identifier of the table is from in the google doc
Style the style is applied to layer
Clause is the SQL query that lets you filter your data is WHERE in the google doc
TECMapFusionTablesLayer
Controlling a class FusionTablesLayer
identifier of the table is from in the google doc
column of the table corresponds to select in the google doc
SQL query that lets you filter your data, corresponds to Where in google doc
applicable to the layer style
corresponds to heatmap in the google doc
Enable or not displaying a InfoWindow when clicking on an element of layer
Displays whether the layer
OnFusionTablesLayerClick
TECMap has an event to intercept a click on an element of layer.
KmlLayer
You can import KML / KMZ into your cards and display overlay, not available with Leaflet.
KMZ files are not supported by CloudMade by cons GeoXml it supports the format (extension. Xml)
13OnKmlLayerClick
TECMap has an event to intercept a click on an element of layer.
CloudMade not responding to this event
14// Delphi
map component ECMap
// add KML file M1+ Real-Time
Earthquakes, Past 7 Days
id := map.KmlLayers.add(
'http://earthquake.usgs.gov/earthquakes/catalogs/eqs7day-age.kmz'
);
// show all
map.KmlLayers[id].show;
TECMap exports the majority of its data, including kml layers, in KML.
41// Delphi
map component ECMap
// export map data to kml
string
kml_string := map.ToKml;
WeatherLayer
Available only with the Google api
15// Delphi
map component ECMap
map.WeatherLayer := true;
OnWeatherLayerClick
TECMap has an event to intercept a click on an element of layer.
DemoLayer
DemoLayer program allows you to see how to use these different layers and Panoramio , which is also a layer