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:

enter image description here

seems have code that. used debugging, here is: debughelper.java.

demo

some notes:

  • you have copy sphericalmercator.java
  • change igooglemap original googlemap , iprojection projection
  • clustersize parameter in degrees, have change depending on zoom
  • finally: call drawdebuggrid in oncamerachange.

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.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -