Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Ajax
Ajax the combination of XHTML, CSS, DOM, XML, XSLT, XMLHttpRequest, and JavaScript
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Ajax section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old October 27th, 2014, 04:30 AM
Registered User
Join Date: Oct 2014
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Google Maps page not show map.

Hi, I'm using some simple direction to public a map location but is not working. I took that from an exercise of the book professional Ajax second edition chapter 10. Could somebody help me to find the error, I'll really appreciate it. This is the code:

<script type="text/javascript"
<script type="text/javascript">
var oMap = new GMap2(document.getElementById("map-canvas"));
oMap.setCenter(new GLatLng(18.491666,-69.872360),8);
document.createTextNode("Center of the Map"));

Old October 27th, 2014, 06:09 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

I don't think version 2 of Google Maps is available any longer.
The Following User Says Thank You to joefawcett For This Useful Post:
Gladiattor (October 27th, 2014)
Old October 27th, 2014, 07:47 PM
Registered User
Join Date: Oct 2014
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Gladiattor Google Maps page not show map

Hi Mr. Fawcett, thanks for your quick response. I'm working now with the version 3 of Google Maps in my project. I think, I going to solve the situation.

Best Regards.


Similar Threads
Thread Thread Starter Forum Replies Last Post
coordinates google maps etxJS sedoyksa Javascript 0 October 31st, 2011 07:33 PM
Google maps Geocode avi1 ASP.NET 3.5 Basics 0 October 24th, 2010 01:49 AM
Heat Map over Google Map ajit Javascript 0 March 7th, 2008 09:01 AM
Google Maps JS in ASPX page error kingroon ASP.NET 2.0 Basics 0 December 7th, 2007 09:52 AM
Use Map/image maps teresagoh Javascript 4 February 11th, 2006 03:54 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.