Sorry but I can't post because I haven't a deployment of my project or
a server to run it.
I post custom projection's source code
(without fromLatLngToPixel and fromPixelToLatLng functions):

public double getWrapWidth(int zoomLevel) {
       return getTileSize()*Math.pow(2, zoomLevel);
    }

    @Override
    public boolean tileCheckRange(TileIndex index, int zoomLevel, int
tileSize) {
       setTileSize(tileSize);
//          System.err.println(tileSize);
       Boolean valido = false;
       if((index.getX()<0||index.getY()<0)||
(index.getX()>(Math.pow(2,zoomLevel)-1)||index.getY()>(Math.pow(2,
zoomLevel)-1))){
            valido=false;
       }
       else {
            valido=true;
       };
       return valido;
      }
    }

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to