- ECMap
- Purchase - Contact
- Use License
- Installation
- Positioning
- Card Type
- Controls
- Location
- Places
- Import / Export
- Overlays
- Groups
- StreetView
- EarthView
- Panoramio
- DistanceMatrix
- TECMapAdressEdit
- TECStaticMap
- Programming
- Table of Figures
- Glossary
Property type EarthView TECMapEarthView allows you to manage the display 3D Google Earth
Available only with Google maps api
23TECMapEarthView
It gives access to properties and methods
Toggle a layer
You can choose from
- LAYER_BORDERS
- LAYER_BUILDINGS
- LAYER_BUILDINGS_LOW_RESOLUTION
- LAYER_BUILDINGS_LOW_RESOLUTION.
- LAYER_ROADS
- LAYER_TERRAIN
- LAYER_TREES
// active LAYER_BUILDINGS and LAYER_TREES
map.EarthView.EnableLayer('LAYER_BUILDINGS',true);
map.EarthView.EnableLayer('LAYER_TREES',true);
Loading KML / KMZ remote
UrlKmlKmz url file to import
Data is added to the data already, do a Clear front if you want a complete replacement
46Property read / write to determine its altitude
Property read only indicates the altitude of the point under the mouse cursor
Property read / write to fix the way is to calculate the altitude
You can select from
- amAbsolute
- amRelativeToGround
- amClampToGround
- amRelativeToSea
- amClampToSea
property Loaded : boolean
property NavigationControlVisibility : TNavigationControlVisibility
Property read / write or not to display controls, you can choose between ncvShow,ncvHide et ncvAuto
//
Delphi map component ECMap
map.EarthView.NavigationControlVisibility :=
nvcAuto;
Property read / write that enables the import / export kml
TECMap toKml has the function to export almost all the overlays in KML
//
Delphi map component ECMap
// import overlays (markers,
rectangles, circles,...routes)
map.EarthView.toKml := map.toKml;
KML data are not taken into account
16Property read / write which determines the content of the brand index id
The chain is in KML, gender
<Placemark>
<name>Placemark from KML
string</name>
<Point>
<coordinates>-122.448425,37.802907,0</coordinates>
</Point>
</Placemark>
List type models TECMapEarthModel
A model is defined by the tag Kml <Model>For the changes to the properties Altitude, Heading, Range, Tilt and Roll are visible you must trigger a call LookAt or Camera
17TECMapEarthModels
This class has methods and properties
//
Delphi map component ECMap
// load 3d model
map.EarthView.models.LoadKml('http://earth-api-samples.googlecode.com/svn/trunk/demos/drive-simulator/smart.kmz');
If templates are present in the KML loaded by TECMapEarthView.ToKml or TECMapEarthView.LoadKml they will also be available in the Models list
48procedure Delete(const index:integer);
Table for access types, the default property so you can access it directly by map.EarthView.Models[index] instead of map.EarthView.Models.Model[index]
TECMapEarthModel
Class manages a 3D model, it have methods and properties
property Index : integer
Events
In addition to the events below you also have access to OnMapClick, OnMapDblClick, OnMouseMove, OnOverlayMouseDown, OnOverlayMouseUp et OnOverlayMouseOut
51property OnEarthViewInit : TNotifyEvent;
Triggered by a click on a Placemark
index is the index of the mark in the list Placemark
KmlString the content of the mark in KML, gender
<Placemark>
<name>Placemark from KML
string</name>
<Point>
<coordinates>-122.448425,37.802907,0</coordinates>
</Point>
</Placemark>
Demonstrations
Demo3D shows you how to move a particular 3D model by following a specific route.DemoOverlay the program shows you how to transfer data to a 3D view