2 Questions, check location based on Ip and drawing a line on the map

Jul 17, 2009 at 4:50 AM

1. I do understand that google maps api do provide a feature that resolves your IP address and finds out your location.

Does Gmap has this feature? what steps do i need to do to integrate this feature?

 

2. Is it possible to draw an arbiturary line on the screen?

I know you can set 2 points and draw a route, but i can't find a method to draw a arbituary line on the screen even though you obviously need that to draw a route

Coordinator
Jul 19, 2009 at 9:20 PM
  1. i shall add thi function soon if it's really posible
  2. yes you use route with two points, if you want custom line, overide protected virtual void DrawRoutes(Graphics g) in GMapOverlay or if you use WPF: public Path CreateRoutePath(List<System.Windows.Point> localPath) in GMapControl
Coordinator
Jul 20, 2009 at 6:36 PM

you can use http://www.geobytes.com/IpLocator.htm?Getlocation

Jul 21, 2009 at 7:45 PM

Thanks, i'll try that out