Permalink
Browse files

more parameters

  • Loading branch information...
1 parent 14d4fbf commit db41fe6b7dbfe6e9c6052a675268c710eca8e5ed @korbinus committed May 24, 2011
Showing with 6 additions and 3 deletions.
  1. +5 −2 annotated.js
  2. +1 −1 index.js
View
@@ -1,10 +1,13 @@
function(
a //placeholder for div element
+ , b //placeholder for zoom
+ , c //placeholder for latitude
+ , d //placeholder for longitude
) {
with (google.maps) {
var map = new Map(a
- , { zoom:1 //zoom 1
- ,center: new LatLng(0,0) //centered 0,0
+ , { zoom:b //zoom
+ ,center: new LatLng(c,d) //centered on c,d
,overviewMapControl:!0 //overview
,mapTypeId: MapTypeId.TERRAIN //terrain is beautiful
}
View
@@ -1 +1 @@
-function(){with(google.maps)new Map(document.getElementById("map"),{zoom:1,center:new LatLng(0,0),mapTypeId:MapTypeId.TERRAIN})}
+function(a,b,c,d){with(google.maps)new Map(a,{zoom:b,center:new LatLng(c,d),overviewMapControl:!0,mapTypeId:MapTypeId.TERRAIN})}

0 comments on commit db41fe6

Please sign in to comment.