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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:29:30+00:00 2026-05-11T00:29:30+00:00

I wrote a google map lookup page. Everthing worked fine until I referenced the

  • 0

I wrote a google map lookup page. Everthing worked fine until I referenced the page to use a master page. I removed the form tag from the master page as the search button on the map page is a submit button. Everything else on my page appears but the google map div appears with map navigation controls and logo but no map visuals appear.

I retested with the previous, non master page version and the map appears correctly. Any thoughts on what I’m missing?

  • 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. 2026-05-11T00:29:30+00:00Added an answer on May 11, 2026 at 12:29 am

    Please view below Code and let me know its useful …

    MasterPage Code ( GMap.master page)

    < body onload='initialize()'  onunload='GUnload()'  >   < form id='form1' runat='server' >     < div >         < asp:contentplaceholder id='ContentPlaceHolder1' runat='server' >         < /asp:contentplaceholder >     < /div >     < /form > < /body >   

    GMatTest.aspx Page which is used GMap.Master page

    < %@ Page Language='C#' MasterPageFile='~/MasterPages/GMap.master' AutoEventWireup='true'     CodeFile='GMapTest.aspx.cs' Inherits='GMapTest' Title='Google Map Page' % >   < asp:Content ID='Content1' ContentPlaceHolderID='ContentPlaceHolder1' runat='Server' >       < script src='http://maps.google.com/maps?file=api&amp;v=2&amp;key=< % = AppConfig.GoogleMapApiKey % >'         type='text/javascript' >< /script >      < script type='text/javascript' >      var map = null;     var geocoder = null;     var latsgn = 1;     var lgsgn = 1;     var zm = 0;      var marker = null;          function initialize()      {       if (GBrowserIsCompatible())        {        var latitude=  '';        var longitude= '';         map = new GMap2(document.getElementById('map_canvas'));            var center = new GLatLng(0,0);          map.setCenter(center, 17);           map.addControl(new GLargeMapControl());         map.addControl(new GScaleControl());         map.enableScrollWheelZoom();          map.addControl(new GMapTypeControl());          map.enableDoubleClickZoom();           marker = new GMarker(center,{draggable: true});           geocoder = new GClientGeocoder();          GEvent.addListener(marker, 'dragend', function() {         var point = marker.getLatLng();          marker.openInfoWindowHtml('Latitude: ' + point.y + '< /br > Longitude: ' + point.x  );       });         GEvent.addListener(marker, 'click', function() {         var point = marker.getLatLng();                });           map.addOverlay(marker);         GEvent.trigger(marker, 'click');          if (latitude  > 0 &&  longitude  > 0)         {         }         else         {                     showAddress();          }       }      } 

    Below porsion is continue so please copy it also

    function showAddress()  {      var isAddressFound=false;        var companyAddress = '';        var address='satyam mall, vastrapur, ahmedabad, gujrat, india';        if (geocoder)        {            geocoder.getLatLng(address,function(point) {                                 if (!point) {                               alert(address + ' not found');                                 } else {                                   isAddressFound =true;                                map.setCenter(point,17);                                zm = 1;                                marker.setPoint(point);                                GEvent.trigger(marker, 'click');                                }                            }            );      //If address not found then redirect to company address       if(!isAddressFound)      {               geocoder.getLatLng(companyAddress,          function(point) {           if (!point) {           } else {             isAddressFound =true;          map.setCenter(point,17);          zm = 1;          marker.setPoint(point);          GEvent.trigger(marker, 'click');          }          }          );      }  } } < /script >  < div id='map_canvas' style='width: 100%; height: 425px' > < /div > < /asp:Content > 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 68k
  • Answers 68k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer There's a few tricks you can use to clean up… May 11, 2026 at 12:18 pm
  • added an answer Your best bet would be to create a Timer object… May 11, 2026 at 12:18 pm
  • added an answer No. :) That being said, imagine what would happen if… May 11, 2026 at 12:18 pm

Related Questions

I wrote a PHP code like this $site=http://www.google.com; $content = file_get_content($site); echo $content; But
I have a simple Google App Engine app, that I wrote using ordinary strings.
I am having some trouble with the Google Maps API . I have an
I'm attempting to learn a little more about handling sockets and network connections in

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.