There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Web Design & Development
Tag Cloud
access acer asus batch bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop lcd malware memory modem monitor motherboard network printer problem ram registry router slow software sound toshiba trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Google Maps Help

Reply  
Thread Tools
ggormsen's Avatar
Computer Specs
Junior Member with 2 posts.
 
Join Date: Feb 2010
Location: Peoria AZ, USA
Experience: I know HTML, and CSS.
09-Feb-2010, 01:18 PM #1
Question Google Maps Help
Hello,
I am seeking help for why the marker is not showing up on the google map. This site is for a client, and I can't see what is going wrong.

Here is the link to the html page...
http://sandyandsons.com/locations.html


Here is the link to the js page...
http://sandyandsons.com/code/javascript.js

Here is the code that is important...
Code:
    function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(33.452204,-111.769772), 15);
		var point = new GPoint(33.452204,-111.769772);
var marker = new GMarker(point);
map.addOverlay(marker);
map.setMapType(G_TERRAIN_MAP);		
        map.setUIToDefault();
      }
    }
Thank you.
tomdkat's Avatar
Computer Specs
Distinguished Member with 7,127 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
15-Feb-2010, 01:06 AM #2
When I load your page in Firefox and I look at the Error Console, I get this error:

Code:
Error: G_TERRAIN_MAP is not defined
Source File: http://sandyandsons.com/code/javascript.js
Line: 30
So, you need to make sure G_TERRAIN_MAP is the right map type you should be using and find out why it's not defined.

Peace...
tedscoffee's Avatar
Junior Member with 6 posts.
 
Join Date: Aug 2009
Experience: Advanced
19-Feb-2010, 06:42 AM #3
I have similar problem before and wasn't able to solve quickly. So instead I did a screen capture of the street map, and import it into iMapBuilder, and add the markers, pushpins with rollover text there. The map seems to work more stable as it can be hosted locally.
Reply

Tags
google, map, marker

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 08:53 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.