Skip to main content

Google Map For Your Web Applications


Hey , its so simple. Where am I? [inline:whereamid.jpg=Where Am I] The current location of the map is where I am situated. Copy and paste the code to you web projects making it NEAT. You can also use the ff. link to get the coordinates of the location you want to appear. http://www.gorissen.info/Pierre/maps/googleMapLocation.php Get the latitude and longitude from the link and replace the line below. map.setCenter(new GLatLng(x, y), 12); x is your latitude and y is your longitude. Future updates. Location change by coordinates Location change by hotspots Cheers!

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Submitted byAnonymous (not verified)on Tue, 11/16/2010 - 21:31

Hi I'm joi... were doing a community security system for our capstone.. How can we make a searching map for a subdivision only... Example if I'm a visitor and I don't know the exact location of the person I wanted to go... all i need is to search the name of the person....then the X mark would say the location I'm looking at.... Please help me..Thanks :))

Submitted byravenr1on Thu, 12/09/2010 - 13:51

Sorry for not getting back to you the soonest.

Anyway, since your scope is smaller than what Google Map can offer, you can use Image Maps to do this. There are a lot of examples out there using Image Maps. I'm saying this in ASP.NET view because I've never tried Image Maps in other languages.

If you're not into .NET, you can still use the code above.

Here are the steps you can use. (Please, do correct me if I'm wrong)

1. You should be able to get the map location of that person. Somebody written a tool for that found here.

http://www.gorissen.info/Pierre/maps/googleMapLocation.php

If the page is not available, do search on Google on how to get coordinates for google map.

Use the tool to get coordinates of the specific address, copy and save it to your database.

2. Rewrite the script of the map used during the return query of the person's location specifically this part of the script

> map.setCenter(new GLatLng(x, y), 12);

where x and y are the saved values of the coordinates. Don't mind the value "12" , it has something to do with the zoom level of the map. Play with it anyway.

To rewrite means to supply the x and y values in "map.setCenter(new GLatLng(x, y), 12);" code.

There are also many ways to do this, either via javascript or the server code(your choice of language)

HTH

Cheers,

Add new comment

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.