Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Ajax
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old October 27th, 2014, 04:30 AM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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"
src="https://maps.googleapis.com/maps/api/js?key={mygMapKey}">
</script>
<script type="text/javascript">
var oMap = new GMap2(document.getElementById("map-canvas"));
oMap.setCenter(new GLatLng(18.491666,-69.872360),8);
oMap.openInfoWindow(oMap.getCenter(),
document.createTextNode("Center of the Map"));

</script>
  #2 (permalink)  
Old October 27th, 2014, 06:09 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

I don't think version 2 of Google Maps is available any longer.
__________________
Joe
http://joe.fawcett.name/
The Following User Says Thank You to joefawcett For This Useful Post:
Gladiattor (October 27th, 2014)
  #3 (permalink)  
Old October 27th, 2014, 07:47 PM
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.

Gladiattor.


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.