Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7626547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:20:23+00:00 2026-05-31T05:20:23+00:00

I have multiple Google Maps on a single page. Scenario: Maps are working as

  • 0

I have multiple Google Maps on a single page.

Scenario:

  • Maps are working as expected when used alone on a page.
  • I am using 2 maps on the same page.

Working Case: 🙂

  • 1st map uses Unstyled-Markers (Default markers)
  • 2nd map uses Styled-Markers [ Refer : Styled Markers ]
  • Both maps shows the markers as expected.
  • Refer code at [ http://pastebin.com/ciphPXZc ]

Problem Case: 🙁

  • 1st map uses Styled-Markers [ Refer : Styled Markers ]
  • 2nd map uses Unstyled-Markers (Default markers)
  • 1st map shows no markers at all
  • Refer code at [ http://pastebin.com/HyYhgsbm ]

I am not able to understand how are the maps affecting each other even when there is no clash of variable names.

Also, how can the order of maps affect it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:20:24+00:00Added an answer on May 31, 2026 at 5:20 am

    It’s because of the way you are loading the API and the StyledMarker extension. Do both only once, and as early as possible (preferably in the <head> section).

    <html>
    <head>
        <script src="http://maps.googleapis.com/maps/api/js?v=3.6&sensor=true&language=en-us"></script>
        <script src="/site_media/js/google_maps/StyledMarker.js"></script>
    </head>
    

    Don’t include the scripts anywhere else.

    In the first example, you load the API, then do that again and then the StyledMarker extension, and then you call map1() and map2(). But because the StyledMarker extension is loaded last, everything works.

    In the second example, you load the API and the StyledMarker extension, then you load the API again, then you call map1() and attempt to use styled markers. However loading the API the second time may well have obliterated the StyledMarker extension.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have found a code to show Google maps with multiple markers using JQuery
I have multiple Google Maps on a page. After I initialized them, I have
I'm using Google Maps API on my web page. I'm try to add multiple
I have a map with multiple markers of companies using google maps API v3.
I'm having an issue with multiple markers on google maps - I currently have
Is it possible to have multiple classes that inherit/extends same class in Google AppEngine
I have successfully implemented code to plot multiple locations on google maps dynamically. Solution:
I have a reusable google-maps widget that can be plugged into any page that
Hi I have this weird problem with Google Maps V3 API. Showing multiple markers
I have an html page with google maps in one of the divs called

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.