Multiple Markers Based On URL Page Meta Data

275 views
Skip to first unread message

butchkaz

unread,
Jul 16, 2010, 1:00:53 AM7/16/10
to Google Maps JavaScript API v3
Is there a way to have a maps API display mutiple markers based on a
URL's meta data?
Example- I have an auto repair website and would like to have an index
page where visitors can click on their general location(city) and the
city name links to a page with googlemaps on it that has several tags
showing auto repair facilities based on that city. I can only get a
marker for the city, not specific automotive busineses in that city.
Here is the URL of a page I am testing with...
http://www.justautorepair.com/component/content/article/281.html
Thanks for any info !
Details-
Joomla 1.5.15
JA Purity II

Rossko

unread,
Jul 16, 2010, 5:11:40 AM7/16/10
to Google Maps JavaScript API v3
> Is there a way to have a maps API display mutiple markers based on a
> URL's meta data?

Would you like a map based on data that you provide, or are you asking
how to search Google's database for local repair shops?

This example may be more complicated than you had in mind -
http://code.google.com/apis/maps/articles/phpsqlsearch_v3.html

butchkaz

unread,
Jul 16, 2010, 9:07:58 AM7/16/10
to Google Maps JavaScript API v3
Map based on data provided. If visitor clicks on "Chicago" from an
index of cities, link would go to a page with meta data for chicago
and auto repair shops. Each city would be a different page with
different meta data.

Rossko

unread,
Jul 16, 2010, 9:18:57 AM7/16/10
to Google Maps JavaScript API v3
> Map based on data provided. If visitor clicks on "Chicago" from an
> index of cities, link would go to a  page with meta data for chicago
> and auto repair shops. Each city would be a different page with
> different meta data.

How is your data to be held?
At its most basic you could have a file of data for each location.
Write a map webpage that gets a querystring, and uses that to decide
which datafile to read and plot.
like www whatever/my-map-page.htm?file=chicago

butchkaz

unread,
Jul 16, 2010, 12:48:20 PM7/16/10
to Google Maps JavaScript API v3
Sounds good. Thanks!
Reply all
Reply to author
Forward
0 new messages