Friday, March 11, 2011

[Google Maps API v2] Re: Problem with repetition of polygon along the x axis

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 google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate