[OpenLayers-Users] Saving with a Google Maps base layer
Tom B
seileef at gmail.com
Tue Apr 28 16:31:58 EDT 2009
Hi,
I'm trying to give users the option of saving/printing a map, and I'm
currently working off the "tile stitching" code to create a composite image
of the map's layers:
http://trac.openlayers.org/wiki/Printing
Since the OpenLayers.Layer.Google class doesn't have a "grid" property, the
Google Maps base layer doesn't get included in the composite. I didn't see
any enumeration of the tiles (unless I'm missing it somewhere) in the
object, but it looks like the tile images can be accessed here:
http://khm1.google.com/kh/v=37&hl=en&x=4&y=2&z=3
I'm guessing you'd need to find a way to use the map's bounds to find the
proper GET values and the resulting images' displacements on the composite
image, but I'm not sure how to make that calculation.
More generally: I didn't see any conclusive threads about adding Google Maps
layers to a composite image--has anyone done this?
Thanks,
Tom
--
View this message in context: http://n2.nabble.com/Saving-with-a-Google-Maps-base-layer-tp2736685p2736685.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list