Windows

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • HTML::GoogleMaps or Other Way to show multiple addresses on amap

    6 answers - 742 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Message
    From: Suresh Govindachar
    I could not even get started with HTML::GoogleMaps and
    geocoder.us since the " Example" pop-up an error
    dialog box about internet explorer not being able to open
    the internet site.
    I got it to open up and work just great with Mozilla Firefox
    copy the link into your Firefox browser, and it works just fine
    http://www.cs.wisc.edu/~nmueller/fsbo_open_houses.pl
    If you aren't already using Firefox, first ask yourself this
    question: "why am I not already using Firefox?", and then
    go straight away to their website and install it.
    Perl-Win32-Users mailing list
    Perl-Win32-Users (AT) listserv (DOT) ActiveState.com
    To unsubscribe:
  • No.1 | | 1341 bytes | |

    | robert pointed out on 30 Jul 2005 19:25:39 -0700 that,
    | unlike Internet Explorer, the Mozilla Firefox browser
    | can display the following link without errors
    | http://www.cs.wisc.edu/~nmueller/fsbo_open_houses.pl

    However, that doesn't answer the original question
    sent on 30 Jul 2005 15:20:55 +0000:

    I would like to show multiple addresses on a map -- from a "user
    PC" (rather than from a "web-server"). I am hoping to have a perl
    script read in a list of addresses and generate a html page. All
    the input addresses would be within about 20 miles of each other;
    and each address in the list would have a html link associated
    with it. Viewing the html page generated by the perl script in a
    browser should show a map with markers for each address in the
    list. Clicking on the marker should open a new browser for the
    html link associated with that address.

    Can the preceding be done? Any suggestions?

    Incidentally, looking at www.cs.wisc.edu/~nmueller/fsbo_open_houses
    (note no .pl at the end) displays code which seems to print to the
    browser the way a cgi script would. So I gather HTML::GoogleMaps is
    meant to be used in a cgi script.

    Perl-Win32-Users mailing list
    Perl-Win32-Users (AT) listserv (DOT) ActiveState.com
    To unsubscribe:
  • No.2 | | 2057 bytes | |

    Suresh Govindachar sent on 31 Jul 2005 04:17:37 +0000:

    robert pointed out on 30 Jul 2005 19:25:39 -0700 that,
    unlike Internet Explorer, the Mozilla Firefox browser
    can display the following link without errors
    http://www.cs.wisc.edu/~nmueller/fsbo_open_houses.pl

    However, that doesn't answer the original question
    sent on 30 Jul 2005 15:20:55 +0000:

    >I would like to show multiple addresses on a map -- from a "user
    >PC" (rather than from a "web-server"). I am hoping to have a perl
    >script read in a list of addresses and generate a html page. All
    >the input addresses would be within about 20 miles of each other;
    >and each address in the list would have a html link associated
    >with it. Viewing the html page generated by the perl script in a
    >browser should show a map with markers for each address in the
    >list. Clicking on the marker should open a new browser for the
    >html link associated with that address.
    >
    >Can the preceding be done? Any suggestions?


    Incidentally, looking at www.cs.wisc.edu/~nmueller/fsbo_open_houses
    (note no .pl at the end) displays code which seems to print to the
    browser the way a cgi script would. So I gather HTML::GoogleMaps is
    meant to be used in a cgi script.

    Actually, the fact that that script prints to a browser as a cgi
    script would can be overcome by having a corresponding .pl script
    print to a file and then opening the file in a browser. The actual
    restriction to a web-server is likely to come from HTTP::GoogleMaps'
    use of the "key" parameter -- the "key" is provided by Google to
    people who submit the web-server they would like to use the key
    from. So I suppose Google validates the key sent in with
    each request with the location from where the request is coming
    from before responding to the request.

    Perl-Win32-Users mailing list
    Perl-Win32-Users (AT) listserv (DOT) ActiveState.com
    To unsubscribe:
  • No.3 | | 1247 bytes | |

    answer to the question I asked earlier:

    I would like to show multiple addresses on a map -- from
    a "user PC" (rather than from a "web-server"). I am
    hoping to have a perl script read in a list of addresses
    and generate a html page. All the input addresses would
    be within about 20 miles of each other; and each address
    in the list would have a html link associated with it.
    Viewing the html page generated by the perl script in a
    browser should show a map with markers for each address
    in the list. Clicking on the marker should open a new
    browser for the html link associated with that address.

    Can the preceding be done? Any suggestions?

    is WebServer::GoogleMaps.

    To install on Windows, just end up with the file
    <path
    Then change line 57 in GoogleMaps.pm from
    $self->{gm_version} ||= ".1";
    to
    $self->{gm_version} ||= ".3";
    (Preceding modification is from a post to CPAN::Forum
    by Michael Burns on Sat Jun 18 20:38:18 2005.)
    Then run the two main examples and look at the resulting
    images mymap.png and goodeats.png.

    Perl-Win32-Users mailing list
    Perl-Win32-Users (AT) listserv (DOT) ActiveState.com
    To unsubscribe:
  • No.4 | | 1500 bytes | |

    Suresh Govindachar wrote:

    answer to the question I asked earlier:

    I would like to show multiple addresses on a map -- from
    a "user PC" (rather than from a "web-server"). I am

    Why not a webserver on your local PC ? You can easily install
    Apache on your PC from Apache.org.

    hoping to have a perl script read in a list of addresses
    and generate a html page. All the input addresses would
    be within about 20 miles of each other; and each address
    in the list would have a html link associated with it.
    Viewing the html page generated by the perl script in a
    browser should show a map with markers for each address
    in the list. Clicking on the marker should open a new
    browser for the html link associated with that address.

    Can the preceding be done? Any suggestions?

    is WebServer::GoogleMaps.

    To install on Windows, just end up with the file
    <path
    Then change line 57 in GoogleMaps.pm from
    $self->{gm_version} ||= ".1";
    to
    $self->{gm_version} ||= ".3";
    (Preceding modification is from a post to CPAN::Forum
    by Michael Burns on Sat Jun 18 20:38:18 2005.)
    Then run the two main examples and look at the resulting
    images mymap.png and goodeats.png.

    I would consider using HTML::GoogleMaps instead and bring up the
    Google map interactive so you can pan and zoom direct from the
    Google site. You can get a free key for your machine (I got one
    for 127.0.0.1 and used that on my PC).
  • No.5 | | 2251 bytes | |

    $Bill Luebkert Sent on 04 Aug 2005 07:36:35 -0700:

    Suresh Govindachar wrote:

    >answer to the question I asked earlier:
    >
    >I would like to show multiple addresses on a map -- from
    >a "user PC" (rather than from a "web-server"). I am


    Why not a webserver on your local PC ? You can easily install
    Apache on your PC from Apache.org.

    Thanks for the suggestion and mentioning (below) your experience
    using GoogleMaps with it.

    I suspect that one can also write a perl script that acts as a
    simple HTTP server and works with GoogleMaps -- but I don't know
    where to start for coding and for seeing examples of such scripts.
    I would like to explore this before getting into Apache.
    Any suggestions?

    >hoping to have a perl script read in a list of addresses
    >and generate a html page. All the input addresses would
    >be within about 20 miles of each other; and each address
    >in the list would have a html link associated with it.
    >Viewing the html page generated by the perl script in a
    >browser should show a map with markers for each address
    >in the list. Clicking on the marker should open a new
    >browser for the html link associated with that address.
    >
    >Can the preceding be done? Any suggestions?
    >
    >is WebServer::GoogleMaps.
    >
    >To install on Windows, just end up with the file
    ><path
    >Then change line 57 in GoogleMaps.pm from
    >$self->{gm_version} ||= ".1";
    >to
    >$self->{gm_version} ||= ".3";
    >(Preceding modification is from a post to CPAN::Forum
    >by Michael Burns on Sat Jun 18 20:38:18 2005.)
    >Then run the two main examples and look at the resulting
    >images mymap.png and goodeats.png.


    I would consider using HTML::GoogleMaps instead and bring up the
    Google map interactive so you can pan and zoom direct from the
    Google site. You can get a free key for your machine (I got one
    for 127.0.0.1 and used that on my PC).

    Thanks,

    Perl-Win32-Users mailing list
    Perl-Win32-Users (AT) listserv (DOT) ActiveState.com
    To unsubscribe:
  • No.6 | | 2157 bytes | |

    Suresh Govindachar wrote:

    Thanks for the suggestion and mentioning (below) your experience
    using GoogleMaps with it.

    I suspect that one can also write a perl script that acts as a
    simple HTTP server and works with GoogleMaps -- but I don't know
    where to start for coding and for seeing examples of such scripts.
    I would like to explore this before getting into Apache.
    Any suggestions?

    Why not just do it with Javascript ? If you have a webserver, you can
    just code it in Javascript (that's all HTML::GoogleMaps does is change
    your code to Javascript). Here's a page that will start you off near
    my house (I shifted it off a bit) and let you move wherever you want :

    <!DCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">

    <HTML xmlns="http://www.w3.org/1999/xhtml"
    xmlns:v="urn:schemas-microsoft-com:vml">

    <HEAD>
    <script <KEY-GES-HEREtype=text/javascript></script>
    </HEAD>

    <BDY>

    <div id=map style="width: 900px; height: 600px"></div>
    <script type=text/javascript>
    //<![CDATA[
    //if (GBrowserIsCompatible()) {

    var map = new GMap(document.getElementById("map"));
    map.centerAndZoom(new GPoint(-118.709012, 34.282444), 0);
    map.setMapType(G_HYBRID_TYPE);
    map.addControl(new GSmallMapControl());
    map.addControl(new GMapTypeControl());
    var marker_1 = new GMarker(new GPoint(-118.709812, 34.284244));
    (marker_1);
    var point = new GPoint (-118.709812, 34.284244);
    var marker1 = new GMarker (point);
    // Show this marker's index in the info window when it is clicked
    //var html = "My House - ";
    //GEvent.addListener (marker1, "click", function (overlay, pos) {
    // marker1.openInfoWindowHtml(html + pos.x + ", " + pos.y);
    //});
    (marker1);

    //}
    //]]>
    </script>

    </BDY>

    </HTML>

    You have to get a key from Google
    I just used 127.0.0.1 for my IP address.

    The addListener part isn't working yet - just started playing with it (and
    Javascript).

Re: HTML::GoogleMaps or Other Way to show multiple addresses on amap


max 4000 letters.
Your nickname that display:
In order to stop the spam: 4 + 3 =
QUESTION ON "Windows"

EMSDN.COM