Thanks John!

----- Original Message ----- 
From: "John Wilson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 11, 2007 8:49 AM
Subject: Re: Installing third part ActiveX controls in Delphi 2007


> Hi Rich,
>
> I came across something similar in dot net, on CodeProject. Basically it
> shows you how to translate the lat/long into google map grid
> co-ordinates, and then use those to grab the section of map that you want.
>
> Here's the link:
>
> http://www.codeproject.com/useritems/googlemap.asp
>
> It's not Delphi, but the principle applies :)
>
> Good luck with it!
>
> John.
>
> ------------------------
>
>> Date: Tue, 10 Apr 2007 10:40:42 -0800
>> From: "Rich Cooper" <[EMAIL PROTECTED]>
>> Subject: Re: Installing third part ActiveX controls in Delphi 2007
>>
>> I'm using D7 on XP HE and I am trying to write a program
>> that shows IP addresses (already done) so that I can click
>> on them (already done) and display a map of the area (that's
>> what still needs to be done) where the IP is located.
>>
>> The present build is getting the textual <lat,long> specification of
>> an IP address based on searching a table of IPs.  When I
>> go to <Google | Maps>, I can manually paste the <lat,long> into
>> the box and get a nice map from Google, but not in just one
>> window.  Instead, I get a bunch of extraneous material at the
>> top and left, and just the map in the bottom right of the window.
>> I've tried looking at the HTML text (using view | source) but I don't
>> get a clear idea of how to extract just the map window to display
>> in my application.
>>
>> For example, here is an IP address and its lat long:
>>
>> 194.117.22.137     38.723,  -9.133
>>
>> and when I key or paste that lat long into Google Maps, I get
>> a nice image of a town in Portugal near Lisbon.  Ideally, I would
>> like to embed a TWebBrowser in my application, and steer it
>> to the map, but the present Google response is
>>
>> http://maps.google.com/maps?ie=UTF-8&oe=UTF-8&hl=en&tab=wl&q=
>>
>> which doesn't have the lat, long physically embedded in the URL.
>> Also, the portion of the image that I want to embed in my app has
>> a map on the bottom right of the browser window, and extraneous
>> material on the top and left sides.
>>
>> I've looked for places in the source that describe the window of
>> interest, but I haven't found anything that seems to do the trick of
>> capturing just the map info.  It wouldn't hurt to also capture the
>> pan and zoom buttons and the scale, which are on the same image
>> as the map, but the HTML might as well be in greek.
>>
>> I also tried Mapquest, but I can't get <lat,long> maps from that one.
>>
>> Does anyone have any ideas that might lead to capturing the map
>> of an arbitrary <lat, long> specification in a window by itself?
>>
>> Thanks,
>> Rich
>
> _______________________________________________
> Delphi mailing list -> [EMAIL PROTECTED]
> http://www.elists.org/mailman/listinfo/delphi 

_______________________________________________
Delphi mailing list -> [EMAIL PROTECTED]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to