Menu

#4 Abstract GProjection

open
nobody
5
2015-01-30
2007-10-02
Anonymous
No

Would like to see a GAbstractProjection class, similar to GAbstractTileLayer, so that the user can create customized GProjection in java instead of write in javascript. For example
public class MyProjection extends GAbstractProjection {

public GLatLng fromPixelToLatLng\(GPoint pixel, int zoom, boolean unbounded\)
\{
    // do math in java 
\}



public GLatLng fromPixelToLatLng\(GPoint pixel, int zoom\)
\{

    // do math in java 
\}



public void tileCheckRange\(GPoint tile, int zoom, int tilesize\)
\{

\}



public int getWrapWidth\(int zoom\)
\{

\}

}

Discussion


Log in to post a comment.