[OpenLayers-Users] Saving with a Google Maps base layer

Chris Adams chris at genieknows.com
Tue Apr 28 16:52:26 EDT 2009


How about this?

http://code.google.com/apis/maps/documentation/staticmaps/

Tom B wrote:
> 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
>   





More information about the Users mailing list