↧
New Post: How to update marker position with only distance and bearing data?
↧
New Post: Drawing on the map
Xandolph (radioman);
Well, I can appreciate that comment.
I'm an old guy; when I got out of school there were no computers. Any function I can grasp and learn is a "HELLS YEAH" moment for me...I do enjoy the logic.
I'm building my list of "line ends" with:
line_end_coordinate.Add(x_start = e.X;);
line_end_coordinate.Add(y_start = e.y);
and so on...
Which is triggered by mouse (up/down) activity.
But how do I feed this into: route.Points.Add(???) ?
I do appreciate your responses, please excuse my short comings in understanding.
AW
Well, I can appreciate that comment.
I'm an old guy; when I got out of school there were no computers. Any function I can grasp and learn is a "HELLS YEAH" moment for me...I do enjoy the logic.
I'm building my list of "line ends" with:
line_end_coordinate.Add(x_start = e.X;);
line_end_coordinate.Add(y_start = e.y);
and so on...
Which is triggered by mouse (up/down) activity.
But how do I feed this into: route.Points.Add(???) ?
I do appreciate your responses, please excuse my short comings in understanding.
AW
↧
↧
New Post: Drawing on the map
well just like that, nothing advanced, if you'll figure it out by yourself, later it will be a lot easier
don't think, just do, don't try to understand every detail, there are just too many of them... well at least for me ;}
don't think, just do, don't try to understand every detail, there are just too many of them... well at least for me ;}
↧
New Post: How to update marker position with only distance and bearing data?
Thank you very much
↧
New Post: Drawing on the map
Ok, lets start over :-) First, just tell us exactly what you want to do, then we'll find a solution.
↧
↧
New Post: Drawing on the map
Xandolph;
Wow; I appreciate that.
I'm not a programmer, never had a class of any kind; and you will see this as fact (as in my previous posts).
Allow me to gather my thoughts, and I will post back tomorrow.
Thank you
AW
Wow; I appreciate that.
I'm not a programmer, never had a class of any kind; and you will see this as fact (as in my previous posts).
Allow me to gather my thoughts, and I will post back tomorrow.
Thank you
AW
↧
New Post: How to create a circle with GMapControl?
How to create a circle with GMapControl?if someone help me ,thanks a lot!
↧
New Post: How to create a circle with GMapControl?
check the demo, zoom to the city level, double click
↧
Commented Issue: WPF Smooth Zoom [16064]
GMapControl.Zoom is already double. Thanks.
Comments: Although GMapControl.Zoom is of "double" datatype, there's no Zoom level 12.5, for example. Why setting it to "close"?
Comments: Although GMapControl.Zoom is of "double" datatype, there's no Zoom level 12.5, for example. Why setting it to "close"?
↧
↧
New Post: how to get google address in specific Language
try set GMapProvider.Language
↧
Commented Issue: WPF Smooth Zoom [16064]
GMapControl.Zoom is already double. Thanks.
Comments: check map.**ScaleMode**, default setting is __Integer__ because there are some bugs for fractional mode...
Comments: check map.**ScaleMode**, default setting is __Integer__ because there are some bugs for fractional mode...
↧
Commented Issue: WPF Smooth Zoom [16064]
GMapControl.Zoom is already double. Thanks.
Comments: If "there are some bugs for fractional mode" why close this issue? :) Is there another related issue open?
Comments: If "there are some bugs for fractional mode" why close this issue? :) Is there another related issue open?
↧
New Post: Drawing on the map
Xandolph;
Well, my world just opened up! I've been under the impression that I had to convert the lat / longs to screen coordinates, and then feed them back into the Control1_Paint function to redraw the map when it was zoomed or moved...NOT SO !!! I found that I can do this:
Thanks Xandolph!
AW
Well, my world just opened up! I've been under the impression that I had to convert the lat / longs to screen coordinates, and then feed them back into the Control1_Paint function to redraw the map when it was zoomed or moved...NOT SO !!! I found that I can do this:
PointLatLng p = gMapControl1.FromLocalToLatLng(e.X, e.Y);
route.Points.Add(p);
label9.Text = Convert.ToString(p);
gMapControl1.UpdateRouteLocalPosition(route);
route.Stroke.Width = 5;
route.Stroke.Color = Color.Black;
GMapOverlay routesOverlay = new GMapOverlay(gMapControl1, "route");
routesOverlay.Routes.Add(route);
gMapControl1.ZoomAndCenterRoute(route);
gMapControl1.Overlays.Clear();
gMapControl1.Overlays.Add(routesOverlay);
My HELLS YEAH moment!Thanks Xandolph!
AW
↧
↧
New Post: Drawing on the map
That's the way to do it :-)
You don't need to draw a line by yourself.
Some more points to consider: Do you add your overlay to the map in the mouse click event handler? If so, don't! Move this code to the constructor. (You only need to add it once.)
Set the code for your route(s) in the constructor or in the form_load event as well (Stroke settings, add it to the overlay).
You just need to add the new point in the mouse click event handler.
You don't need to draw a line by yourself.
Some more points to consider: Do you add your overlay to the map in the mouse click event handler? If so, don't! Move this code to the constructor. (You only need to add it once.)
Set the code for your route(s) in the constructor or in the form_load event as well (Stroke settings, add it to the overlay).
You just need to add the new point in the mouse click event handler.
↧
New Post: Using own satellite images
Howsit Radioman,
Is it possible to use your own tiff images, rasters and vectors as layers on the map?
Is it possible to use your own tiff images, rasters and vectors as layers on the map?
↧
Commented Issue: WPF Smooth Zoom [16064]
GMapControl.Zoom is already double. Thanks.
Comments: yes
Comments: yes
↧
New Post: Using own satellite images
'sort of'..
↧
↧
New Post: Drawing on the map
Xandolph;
I very much appreciate your direction.
To create my "route", I'm using:
GMapRoute route = new GMapRoute(new List<PointLatLng>(), "Route");
My problem is that my drawn flight lines can be very much random, like lines that are drawn on paper. I'm using gMapControl1.Overlays.Add(... it makes one continuous path. I would like my drawn lines to not be connected to each other. I'm wondering if I should (or if I can) make a new route for each flight line, so that the .Add(routesOverlay) only draws the straight flight lines.
Something like:
GMapRoute route_1 = new GMapRoute(new List<PointLatLng>(), "Route");
GMapRoute route_2 = new GMapRoute(new List<PointLatLng>(), "Route");
GMapRoute route_3 = new GMapRoute(new List<PointLatLng>(), "Route");
(I could have 100 flight lines, or more).
And then, if the above could be done, can the routes be named dynamically, as on the fly?
Thanks
AW
I very much appreciate your direction.
To create my "route", I'm using:
GMapRoute route = new GMapRoute(new List<PointLatLng>(), "Route");
My problem is that my drawn flight lines can be very much random, like lines that are drawn on paper. I'm using gMapControl1.Overlays.Add(... it makes one continuous path. I would like my drawn lines to not be connected to each other. I'm wondering if I should (or if I can) make a new route for each flight line, so that the .Add(routesOverlay) only draws the straight flight lines.
Something like:
GMapRoute route_1 = new GMapRoute(new List<PointLatLng>(), "Route");
GMapRoute route_2 = new GMapRoute(new List<PointLatLng>(), "Route");
GMapRoute route_3 = new GMapRoute(new List<PointLatLng>(), "Route");
(I could have 100 flight lines, or more).
And then, if the above could be done, can the routes be named dynamically, as on the fly?
Thanks
AW
↧
New Post: Drawing on the map
Questions: Does every flight line consist only of 2 points (start/end)? Do you need to have a unique name for every route?
Think of the overlay as a kind of container for routes, markers, polygons, etc. Usually you only need one overlay, it can contain an arbitrary number of routes.
You could use an array or a list of routes (the name you pass as string does not rerally matter) to accomplish what you want.
Think of the overlay as a kind of container for routes, markers, polygons, etc. Usually you only need one overlay, it can contain an arbitrary number of routes.
You could use an array or a list of routes (the name you pass as string does not rerally matter) to accomplish what you want.
↧
New Post: Drawing on the map
Yes Sir, each flight line consists of only 2 points, start and end.
To capture the start of the line on mouseDown I do:
To capture the start of the line on mouseDown I do:
PointLatLng p = gMapControl1.FromLocalToLatLng(e.X, e.Y);
route.Points.Add(p);
And I do the same thing at the end of the line: PointLatLng p = gMapControl1.FromLocalToLatLng(e.X, e.Y);
route.Points.Add(p);
However, with more than one flight line (and there's always more than one), now when its drawn, the path is straight between the first two mouse captures, then a line is drawn from the end of the first flight line to the beginning of the second flight line.↧