Hello,
I'm having some trouble adding a grid over the map. I'd like it to be
similar to Bill Chadwick's Graticules and Rings map located here:
http://www.bdcc.co.uk/Gmaps/BdccGmapBits.htm (source code here:
http://www.bdcc.co.uk/Gmaps/LatLonGraticule.js ). It would scale with
the zoom level, and also base its measurement for scale on a certain
number of miles. Unfortunately his example is in Javascript, and I
don't know enough about that language or the Google Maps API for Flex/
Flash to be able to convert it.
I thought that a tile overlay may be a viable option, but I'm also
having difficulty locating a good example of that to follow. I managed
to put this together, but Flex gives me an error on the tileLayerBase
saying "method not implemented".
private function addTileOverlay():void {
var copyrightCollection:CopyrightCollection = new
CopyrightCollection();
copyrightCollection.addCopyright(
new Copyright(
"company",
new LatLngBounds(new LatLng(-180, 90),
new LatLng(180, -90)),
0,
"©2010 company"));
var tileLayerBase:TileLayerBase = new
TileLayerBase(copyrightCollection);
var tileLayerOverlay:TileLayerOverlay = new
TileLayerOverlay(tileLayerBase);
this.map.addOverlay(tileLayerOverlay);
}
Eventually I'd like to be able to add event listeners to the cells of
the grid for when they are clicked.
Has anyone else been able to get a scalable grid overlain on their
map? Or have any tips on making this work?
Thanks for the help!
--
You received this message because you are subscribed to the Google Groups
"Google Maps API For Flash" 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-for-flash?hl=en.