Exporting OpenStreet map to Image - Using Google Maps API - google-maps

I know Google Maps API Terms of Service do not permit you to save their map data.
However OpenStreet does.
I want to use Google Maps API (ver 2) with the OpenStreet map layer and my own map layers - and have a button to export the map to an image.
How can I do this?

You can use a spatial index or a space-filling-curve to make your own map.

Related

Custom Map to show on API

I am trying to show a race course via the google api. I have gone in and created a custom map and can't figure out how to show that from the api. I am trying to add this to a website and then want to add another API on top of it.
This is the map I have created
To display data from Google MyMaps on a Google Maps Javascript API v3 map, export the data as KML/KMZ, then display it using KmlLayer
related questions:
Importing myMaps data in google maps
Render a My Maps using Google Maps JavaScript API
example
Since you tagged this question with google-static-maps, you may also be interested in:
Issue 207: KML layer in Static Maps API
Show a route on a map

How to Get Google My Maps Location Pins in Latitude and Longitude

I have created a custom map via http://www.google.com/mymaps/ and have added a few locations.
Is there a way for me to retrieve these locations (in lat and lng format) via Google Map Javascript API?
First you will need to export your map as a KML layer. To see how to do that, you can read about it here.
After that, you will need to import your KML layer to Google Maps. Here is an example.
Then you can use KML Feature Details and use position to get lat/long

New Google maps parameters

Does anyone have a good reference for the new google maps parameters. It seems maps are now in the format
https://www.google.com/maps/#40.07304,-74.724323,8z
Where the first two parameters are the LAT and LONG, the third is the zoom level. Are there other parameters to customize such as a marker location.
Could not find any official documentation from Google, but the Moz Blog has a description on the new Google Maps URL structure.
If you want to integrate with Google Maps (instead of just providing a link to a map), Google Maps has a couple of web APIs for maps:
Google Maps Javascript API
Google Maps Embed API
Google Maps Image APIs
Those pages do describe the location format (and the API Key to be used).

Getting pins from a saved Google Map into v3 API

I have a saved google map in 'My Places', with over 100+ pins added for locations around the UK. Is there any way I can avoid having to use the embed feature to display this map on a webpage, sort of calling the saved map by ID via the google API?
Essentially what I want to do is get access to google's new visual refresh and be able to control the settings of the map more with API.
The map link is this: https://maps.google.co.uk/maps/ms?msid=207590858966548688521.0004aa52150024d3431b2&msa=0
Can we parse anything here...?
You can overlay the KML output by MyMaps using a KmlLayer in the Google Maps API also:
your MyMaps data displayed on an API based map
Updates in MyMaps will (eventually) be reflected on the map.
Using https://mapsengine.google.com I was able to import the maps data and utilise the pins that way. Not ideal, but still some better functionality.

Add point polyline polygon in google earth

I want to develop a web-application using Google Earth in the browser.
I need to add a point feature, a polyline and a polygon.
The web-applicaton needs to display the features the same as the Google Earth desktop application.
I want to use the Google Maps Api and the Google Earth Api to deliver google earth in the browser.
How can I make this kind of application for myself, what is the best way for doing so?
You should look at the Google Earth Api documentation. http://code.google.com/apis/earth/documentation/reference/
Simple objects like points, polylines and polygons can be created via the api or loaded in Kml format. Take a look at the following documents.
Geometries and Overlays
http://code.google.com/apis/earth/documentation/geometries.html
Introduction to Kml
http://code.google.com/apis/earth/documentation/kml.html
From the sounds of it the KML approach might be the easiest thing - depending on the nature of the application. If you have some existing data in Google Earth, it would be easy to save this as a kml or kmz file and load it in to the Google Earth Api.