How to send TWO sets of coordinates to GoogleMaps - google-maps

lovely to be here.
Quick question.
If you click on the following link: http://maps.google.com/maps?q=53.838061,-1.604025
It will take you to Google Maps and you can see a single pin on the map. This is done by sending two parameters via the URL which, in this case are: 53.838061,-1.604025. These are the Latitude and Longitude coordinates of one location.
What I wish to have is basically two sets of coordinates so I can see two pins on the map.
Does anyone know how to do this?
Any help is greatly appreciated.
Thank You.

I think you will have to use this api: http://code.google.com/apis/maps/documentation/staticmaps/#Markers
There are also some examples there. I hope this helps.

Am taking that you need to know the co-ordinates from the maps page and not via the api.
Right click on the spot, in the menu select "whats here", maps inserts a marker on the spot, coordinates are on the search text box and also on mouse hover on the marker.

Related

Google Map API - polygon cutted off from another polygon

I'd like to draw polygon into the Google Map API and cut another polygon which lies inside the first one off. Is this possible? Could you give me any example, please (maybe link to the page with working example)?
Thank you very much.

Box inside google maps

I've been searching an answer to this and the best i could find was here at stackoverflow, where someone explains how to insert a box of information inside the Google Maps but actually i would like to have that box side-by-side with my location.
Here is an example, just click at one of the green dots in the map, it will show you what i would like to have:
http://www.leroymerlin.pt/Site/Lojas.aspx
How can i do this? It even zooms in automatically! Wow, Google maps API V3 seems to be pretty awesome. This is cool too: goo.gl/WDMYmz . Not related though..
Thank you very much for all the help provided.
What you see there is a custom overlay , a implementation of the OverlayView-class
There are libraries for a convenient creation of such overlays, e.g. infobox. The zoom may be set via the setZoom-method of the map.

Google map with multiple markers and location buttons to change center point

Does anyone know the best way to build a google map with buttons outside of a google map that changes the center point of the map? My company has 3 offices and I would like to be able to click a location to center on that marker. Any help would be much appreciated.
See link for an example:
Link to screen shot >
Assuming you have defined, initialized and have a reference for Google Maps (in global scope) you can do something like this:
document.getElementById('button').onClick = function(){
map.setCenter(latlngofoffice);
}

Google Maps v3 custom map marker icon but with infowindow content from google

I've been wondering about this for some time:
Is it possible to let a custom marker for a place on a google map display an infowindow with the same information that the infowindows on maps.google.com display when clicking on a place, without having to generate the HTML for the content yourself (using the places library)? I hope you know what I mean. Please let me know if I'm being unclear.
It would be great if one could pull the information straight from google instead of having to do it manually. I mean, why do something that's already there, right? ;)
Thanks for sharing your thoughts!
edit: I've tried rephrasing my question to make it clearer. I've removed the example code because it was just adding to the confusion. Sorry, English isn't my first language ...
There is currently no API call from Google that will provide the default InfoWindow content for a Lat/Long location.
The only thing google currently provides is some Reverse Geocoding Infomation.

Externalising Google Maps InfoWindow Content When Marker Is Selected

I'm wondering if anyone knows whether it is possible to take the content of a Google Maps InfoWindow and place it in an external DIV when the marker on the map is clicked?
I've had a good dig around both the API docs and Google to see if I can find any examples or information relating to this but have had no luck so far. However I've not had a lot of time since I got asked about this one so I have had to skim a bit so it could be that I've missed something but nothing seems to be jumping out at me.
Essentially I'd just like to know if this is indeed possible so that I don't waste anymore time researching something that is currently not possible with Google Maps. However if anyone has any code, examples, or ideas about how to go about doing this then that would be a very much appreciated!
Thanks,
Mark
It's definitely possible. Just add each marker to an array, along with whatever data you want to display. Add a listener to each marker which will access that data when the marker is clicked.
See these questions:
How do I link Google Maps Markers to other elements
How do I highlight markers on hover in Google Maps for a sortable table