[OSM-talk] Mathematic genius needed
Bernhard zwischenbrugger
bz at datenkueche.com
Mon Mar 22 06:10:41 GMT 2010
John Smith schrieb:
> On 22 March 2010 15:09, Bernhard zwischenbrugger <bz at datenkueche.com> wrote:
>
>> Sorry:
>> Southwest: 0,0
>> Northeast: 90,180
>>
>
> Are you after the middle WGS points or the middle points on a mercator grid
>
The 2 points must be converted to mercator.
In mercator the middle point is calculated.
After that there must be a conversion to WGS84 again.
My method call should be:
map.setBounds(southwest, northeast);
Think about a gpx line that should be shown on the map.
The formula should deliver values for
map.setCenter(center, zoom); //center is a point in WGS84.
Bernhard
More information about the talk
mailing list