Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1174754
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
Thu, Oct 2, 10:18 PM
Size
716 B
Mime Type
text/plain
Expires
Sat, Oct 4, 10:18 PM (1 d, 4 h)
Engine
blob
Format
Raw Data
Handle
761683
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