Google Maps Control

In Corso Pubblicato Dec 17, 2010 Pagato alla consegna
In Corso Pagato alla consegna

This project involves ONE web page with a Google Maps on which I can search businesses.

Ideally (one of two options) I would like to add the feature to the google maps page and a target window (can be blank and contain only the javascript functions) that would popup and stay open for the NewResult function to be called for each results while I am on the real Google website.

The other option is to create a web page on which you will place a textbox, a search button and a map, and to which you would include the function mentioned above. In such case, results should appear on the map.

Whenever a marker is loaded on the map, I want a Javascript function to be call with the business information as described below. I also want to be able to change the color of any marker at anytime using an identifier that is unique for each business and that won't change from a query to another.

Also, when a Marker is clicked on, a function should also be called. When that happens, I must be able to PREVENT the message box that shows the business information to popup. Ideally but optionally, returning true of false in the function would allow me to still show it, but that is optional. If that box never shows up, it's okay. If I can decide whether it does, that's nice, but not required.

The function I will code but that you need to call are NewResult and MarkerClick. SetMarkerColor may be call be me at anytime, even outside on the tow other mentioned functions.

function NewResult(GID, BusinessName, ContactTitle, ContactName, Address, City, State, ZIP, Phone, Email, WebsiteURL, Latitude, Longitude, Categories)

{

// Categories is an array of strings

//My Code

//Example:

SetMarkerColor(GID, "FFFF00"); // Make that marker yellow;

}

function MarkerClick(GID)

{

// My Code

// returns whether the message box with should pop-up

// Buttons tells which button of the mouse were pressed

//Example:

SetMarkerColor(GID, "FFFF00"); // Make that marker yellow;

return false; // Do not show the business information over the map.

}

function SetMarkerColor(GID, Color)

{

// Set the maker color for business #GID

// Code provided by you

}

Google App Engine

Rif. progetto: #887269

Info sul progetto

1 proposta Progetto a distanza Attivo Dec 19, 2010

Assegnato a:

ykm

Hi, I am a expert for google map api v2 and v3. I saw your code. Um~~~~ The marker can not be changed by number of color because the marker is a image. If you want to change the marker's color, you have to ready th Altro

$110 USD in 2 giorni
(2 valutazioni)
0.0