Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Maps image?

Is there any way to capture the image of a Google Map? I can't use the static map because I have my own polylines in the map and I want them in the "screenshot".

Basically I want a user to navigate the map, add some polylines, and when he clicks Save I'm saving the lines, coordinates, zoom, but I would also like to have an image to present as a thumbnail in lists.

Tks in advance.

like image 957
Dante Avatar asked Jul 17 '09 11:07

Dante


People also ask

Can you buy a Google map image?

Today, the company has announced that customers can now purchase Google's aerial imagery directly from the company and use it to map public service projects, study the environmental impact of a project, or evaluate a property.


2 Answers

Masashi Katsumata has come up with a Snapshot Control that takes a snapshot of a Google Maps with a path on it and creates an image from it.

  • Blog post: http://googlegeodevelopers.blogspot.com/2009/09/snapshotcontrol-10-using-static-maps.html
like image 199
Matthew Lock Avatar answered Oct 11 '22 19:10

Matthew Lock


Using Google Maps Content outside of the Service is a violation of the Google Maps API Terms of Use, so although techniques exist for creating the snapshots, Google doesn't give you permission to do so.

To achieve your intended functionality legally, you either need to use static maps (possibly with reduced content, particularly if the user is using MSIE where the max URL length is quite small) or small real Google Maps.

I don't seem to have privilege yet to add or edit comments to the question, so I'll mention here that the URL limit in at least some Maps compatible versions of MSIE is 2083 characters, not 8k like it is in most other browsers.

like image 33
Mike Williams Avatar answered Oct 11 '22 21:10

Mike Williams