How do you get google maps on your site? - google maps
I would like to add a feature of Google Maps on my site. I want to see some places displayed on my site with Google Maps on my site. How do I do that?
How do you get google maps on your site? - google maps
I would like to add a feature of Google Maps on my site. I want to see some places displayed on my site with Google Maps on my site. How do I do that?
1 comment:
First, you need API key
http://www.google.com/apis/maps/signup.h ...
This is taking time. You can place a simple example program.
http://www.google.com/apis/maps/document ...
You need to know Longtitude and latitude data to the point of the place. Here is a sample code:
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt;! DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Transitional / / EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1- ...
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; html xmlns = "http://www.w3.org/1999/xhtml" xmlns: v = "urn: schemas-microsoft-com: vml">
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; head>
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; meta http-equiv = "Content-Type" content = "text / html; charset =" UTF-8 "/>
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; title> Google Maps JavaScript API Example: Simple Plan \\ \\ \\ \\ \\ \\ \\ \\ u0026lt; / title>
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; script src = "http://maps.google.com/maps?file=ap ...
type = "text / javascript"> \\ \\ \\ \\ \\ \\ \\ \\ / u0026lt script>
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; script type = "text / javascript">
function load () (
if (GBrowserIsCompatible ()) (
var map = new GMap2 (document.getElementById(Map_canva ...
map.addControl (new GLatLng (37.4419, -122.1419), 13);
)
)
\\ \\ \\ \\ \\ \\ \\ \\ / U0026lt script>
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; / head>
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; body onload = "initialize ()" onunload = "GUnload ()">
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; div id = "map_canvas" style = "width: 500px; height: 300px"> \\ \\ \\ \\ \\ \\ \\ \\ u0026lt; / div>
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; / body>
\\ \\ \\ \\ \\ \\ \\ \\ U0026lt; / html>
If you do not have their own Web API could not view maps.
Post a Comment