[thelist] Google (or other) Maps

Jay Turley jayturley at gmail.com
Fri Oct 26 17:20:56 CDT 2012


Yes. I had a table of locations held in a database on the server.

I transported them in JSON format to the client using AJAX, read in their
latitude and longitude (x/y), and then created a Google Maps viewport of a
size sufficient to contain all of the locations.

Google Maps includes mapClick events which will let you trap the lat/long
client-side and then you can send that back to the server to be added to
the maps file (if needed).

YMMV = "Your Mileage May Vary". Old, practically agéd internet-eese. :P


On Fri, Oct 26, 2012 at 7:25 AM, Bob Meetin <bobm at dottedi.biz> wrote:

> Thx Jay,
> Meaning that you were able to do something similar to what I'm describing
> with Google Maps?  I understand that you can manually set up a map using
> the service and their plot many locations function,
> http://maps.google.com/help/**maps/getmaps/plot-multi.html<http://maps.google.com/help/maps/getmaps/plot-multi.html>.
> However, what I need to do is manage the locations automatically through a
> table on the hosting server which maintains city or country names,
> coordinates, etc. Each hotspot will include a link to a profile.  So I
> would have to write to the maps file that is maintained on the local host.
> I found this link https://developers.google.com/**
> maps/documentation/javascript/**tutorial<https://developers.google.com/maps/documentation/javascript/tutorial>.
> What is YMMV?
> Anyway, you are confirming that the X/Y coordinates are required.
> -B
> On 10/25/2012 09:05 PM, Jay Turley wrote:
>> The location depends on the precision you need.
>> I did this with lat/long to six decimal places because the client needed
>> rooftop-level precision.
>> If using town names is an acceptable level of precision, you will still
>> need to do a lookup first in order to determine the lat/long coordinates
>> for actual icon placement.
>> My information stems from experience with Google Maps API v2 and v3 so
>> YMMV.
>> -Jay
>> On Thu, Oct 25, 2012 at 11:15 AM, Bob Meetin <bobm at dottedi.biz <mailto:
>> bobm at dottedi.biz>> wrote:
>>     Maps:
>>     I have a project in hand that involves displaying a google map or
>> similar and positioning entities onto the map.  You have for instance a
>> couple thousand entries in a database with some associated location
>> information. The goal is to place these entries all on the map with some
>> associated content (name, etc) which will become viewable, eventually
>> clickable as you zoom in.
>>     In order to pinpoint the locations on the map, do you need X/Y
>> coordinates or would a simple address like "Paris, France" or "Cleveland,
>> OH, USA" be adequate? Any recommendations on the mapping program, Google or
>> other?
> --
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_**evolt/<http://evolt.org/help_support_evolt/>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !

More information about the thelist mailing list