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 8411741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:30:07+00:00 2026-06-10T00:30:07+00:00

Possible Duplicate: Google Maps v3 Shifting After Loading in WordPress I used the code

  • 0

Possible Duplicate:
Google Maps v3 Shifting After Loading in WordPress

I used the code generated with this useful tool: http://powerhut.co.uk/googlemaps/custom_markers.php

This is my html before < / head > tag:

<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" >
    function initializeMap()
    {
        var point = new google.maps.LatLng(42.61196, 12.54584);

        myOptions = {
            zoom: 13,
            center: point,
            mapTypeId: google.maps.MapTypeId.ROADMAP
        }

        var image = new google.maps.MarkerImage(
            '/wp-content/plugins/comprehensive-google-map-plugin/assets/css/images/markers/medicine.png',
            new google.maps.Size(32,37),
            new google.maps.Point(0,0),
            new google.maps.Point(16,37)
        );

        var shape = {
            coord: [29,0,30,1,31,2,31,3,31,4,31,5,31,6,31,7,31,8,31,9,31,10,31,11,31,12,31,13,31,14,31,15,31,16,31,17,31,18,31,19,31,20,31,21,31,22,31,23,31,24,31,25,31,26,31,27,31,28,31,29,30,30,29,31,23,32,22,33,21,34,20,35,19,36,12,36,11,35,10,34,9,33,8,32,2,31,1,30,0,29,0,28,0,27,0,26,0,25,0,24,0,23,0,22,0,21,0,20,0,19,0,18,0,17,0,16,0,15,0,14,0,13,0,12,0,11,0,10,0,9,0,8,0,7,0,6,0,5,0,4,0,3,0,2,1,1,2,0,29,0],
            type: 'poly'
        };

        var map = new google.maps.Map(document.getElementById("googleMap"), myOptions);
        var marker = new google.maps.Marker({
            map: map,
            title: "Marker Title",
            position: point,
            icon: image,
            shape: shape
        });
        var window = new google.maps.InfoWindow({
            content: "<b>Marker Title</b>",
            maxWidth: 150
        });
        var infoWindow = new google.maps.InfoWindow(window);

        google.maps.event.addListener(marker, "click", function() {
            infoWindow.open(map, marker);
        });
    }
</script>

On body:

<body onload="initializeMap();">

Inside body…

<div id="googleMap">&nbsp;</div>

…and the style…

#googleMap {
    width: 540px;
    height: 400px;
    margin: 20px auto;
}

I’m using WordPress and the map seems to be loaded two times, creating a smoothing effect and corrupting some commands.

Any ideas?

  • 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-06-10T00:30:09+00:00Added an answer on June 10, 2026 at 12:30 am

    Your map is only loading once. The problem is WordPress styles. See Google Maps v3 Shifting After Loading in WordPress

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

Sidebar

Related Questions

Possible Duplicate: Can Google Maps/Places 'autocomplete' API be used via AJAX? There seems to
Possible Duplicate: json with google geocoding api json Uncaught SyntaxError: Unexpected token : $.getJSON('http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true&callback=?',
Possible Duplicate: Why google index this ? In this webpage: http://www.alvolante.it/news/pompe_benzina_%E2%80%9Ctruccate%E2%80%9D_autostrada-308391044 there is this
Possible Duplicate: How does this work? Weird Towers of Hanoi Solution While surfing Google,
Possible Duplicate: Converting ereg expressions to preg <?php $searchtag = "google"; $link = "http://images.google.com/images?hl=de&q=$searchtag&btnG=Bilder-Suche&gbv=1";
Possible Duplicate: How to put this code in v3 instead v2 map I have
Possible Duplicate: Google Maps output=kml broken? I started to get Error when I'm trying
Possible Duplicate: Google Maps output=kml broken? I want to use route system by using
Possible Duplicate: Android:Google Maps API Key Signup : MD5 certification key I'm tryng to
Possible Duplicate: Git plugin for eclipse I have a project on google code to

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.