OruxMaps

Uncategorized Boards => GENERAL => Topic started by: dkxce on November 27, 2014, 08:15:34 PM

Title: Is there way to move wpt
Post by: dkxce on November 27, 2014, 08:15:34 PM
Hello.

Is there way to move (change lat & lon) of existing (added) waypoint?



For example:



i = new android.content.Intent("com.oruxmaps.VIEW_MAP_ONLINE");

double[] targetLat = {55.46, 55.14};

double[] targetLon = {37.49, 37.18};

String[] targetNames = {"Point 1", "Point 2"};

i.putExtra("targetLat",targetLat);

i.putExtra("targetLon",targetLon);

i.putExtra("targetName",targetNames);

startActivity(i);



...



i = new android.content.Intent("com.oruxmaps.VIEW_MAP_ONLINE");

i.putExtra("newLat",55.48);

i.putExtra("newLon",37.50);

i.putExtra("targetName","Point 1");

startActivity(i);



...



i = new android.content.Intent("com.oruxmaps.VIEW_MAP_ONLINE");

i.putExtra("newLat",55.48);

i.putExtra("newLon",37.50);

i.putExtra("targetName","Point 2");

startActivity(i);
Title: Re: Is there way to move wpt
Post by: orux on November 27, 2014, 09:50:57 PM
Quote from: "dkxce"Hello.

Is there way to move (change lat & lon) of existing (added) waypoint?



For example:



i = new android.content.Intent("com.oruxmaps.VIEW_MAP_ONLINE");

double[] targetLat = {55.46, 55.14};

double[] targetLon = {37.49, 37.18};

String[] targetNames = {"Point 1", "Point 2"};

i.putExtra("targetLat",targetLat);

i.putExtra("targetLon",targetLon);

i.putExtra("targetName",targetNames);

startActivity(i);



...



i = new android.content.Intent("com.oruxmaps.VIEW_MAP_ONLINE");

i.putExtra("newLat",55.48);

i.putExtra("newLon",37.50);

i.putExtra("targetName","Point 1");

startActivity(i);



...



i = new android.content.Intent("com.oruxmaps.VIEW_MAP_ONLINE");

i.putExtra("newLat",55.48);

i.putExtra("newLon",37.50);

i.putExtra("targetName","Point 2");

startActivity(i);


Hi,



sorry, but there isn't.



A new wpt is created if you try that code,





orux