<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
That looks perfect!&nbsp; Thanks for that tip.<BR>
&nbsp;<BR>
David<BR><BR>&gt; Date: Mon, 7 Jan 2008 07:42:48 +0100<BR>&gt; From: penyaskito@gmail.com<BR>&gt; To: d.pru@hotmail.com<BR>&gt; Subject: Re: [OpenLayers-Users] Selecting a country<BR>&gt; CC: users@openlayers.org<BR>&gt; <BR>&gt; You should use the webservices at http://www.geonames.org/export<BR>&gt; <BR>&gt; As example, I live here :-)<BR>&gt; http://ws.geonames.org/findNearbyPlaceNameJSON?lat=37.867&amp;lng=-5.6<BR>&gt; <BR>&gt; You can make great things using this and an AJAX request.<BR>&gt; Hope this helps.<BR>&gt; <BR>&gt; On Jan 7, 2008 7:05 AM, David Pruitt &lt;d.pru@hotmail.com&gt; wrote:<BR>&gt; &gt;<BR>&gt; &gt; Well, there are a few reasons why using MapServer is out of the question.<BR>&gt; &gt;<BR>&gt; &gt; 1. I am running my mapping application on some server space that I have on<BR>&gt; &gt; the computer science servers here on campus. Although I am granted server<BR>&gt; &gt; space, I obviously have no ability to change the settings to Apache or put<BR>&gt; &gt; MapServer into the cgi-bin of Apache. Therefore, although I can run PHP<BR>&gt; &gt; scripts (which I do), running something like MapServer is out of the<BR>&gt; &gt; question.<BR>&gt; &gt;<BR>&gt; &gt; 2. I am running Apache on my personal machine....and so of course I could<BR>&gt; &gt; install MapServer on here, but my personal machine is not the "production<BR>&gt; &gt; environment"...it is simply the testing environment. The production<BR>&gt; &gt; environment is my server space on the CS servers - and if I can't run<BR>&gt; &gt; MapServer on those servers, there is no point running it on my test server<BR>&gt; &gt; (my personal computer).<BR>&gt; &gt;<BR>&gt; &gt; 3. Even if I did have access to a production server where I could configure<BR>&gt; &gt; Apache how I wanted it to be - I am completely unfamiliar with MapServer and<BR>&gt; &gt; WMS requests - although I am very familiar with HTTP requests and networking<BR>&gt; &gt; in general. WMS is simply a protocol I don't know. In addition, I don't<BR>&gt; &gt; know how to create a map that would work with MapServer.<BR>&gt; &gt;<BR>&gt; &gt; Consequently:<BR>&gt; &gt;<BR>&gt; &gt; I am currently using the free map available at:<BR>&gt; &gt;<BR>&gt; &gt; http://labs.metacarta.com/wms/vmap0?<BR>&gt; &gt;<BR>&gt; &gt; Which is also used in many of the OpenLayers demos. I am thinking, however,<BR>&gt; &gt; of using Google Maps possibly, but I am not sure yet.<BR>&gt; &gt;<BR>&gt; &gt; So this is my dilemma: Under these circumstances, how can I recognize which<BR>&gt; &gt; country a user has clicked on the map?<BR>&gt; &gt;<BR>&gt; &gt; Several months ago at work I made a simple mapping application in Flash (at<BR>&gt; &gt; which time I didn't even know OpenLayers or MapServer existed). For that<BR>&gt; &gt; mapping application we simply overlayed an image of each country on top of<BR>&gt; &gt; itself on the world map, and then the overlayed image acted as a button -<BR>&gt; &gt; thus making it quite simple to tell which country had been clicked. I was<BR>&gt; &gt; hoping to do something similar with OpenLayers in this mapping application<BR>&gt; &gt; that I am currently building, but using the "Features" in OpenLayers to<BR>&gt; &gt; create polygons that I could overlay over each country - and essentially<BR>&gt; &gt; have each polygon act as a button so I could tell which country had been<BR>&gt; &gt; clicked. I noticed however, that if I held my mouse button down on one of<BR>&gt; &gt; these polygons, I could no longer pan around the map...which is definitely a<BR>&gt; &gt; problem.<BR>&gt; &gt;<BR>&gt; &gt; How does the example map at http://world.freemap.in/ accomplish this task?<BR>&gt; &gt; I looked at the code, and although I am new to OpenLayers and this whole WMS<BR>&gt; &gt; thing...it seems like it is making some WMS requests to a MapServer server.<BR>&gt; &gt;<BR>&gt; &gt; Thanks for any help.<BR>&gt; &gt;<BR>&gt; &gt; David<BR>&gt; &gt;<BR>&gt; &gt; &gt; Date: Mon, 7 Jan 2008 06:42:27 +0100<BR>&gt; &gt; &gt; From: eric.c2c@gmail.com<BR>&gt; &gt; &gt; To: d.pru@hotmail.com<BR>&gt; &gt; &gt; Subject: Re: [OpenLayers-Users] Selecting a country<BR>&gt; &gt; &gt; CC: users@openlayers.org<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; On Jan 7, 2008 3:22 AM, David Pruitt &lt;d.pru@hotmail.com&gt; wrote:<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; Let's say I have a user who is looking at my map, and clicks on a<BR>&gt; &gt; specific<BR>&gt; &gt; &gt; &gt; country. What is the best way to recognize which country he clicked on?<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; I thought using features would be good, but a user can't pan around the<BR>&gt; &gt; map<BR>&gt; &gt; &gt; &gt; if he/she is holding down the mouse button on a feature.<BR>&gt; &gt; &gt; &gt;<BR>&gt; &gt; &gt; &gt; Is there any way to accomplish this WITHOUT using MapServer or GeoServer<BR>&gt; &gt; or<BR>&gt; &gt; &gt; &gt; something of that sort?<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; Hello<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; If the countries aren't rendered by the browser (and therefore you<BR>&gt; &gt; &gt; don't have information about these countries on the client side) then<BR>&gt; &gt; &gt; you need to send a request to some service to get information on the<BR>&gt; &gt; &gt; clicked country. Have you had some other solution in mind?<BR>&gt; &gt; &gt;<BR>&gt; &gt; &gt; --<BR>&gt; &gt; &gt; Eric<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; ________________________________<BR>&gt; &gt; Make distant family not so distant with Windows Vista(R) + Windows Live™.<BR>&gt; &gt; Start now!<BR>&gt; &gt; _______________________________________________<BR>&gt; &gt; Users mailing list<BR>&gt; &gt; Users@openlayers.org<BR>&gt; &gt; http://openlayers.org/mailman/listinfo/users<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; -- <BR>&gt; Regards,<BR>&gt; <BR>&gt; Christian López Espínola<BR><BR><br /><hr />Make distant family not so distant with Windows Vista® + Windows Live™. <a href='http://www.microsoft.com/windows/digitallife/keepintouch.mspx?ocid=TXT_TAGLM_CPC_VideoChat_distantfamily_012008' target='_new'>Start now!</a></body>
</html>