We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I try to get the longitude and latitude of the earth quack on the map but i get a weird values, can someone help me figure out what i'm doing wrong?
I get the following values, which are outside my canvas:
Example of the Json data:
Answers
(when posting code just highlight it and press ctrl-o. you are currently posting it as a quote which is much less readable)
@ Koogs i've edited the code. thanks for the hint
(it also works for data...)
...
lan_begin = longitude start but you're comparing latitude against it when setting x...
with map i try to get the value of the pixel on the canvas using the latitude/longitude i get from the Json file and the latitude and longitude of Iceland.
when i change the lantitude and the longitude to -180,180 and -90,90 i get the following vallues, but there are @ the same arae:
did you change these lines?
because i think they need to be
(swapping the longitude (east-west) and latitude (north-south))
@ Koogs thank you very much. it works now ;)