deljavan Posted November 7, 2017 Posted November 7, 2017 how add marker in map ? I encountered an error when adding a marker to the map. RemoveAllRoutes; RemoveMarker(1); Mark.Latitude := Lat_; Mark.Longitude:= Lng_; Mark.Tag := 0; Mark.clickable:= True; Mark.draggable:= false; Mark.animation:= maNone; Mark.labelClass := 'mylabelInst'; Mark.labelVisible := false; Mark.AddToCluster := True; if not Ins_View.FieldByName('latitude').isnull then begin AddMarker(Mark,false); SetCoord(Ins_View.FieldByName('latitude').Value,Ins_View.FieldByName('longitude').Value); end;
Sherzod Posted November 7, 2017 Posted November 7, 2017 Hi, Need to analyze, make a simple testcase for this if possible
Sherzod Posted November 7, 2017 Posted November 7, 2017 Sorry, I think you need to simplify the example and upload again, it seems there are many related modules
deljavan Posted November 7, 2017 Author Posted November 7, 2017 Can I use Unigmap to work with the map ?
Sherzod Posted November 9, 2017 Posted November 9, 2017 Hi, Have you tried this approach ?!: http://forums.unigui.com/index.php?/topic/7102-google-maps-with-pin/&do=findComment&comment=36214 Best regards,
deljavan Posted November 10, 2017 Author Posted November 10, 2017 Hello I used the example described with the above changes But when Marker put it, she showed it at sea Why ? Can I use Unigmap to work with the map ? Help
Sherzod Posted November 10, 2017 Posted November 10, 2017 Hi, Do you use a modified SetCoord procedure ?! procedure TMainmForm.SetCoord(Lat, Long : Real); begin if WebMode then UniSession.AddJS('var gm=googleMap;if (typeof gm=="object") {var latlng = new google.maps.LatLng('+ StringReplace(Format('%2.4f', [Lat]), ',', '.', [rfReplaceAll])+','+ StringReplace(Format('%2.4f', [Long]), ',', '.', [rfReplaceAll])+ '); gm.setCenter(latlng); gm.setZoom(8);'+ 'var marker = new google.maps.Marker({'+ 'position: latlng,'+ 'map: gm,'+ 'title: "Hello!"})}'); end;
Sherzod Posted November 10, 2017 Posted November 10, 2017 Sorry, perhaps you are doing something wrong, make a simple testcase for this
deljavan Posted November 10, 2017 Author Posted November 10, 2017 please see .... GoogleMaps.rar TestCase-movie.rar
deljavan Posted November 11, 2017 Author Posted November 11, 2017 No, I had a basic question Can I use gmap? If this problem is resolved, I can also use the compilation tool I remember that Farshad had said that you should have the license application. I bought the license right now. But I still have trouble using the compass and point in the sea
Administrators Farshad Mohajeri Posted November 11, 2017 Administrators Posted November 11, 2017 Hi Having a license does not necessarily resolves coding issues. It is a neccessity for developing apps in the first place. Thanks Sent from my SM-N900 using Tapatalk
Administrators Farshad Mohajeri Posted November 11, 2017 Administrators Posted November 11, 2017 Can I use Unigmap to work with the map ?Is unigmap a third party control? Sent from my SM-N900 using Tapatalk
Recommended Posts