RE: open source zip code geographical drill down

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> If you've got several more hours to spare, providing a Google map as
> an alternative is also quite do-able, though not as quick-n-easy as
> you have to walk the XML output in Javascript "by hand" instead of
> letting a built-in function do it for you.
> 
> Then you just need to spend a day or two figuring out how to get the
> dang maps to zoom in and focus on the zip code point you want.  That
> has a couple gotchas I've just stumbled through myself, but can't
> really express yet in short form...

I do this on a site I'm developing, and the shortcut I took was simply to
plug in the address in the URL and launch it into a new JS window.open()
using the features attributes. Popup blockers don't prevent that and it
looks very clean. Plus it's trivial to do and gives you all the fancy Google
maps zooming, directions and such...

http://maps.google.com/maps?f=d&hl=en&saddr=1234+Some+St,+SomeTown,+WA+98765
&daddr=1000+Another+Pl+SomeTown+WA&ie=UTF8&z=11&om=1

http://www.webreference.com/js/tutorial1/features.html


DÆVID  

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux