Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Ajax
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #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>
Reply With Quote
  #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/
Reply With Quote
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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 08:01 AM
Google Maps JS in ASPX page error kingroon ASP.NET 2.0 Basics 0 December 7th, 2007 08:52 AM
Use Map/image maps teresagoh Javascript 4 February 11th, 2006 02:54 AM



All times are GMT -4. The time now is 11:13 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.