pixel To Longitude - Android Map

Android examples for Map:Latitude Longitude

Description

pixel To Longitude

Demo Code


//package com.java2s;

public class Main {
    public static double pxToLon(double pixelX, int zoom) {
        return pixelX * 360 / (256L << zoom) - 180;
    }/*from w ww . jav  a 2s  .c  o m*/
}

Related Tutorials