Forum > Packages and Libraries

How to show Markers with TMapViewer


Hello everybody,

using the TMapviewer component made me very happy.
Everything works like expected.

Now comes the time where I want to show a list of customers in my map.

Can anybody give me some hints how to do this with TMapViewer?
Supposed I have Lon/Lat-coordinates of all my list-entries, how to show these as markers in the MapViewer.

Any hints are appreciated.



--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---const// IDs Customers _CUST_ = 10; var pt: TRealPoint; gpsPt: TGpsPoint;Long, Lat: Double; ...  Long := 40.3;  Lat := 20.2;  pt.Init(Long, Lat);  gpsPt := TGpsPoint.CreateFrom(pt, NO_ELE, Now() );  gpsPt.Name := ''; // Place;  GlobalMap.GPSItems.Add(gpsPt, _Cust_);  


[0] Message Index

Go to full version