Shikhar13 / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

MapComponent.getCoordFromPosition(x, y) doesn't return WGS84 Coordinates #232

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.MapComponent.getCoordFromPosition(x, y)

What is the expected output? What do you see instead?
I expect WGS84 Coordinates because in the Class Summary of MapComponent in the 
API it says: "All communication with the map and layers should be done in 
WGS84, it takes care of coordinates transformation."

What version of the product are you using? On what operating system?
latest cn1, w7

Please provide any additional information below.
It's not a bug of cause, but people will get confused..

Original issue reported on code.google.com by tron.cos...@gmail.com on 27 Jun 2012 at 9:45

GoogleCodeExporter commented 9 years ago
Assigning to Chen

Original comment by shai.almog on 28 Jun 2012 at 7:19

GoogleCodeExporter commented 9 years ago
It does return wgs84, I assume your project libs are not up-to-date.
first make sure you use the latest plugin, then send a device build to the 
server and your project libs will be updated.

I think we need to add an "update project" command on the plugin. 

Original comment by cf27...@gmail.com on 28 Jun 2012 at 9:10

GoogleCodeExporter commented 9 years ago
i double checked it again, there is no netbeans plugin update.
i sent a build to the server, but it's still the same.. 

ah and sorry but 
            msgPos = mc.getCoordFromPosition(x, y);//no wgs84 coordinate in my simulator
            msgPos = Mercator.inverseMercator(msgPos.getLatitude(), msgPos.getLongitude());//reverses lat/lon :(

but i don't file another bug report because now i'm unsure whether this is 
already fixed and i'm doing something wrong.

for my tests i use the simulator.

Original comment by tron.cos...@gmail.com on 28 Jun 2012 at 11:37

GoogleCodeExporter commented 9 years ago
these issues are all fixed already, I'm not sure why your libs are not up to 
date.
We will create another update early next week and I will follow up with you on 
the update.

Original comment by cf27...@gmail.com on 28 Jun 2012 at 11:51

GoogleCodeExporter commented 9 years ago
a new update is available please it should be fixed, please verify

Original comment by cf27...@gmail.com on 5 Jul 2012 at 3:37

GoogleCodeExporter commented 9 years ago
yes, it's fixed after i made a new project and copied all files from my old 
project to the new project. sorry! i thought updating the plugin is enough, but 
of cause it's not because the project libraries are not updated in old projects 
when updating the plugin.
this is why i thought it was not fixed.

Original comment by tron.cos...@gmail.com on 6 Jul 2012 at 10:18