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 April 2nd, 2010, 08:09 AM
Authorized User
Join Date: Apr 2010
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default Map viewer using ajax and javascript

I want to have a Map viewer just like the one used in this site:


Note: I want to have my own image for the map in it. and secondly it should not include any flash content.
It has to be completely Non-Flash.

secondly the site is going to be hosted on linux server so i can only use php as the server side language.
as thats the only language i know properly.

Can someone please help out its really really urgent.
Or can i get some script similar to it in javascript.

any help would be grateful

Last edited by harshil.sh; April 2nd, 2010 at 08:15 AM..
Old June 6th, 2010, 05:03 AM
Authorized User
Join Date: Jun 2007
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts

Hi harshil.sh

Use one of the well known map providers like Google Map, Yahoo Map or Microsoft Map APIs. They are easily customizable and you can display your data on their map as you like. I suggest you to use Google Map. Its API is very rich and is growing rapidly (adding new services every now and then). In order to use one of these APIs, you just need to register an API Key and start embedding a map on your site.

Take a look at Google Map API Documentations and samples at

However, if you need to use your own map images (tiles) you can use OpenLayers.

It's an open source library with all basic functionalities of a Map API and also an active community of developers.

Check it at http://www.openlayers.com

However, in my opinion, it's little large and its API is not so developer friendly. There is a reference documentation for all classes and main components, but it may take you some time to become familiar with its terminology (if you have no background in GIS systems).

Good luck
Ehsan Zaery Moghaddam
Senior J2EE/Web Developer
Old June 6th, 2010, 10:53 PM
Friend of Wrox
Join Date: Jun 2007
Posts: 477
Thanks: 10
Thanked 19 Times in 18 Posts

If you can use one of the already established APIs, I'd recommend it. That's a pretty sophisticated piece of functionality, not to mention an awful lot of bandwidth that you get to serve off of someone else's server. A couple of big advantages to using them.

Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mind map with Ajax TIA555 Ajax 0 June 28th, 2008 01:45 PM
avoid postback using ajax in javascript kalyanykk Visual Studio 2005 1 May 30th, 2008 08:16 AM
Heat Map over Google Map ajit Javascript 0 March 7th, 2008 09:01 AM
Wrox.com JavaScript and Ajax Articles jminatel Javascript How-To 0 March 23rd, 2007 09:21 PM
Ajax and javascript loading pppswing Ajax 0 September 21st, 2006 01:27 AM

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