Frontend Development

How to Display Multiple Google Maps per page with API V3

Submitted by alejandrob1519, , Thread ID: 83367

Thread Closed
06-04-2018, 04:42 PM
#1
I have the following script. And I want to make both maps appear on the page, but no matter what I try I can only get the first map initialize() to display... the second one doesn't. Any suggestions? (also, I can't add it in the code, but the first map is being displayed in <div id="map_canvas"></div><div id="route"></div> Thanks!

RE: How to Display Multiple Google Maps per page with API V3

Planeti
Closed Account
Level:
0
Reputation:
0
Posts:
1
Likes:
0
Credits:
1
08-04-2018, 02:47 AM
#2
Thank you for post man i hope can help me this tool man this luck very interesting

RE: How to Display Multiple Google Maps per page with API V3

20-04-2018, 04:16 PM
#3
Man, you need to post your code.

Do your <div>'s have separate ID attributes? Like map_canvas1, map_canvas2 etc.

Are you initializing them all correctly? Seriously, put the code into a pastebin, then post it here. I will be able to help I use this all the time.

Users browsing this thread: 1 Guest(s)