ElCherchu Posted November 28, 2021 Posted November 28, 2021 Hello developers I working a project with TUnimaps and after adding the markers on the map, when closing and open the application they aren't longer there. How can I show on the map the previously added markers? Tranks. I'm using delphi 10.2 Unigui 1.90.0.1555 Quote
Hayri ASLAN Posted November 29, 2021 Posted November 29, 2021 7 hours ago, Efrenis said: Hello developers I working a project with TUnimaps and after adding the markers on the map, when closing and open the application they aren't longer there. How can I show on the map the previously added markers? Tranks. I'm using delphi 10.2 Unigui 1.90.0.1555 Hello I don't understand the problem. Can you explain it step by step? Quote
ElCherchu Posted November 29, 2021 Author Posted November 29, 2021 Hi Hayri for your response. I explain.. I open my Unigui application, I add one or severals markers to a UniMap, I close my application and when I open the application again all the markers I had added before desapears from map. The question is, How to show the markers previosly added into the map. Thank again.. Quote
ElCherchu Posted November 30, 2021 Author Posted November 30, 2021 1 minute ago, Efrenis said: Hi Hayri for your response. I explain.. I open my Unigui application, I add one or severals markers to a UniMap, I close my application and when I open the application again all the markers I had added before desapears from map. The question is, How to show the markers previosly added into the map. Thank again.. I have my own google map key. Quote
Hayri ASLAN Posted November 30, 2021 Posted November 30, 2021 46 minutes ago, Efrenis said: Hi Hayri for your response. I explain.. I open my Unigui application, I add one or severals markers to a UniMap, I close my application and when I open the application again all the markers I had added before desapears from map. The question is, How to show the markers previosly added into the map. Thank again.. Hi, You should save created markers to your database and load them when map is ready Quote
ElCherchu Posted November 30, 2021 Author Posted November 30, 2021 Not, what is the most recommend way to do that?, How can I get the Lat and Lon in the map? thanks. Quote
Hayri ASLAN Posted November 30, 2021 Posted November 30, 2021 42 minutes ago, Efrenis said: Not, what is the most recommend way to do that?, How can I get the Lat and Lon in the map? thanks. Please open "Unimap - Draw" Demo. in UniMap1MarkerCreated you will have access to newly created Marker. you can check Marker.Latitude and Marker.Longitude properties. Quote
ElCherchu Posted November 30, 2021 Author Posted November 30, 2021 8 hours ago, Hayri ASLAN said: Please open "Unimap - Draw" Demo. in UniMap1MarkerCreated you will have access to newly created Marker. you can check Marker.Latitude and Marker.Longitude properties. Sorry Hayri in UniMap1MarkerCreated demo has procedure TMainForm.UniMap1MarkerCreated(Sender: TObject; var Marker: TUniMapMarker); begin with Marker do begin Popup.content:='A New Marker'; AddToMap; OpenPopup; end; end; I not see the way to access to the markers that I had created before. I try to explain again, I want to show, to see, to display all the markers that I had created into the map before. I don't know how to display the markers created before when I open the application. How can I do that? Thanks. Quote
Hayri ASLAN Posted November 30, 2021 Posted November 30, 2021 23 minutes ago, Efrenis said: Sorry Hayri in UniMap1MarkerCreated demo has procedure TMainForm.UniMap1MarkerCreated(Sender: TObject; var Marker: TUniMapMarker); begin with Marker do begin Popup.content:='A New Marker'; AddToMap; OpenPopup; end; end; I not see the way to access to the markers that I had created before. I try to explain again, I want to show, to see, to display all the markers that I had created into the map before. I don't know how to display the markers created before when I open the application. How can I do that? Thanks. Hello You should have latitude and longitude of markers. Please use onMapReady event and add them in to map. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.