Database updates are currently taking place!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
Tag Cloud
acer audio boot bsod computer connection crash dell display driver drivers dvd error firefox freeze google hard disk hard drive hardware install internet keyboard laptop linksys macro malware network networking outlook outlook 2003 outlook 2007 problem redirect router server slow sound toshiba trojan usb video virus vista vpn windows windows 7 windows vista windows xp wireless youtube
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Google Maps Help

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

 
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, 11:18 AM #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 5,573 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
14-Feb-2010, 11:06 PM #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, 04: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

Smart Search

Find your solution!



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


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 05:54 PM.
Copyright © 1996 - 2010 TechGuy, Inc. All rights reserved.
Powered by Cermak Technologies, Inc.