android - How to add basic grids to GoogleMap Api v2 -
i add basic grids googlemap use on maps. read docs didnt found help, maybe tileoverlay or groundoverlay can trick, didnt found examples or tutorials, not in official samples.
can suggest me ways work ?
e d t :
yes gridlines this:
seems have code that. used debugging, here is: debughelper.java.
some notes:
- you have copy sphericalmercator.java
- change
igooglemap
originalgooglemap
,iprojection
projection
clustersize
parameter in degrees, have change depending on zoom- finally: call
drawdebuggrid
inoncamerachange
.
if want see in action, may run demo of android maps extensions. change need make see grid setting debug_grid true on 1 of first lines in gridclusteringstrategy.java.