dilino
dilino

Reputation: 97

Convert a Google Maps Link to be usable with the Google Maps Javascript API

I'm writing a Java Webapp based on the Google Maps Javascript 3.0 API. I'm displaying a map and a textarea. Now I want the user to be able to paste a Google Maps Link that he created on the Google Maps main page http://maps.google.com/ by clicking on the link icon.

E.g. Link

After the user pastes this URL into the textarea I want to display "my" map according to the url parameters. Is there a Google Maps Javascript API functionality for doing so or do I have to extract and set all the parameters "manually"?

Upvotes: 0

Views: 144

Answers (1)

bamnet
bamnet

Reputation: 2554

You're going to have to extract the parameters manually from these URLs. There is no published spec indicating the parameters you'll see.

Upvotes: 1

Related Questions