Do you actually want to:
- Add a GroundOverlay to a map.
- Overlay a set of tiles that have the required grid drawn on them.
- If you have a set of such tiles that are available via HTTP then you could use a UrlTileProvider.
- I've recently created the CustomTileProvider and this would allow you to create your tiles 'on the fly'.
Each time the map requires a tile it's request it from your b4a code, you'd have to create a semi-transparent PNG with the grid drawn on it.
Tile are requested using TileX, TileY and ZoomLevel parameters - these are what are known as 'slippy map' tile names.
Look HERE and you'll see various methods to convert slippy map tile names into latitude,longitude coordinates.
Martin.
I was hoping you would find your way to my post...
Lets start with: I don't know much about gps, tiles, overlays, etc.
Well, I wasn't sure(still not sure!) whether it would be better/easier to use an overlay or draw my own tiles for my project.
What it really comes down to is that I don't understand fully how it works, and I need to be able to say "your standing directly on top of 'X' location" of this grid with high accuracy.
The grid will not be transparent so I'm assuming either method would work.
I don't have any code for the gps yet, just a gui for the user.
What I need:
- A grid of 4ft x 4ft squares drawn on the map
- Grid size will vary by location, but the example will be 40x61 squares
- Ability to track a person accurately on this grid and draw their position on map as well
As the squares are identical I figured I'd just redraw the same square 2440 times and just change the coordinates for each one.
What I'm really having trouble with is understanding how to draw the squares precisely where they need to be on the map
Thanks
John