Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F776587
googlemaps.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Feb 7, 7:17 PM
Size
716 B
Mime Type
text/plain
Expires
Sun, Feb 9, 7:17 PM (1 d, 14 h)
Engine
blob
Format
Raw Data
Handle
559010
Attached To
rTADV Themes.Advanced
googlemaps.js
View Options
google
.
load
(
"maps"
,
"2.x"
);
// Call this function when the page has been loaded
function
initialize
()
{
map
=
new
google
.
maps
.
Map2
(
document
.
getElementById
(
"map"
));
map
.
setCenter
(
new
google
.
maps
.
LatLng
(
37.4419
,
-
122.1419
),
13
);
map
.
addControl
(
new
GSmallMapControl
());
map
.
addControl
(
new
GMapTypeControl
());
}
var
map
=
false
;
function
showaddress
(
addr
,
addrInfo
)
{
if
(
!
map
)
initialize
();
geocoder
=
new
google
.
maps
.
ClientGeocoder
();
geocoder
.
getLatLng
(
addr
,
function
(
point
)
{
if
(
!
point
)
{
alert
(
addr
+
" not found"
);
}
else
{
map
.
setCenter
(
point
,
13
);
var
marker
=
new
GMarker
(
point
);
map
.
clearOverlays
();
map
.
addOverlay
(
marker
);
marker
.
openInfoWindowHtml
(
addrInfo
);
}
}
);
}
Event Timeline
Log In to Comment