deljavan Posted November 7, 2017 Share 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; Link to comment Share on other sites More sharing options...
Sherzod Posted November 7, 2017 Share Posted November 7, 2017 Hi, Need to analyze, make a simple testcase for this if possible Link to comment Share on other sites More sharing options...
deljavan Posted November 7, 2017 Author Share Posted November 7, 2017 sample Link to comment Share on other sites More sharing options...
Sherzod Posted November 7, 2017 Share Posted November 7, 2017 Sorry, I think you need to simplify the example and upload again, it seems there are many related modules Link to comment Share on other sites More sharing options...
deljavan Posted November 7, 2017 Author Share Posted November 7, 2017 Can I use Unigmap to work with the map ? Link to comment Share on other sites More sharing options...
Sherzod Posted November 9, 2017 Share 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, Link to comment Share on other sites More sharing options...
deljavan Posted November 10, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted November 10, 2017 Share 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; Link to comment Share on other sites More sharing options...
deljavan Posted November 10, 2017 Author Share Posted November 10, 2017 Yes Link to comment Share on other sites More sharing options...
Sherzod Posted November 10, 2017 Share Posted November 10, 2017 Sorry, perhaps you are doing something wrong, make a simple testcase for this Link to comment Share on other sites More sharing options...
deljavan Posted November 10, 2017 Author Share Posted November 10, 2017 please see .... GoogleMaps.rar TestCase-movie.rar Link to comment Share on other sites More sharing options...
Sherzod Posted November 11, 2017 Share Posted November 11, 2017 Hi, Without a marker, map works for you? Link to comment Share on other sites More sharing options...
deljavan Posted November 11, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
Sherzod Posted November 11, 2017 Share Posted November 11, 2017 Which edition are you using? Link to comment Share on other sites More sharing options...
deljavan Posted November 11, 2017 Author Share Posted November 11, 2017 1.0.0.1416 Link to comment Share on other sites More sharing options...
deljavan Posted November 11, 2017 Author Share Posted November 11, 2017 You can help me to fix this Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 11, 2017 Administrators Share 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 Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 11, 2017 Administrators Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts