/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Google map API positioning…

I have created a website that has an image as the template, when i insert the google map api into my page the map goes behind the image!

Any ideas how to solve this?

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@FangMay 31.2008 — Try giving the [I]map_canvas[/I] style [I]position:relative; z-index:1000;[/I]
Copy linkTweet thisAlerts:
@chris1988authorMay 31.2008 — thanks u did the trick, i added the z-index to the css style sheet and it did the trick thanks alot, also you don't know how to change the location of the map by any chance becuase its set the default to somwhere in America, and i want it to open with a place in the Uk.

Thanks again for your help.
Copy linkTweet thisAlerts:
@FangMay 31.2008 —  map = new GMap2(document.getElementById("map_canvas"));
map.setCenter(new GLatLng(52.200, -2.200), 12); // lat, long, zoom
Copy linkTweet thisAlerts:
@chris1988authorMay 31.2008 — thanks Fang, you did the job, but where did you get those numbers from? that way i can position it to exactly where i want the map to show. Thanks again Fang.
Copy linkTweet thisAlerts:
@chris1988authorMay 31.2008 — thanks for your help Fang you've helped me a lot, was trying to work out these 2 problems all last night. Thanks again for your help.
×

Success!

Help @chris1988 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...