Hello everybody

In the simple map demo 
http://code.google.com/apis/maps/documentation/examples/map-simple.html
The GLatLng (,) values are static values (37.4419,-122.1419 as per the
code snippet below).

Can anybody point me to a tutorial or demo where lng and lat co-ords
are read on the fly from a MySQL database and written into the
map.setCenter(new GLatLng) as a variable. They may appear , for
example, as

map.setCenter(new GLatLng($lat,$lng) where $countrycode=ie

I have a number of country templates on my site  which generate
content on the fly based on the country code and want to generate
country-specific maps on the fly from the country database rather than
hard code the lat, lng into each template.


My country database is such

tblMyMaps
------------------------------------------------------
countrycode | country       | lat     | lng |
------------------------------------------------------
ie               | ireland          | 53.6000 | -6.33
fr                | france           | 52.6000 |  3.33
gb              | Great Britain | 55.0000 | 0.0000
us              | united states | 38.8888 |-77.000

thanks in advance
Conor
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to