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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:11:54+00:00 2026-05-31T16:11:54+00:00

I am showing custom marker with click event on it. It shows information when

  • 0

I am showing custom marker with click event on it. It shows information when I clicked but the info window is not showing well. I used some css in it. I also need to customize it further. This map is shown in phonegap app in iPhone (iOS 5). Every other thing working find (including direction, GPS).
I have used google map js v3 API.
I got this output.
output

How to show correct infoWindow? And customize as my need.

here is the code

function setMap(myLat, myLng){
    // Define Marker properties
 var image = new google.maps.MarkerImage('images/pick.png',
      new google.maps.Size(30, 40),
      // The origin for this image is 0,0.
      new google.maps.Point(0,0),
      // The anchor for this image is the base of the flagpole at 9,36.
      new google.maps.Point(9, 36)
      );

  var my_place = new google.maps.LatLng(myLat, myLng);
  var myOptions = {
  zoom:14,
  mapTypeId: google.maps.MapTypeId.ROADMAP,
  mapTypeControl: false,
  center: my_place
  }
  mer_map = new google.maps.Map(document.getElementById("mer_map_canvas"), myOptions);
  mer_marker = new google.maps.Marker({
                              position: my_place, 
                              map: mer_map,
                              clickable : true,
                              animation: google.maps.Animation.DROP,
                              icon: image
                              });
var contentString = '<div id="mer_map_info" style="border:3px solid red; color:#FFF; background-color:#000;"><p>this is just a test...</p></div>';
var infowindow = new google.maps.InfoWindow({
    content: contentString
});

google.maps.event.addListener(mer_marker, 'click', function(event) {
        infowindow.open(mer_map,mer_marker);
        });}
  • 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-31T16:11:55+00:00Added an answer on May 31, 2026 at 4:11 pm

    Give this a try. I had a similar problem with phonegap and google maps.

    #map_canvas img {
    max-width: none;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason my custom variables are not showing up in my Google Analytics
I've written some code for showing annotations with custom images in a mapview. My
The // TODO comments and other custom defined are not showing up in task
The javascript console keeps showing Not a custom field name: username when its supposed
I am using Google Custom Search and showing result on my website, but with
I have a custom canvas in an application, which is not showing image, in
I am showing Custom Error in my page.. if somehting happend wrong. but if
I'm running a WordPress website with a custom template that is showing me a
I'm generating and showing a new WinForms window on top of a Main Window.
I've created a custom handler that will take care of dismissing dialogs, showing dialogs

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.