Crystal
Posts: 0
Joined: Mon Nov 25, 2013 8:49 am

Know two points of latitude and longitude,and then the two addresses connected with lines.

Hello,
Firstly,I have known two points of latitude and longitude, and then according to the two points of latitude and longitude displayed on the map the exact location of these two points, and then the two addresses connected with lines.But to be refreshed many times that line will be displayed.What's the reason?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Know two points of latitude and longitude,and then the two addresses connected with lines.

Hello! Sorry, not sure I understand. Could you post code you use to show line, any screenshots how does it look like? Also please clarify what do you mean on "to be refreshed many times that line will be displayed"?

Crystal
Posts: 0
Joined: Mon Nov 25, 2013 8:49 am

Know two points of latitude and longitude,and then the two addresses connected with lines.

Image
When I click the Location button then it will jump the screen of google map.Then at the screen of google map is loaded it likes this Image
The problem is when I want to get that I will refresh the screen many times,the line between London and Paris will appear.(Precondition is that I have already known these two locations in latitude and longitude)

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Know two points of latitude and longitude,and then the two addresses connected with lines.

Could you give us your public app link so we can test it?

Crystal
Posts: 0
Joined: Mon Nov 25, 2013 8:49 am

Know two points of latitude and longitude,and then the two addresses connected with lines.

Hello,
You can test it.(Click the Location button)

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Know two points of latitude and longitude,and then the two addresses connected with lines.

I need you to post public app link. Take a look here please http://docs.appery.io/documentation/s... (see Sharing_app_link section)

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Know two points of latitude and longitude,and then the two addresses connected with lines.

Hello Crystal! To what app do you refer? Please post its public link here or send to a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a/

Crystal
Posts: 0
Joined: Mon Nov 25, 2013 8:49 am

Know two points of latitude and longitude,and then the two addresses connected with lines.

The app is Map.I have shared the app again.You can try it again.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Know two points of latitude and longitude,and then the two addresses connected with lines.

Hello!
1) In directions js in the beginning replace prevar directionDisplay;/pre with prevar directionsDisplay;/pre2) On Load event of Location page add code preinitialize();/pre3) In googleMap JS asset is running before page is loaded. You won't be able to call that code later. Wrap code in function.

Return to “Issues”