Thanks very much for your reply.

All subdomains are actually pointing to root domain thus using ONE
single php file (the index.php file of the wordpress theme).

What do you mean by "geocode" ?

Cheers.

On Dec 18, 12:40 pm, Andrew Leach <[email protected]> wrote:
> On Dec 18, 10:02 am, Dan <[email protected]> wrote:
>
>
>
> > each subdomain displaying a page (basically same page for all
> > subdomains) on it that dynamically adjusts the google map location for
> > the subdomain name (town name).
>
> Are you saying that each url serves the same page (say
> master.domain.com/map.htm) and you need that page to determine which
> subdomain is used? Or does "basically the same page" mean that each
> subdomain has its OWN page which is practically the same as all the
> others, just with a different town coded into it?
>
> I guess it's the former. The latter is trivial.
>
> > Is this doable ?
>
> As Marcelo says, "Anything is possible". Some things are less possible
> than others.
>
> This one is straightforward.
> If the subdomain is entirely arbitrary (so you haven't pre-defined
> anything) and the user can use ANY town name there, then you need to
> use the URL to determine the town. 
> Seehttp://www.elated.com/articles/using-javascripts-location-object-to-w...
> and then use split() to get the server part of the URL. Geocode the
> town and centre the map accordingly. Note that some towns may get the
> wrong result: cambridge.domain.com is one where the geocoder might
> choose the wrong one to resolve.
>
> If it's not arbitrary and you know in advance which towns are
> available, then geocode your alternatives beforehand. When you use
> split() to get the server part of the URL, instead of geocoding it,
> look it up in your list and centre the map accordingly.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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