gmap.net

Zoom and Pan in GMap.net

馋奶兔 提交于 2019-12-04 14:42:05
I'm trying to make GMap.Net control multitouch enabled, using WPF build-in events but i wasn't successful. I found a series of articles about multitouch like this and this one. In all of them, ManipulationContainer is a canvas and movable controls placed on it, but in GMap issue ManipulationContainer is GMapControl and there is no control over it. how can i use e.ManipulationDelta data to Zoom and Move? The GMapControl has a Zoom property which by increase or decreasing it, you can zoom in or zoom out. A quick look at the code shows that the GMapControl is an ItemsContainer . You should be

Gmap.Net Marker at incorrect position but when the map is zoomed the marker goes to right place

≡放荡痞女 提交于 2019-12-01 16:43:30
问题 I've a Windows Forms Application with a Gmap.Net controller, what I want to do is to add markers based on an outside sources that provides locations. The thing is that when I add a marker is initially drawn in an incorrect location, but after I zoom out it goes to the right place. So this is what I got so far: My Map controller is declare to be located at Panama, Panama. private void button2_Click(object sender, EventArgs e) { //Layer count is just a variable to add new OverLays with

Location information where mouse click on the map GMap.net

*爱你&永不变心* 提交于 2019-12-01 04:50:12
I'm working on Win Forms application along with GMap.net(a library that enables us to use Google Maps in Win Forms Application). Coming straight to the point, I be able to get the coordinates i.e (Latitude and Longitude) where my mouse click (left click). private void gm1_MouseDoubleClick(object sender, MouseEventArgs e) { if (e.Button == System.Windows.Forms.MouseButtons.Left) { double lat = gm1.FromLocalToLatLng(e.X, e.Y).Lat; double lng = gm1.FromLocalToLatLng(e.X, e.Y).Lng; } } I did not find a way to get the location of that place i.e Country Name, city name etc. I've searched the forum

How to draw circle on the MAP using GMAP.NET in C#

橙三吉。 提交于 2019-11-29 16:05:10
I am using GMAP.NET in c#. I am able to display the map on the form, now i am trying to draw a CIRCLE mouse by clicking on a certian point, keeping the left mouse button and dragging the mouse upto specific place. Once the circle is drawn I want to get its radius in miles from the center point which I am sure GMAP is capable of doing it. I am using Opentstreet maps. I am just unable to achive this functionly, anybody who has played with GMAP control kindly share your experience with some code which will work. Thanks elasticrash The only way that I am aware of that can achieve such a result is

How to draw circle on the MAP using GMAP.NET in C#

拟墨画扇 提交于 2019-11-28 10:34:56
问题 I am using GMAP.NET in c#. I am able to display the map on the form, now i am trying to draw a CIRCLE mouse by clicking on a certian point, keeping the left mouse button and dragging the mouse upto specific place. Once the circle is drawn I want to get its radius in miles from the center point which I am sure GMAP is capable of doing it. I am using Opentstreet maps. I am just unable to achive this functionly, anybody who has played with GMAP control kindly share your experience with some code