sometimes?
↧
New Post: 401 server error
↧
New Post: 401 server error
Yes ,it was perfectly working but now time to time the map control displays tiles indicating a 401 server error "not authorized"
I was wondering if I should create a kind of account maybe ?
It was doing the same with Google maps provider that's why I changed for open street map...but the problem is the same.
I use the control in a winform application located at the office behind à firewall. Could it be the problem ?
Thanks for your help,
Paul
I was wondering if I should create a kind of account maybe ?
It was doing the same with Google maps provider that's why I changed for open street map...but the problem is the same.
I use the control in a winform application located at the office behind à firewall. Could it be the problem ?
Thanks for your help,
Paul
↧
↧
New Post: GMapControl Stealing Focus
I have some text boxes on a panel just above a GMapControl.
If I click on a textbox to enter some data and move the mouse pointer out of the way and it ends up over the map, the map steals the focus and I am not able to enter data in the textbox.
Any idea how to stop this?
Thanks
If I click on a textbox to enter some data and move the mouse pointer out of the way and it ends up over the map, the map steals the focus and I am not able to enter data in the textbox.
Any idea how to stop this?
Thanks
↧
New Post: GMapControl Stealing Focus
map.DisableFocusOnMouseEnter = true;
↧
New Post: New Year
hello radioman,
I wish you a happy new Year!
Thanks for that fantastic project...
I wish you a happy new Year!
Thanks for that fantastic project...
↧
↧
New Post: GMapControl Stealing Focus
Thank you very much - That worked
↧
New Post: Change zoom increments
I discovered something interesting. Apparently a numericeUpDown control also responds to the mouse wheel when it has the focus.
So I covered the above numericUpDown1 control with a panel to hide it (making it not visible disables it and will not work).
Then I added a checkbox "Check for Fine Tuning"
When the checkbox is checked I set the focus to the numericUpDown1 control with numericUpDown1.Focus(); and the mouse wheel will now trigger numericUpDown1_ValueChanged and the mouse wheel will change the zoom by the very small amount of .006.
When the checkbox is unchecked I set the focus to anything other than numericUpDown1 and the mouse wheel behaves normally for zooming.
Also, you may have noticed in the above code that the zoom is incremented / decremented by .006. For some reason if you set it to .005 zooming will hang.
So I covered the above numericUpDown1 control with a panel to hide it (making it not visible disables it and will not work).
Then I added a checkbox "Check for Fine Tuning"
When the checkbox is checked I set the focus to the numericUpDown1 control with numericUpDown1.Focus(); and the mouse wheel will now trigger numericUpDown1_ValueChanged and the mouse wheel will change the zoom by the very small amount of .006.
When the checkbox is unchecked I set the focus to anything other than numericUpDown1 and the mouse wheel behaves normally for zooming.
Also, you may have noticed in the above code that the zoom is incremented / decremented by .006. For some reason if you set it to .005 zooming will hang.
↧
New Post: Form Close Delayed
I downloaded the latest release less than two weeks ago.
When running in debug and I close the program and most of the time it takes several seconds for the program to close.
I have to press Shift+F5 to get back to Visual Studio.
This is just an annoyance and nothing more. But it would be nice if I knew how to stop it as it's been going on for years.
Thanks
When running in debug and I close the program and most of the time it takes several seconds for the program to close.
I have to press Shift+F5 to get back to Visual Studio.
This is just an annoyance and nothing more. But it would be nice if I knew how to stop it as it's been going on for years.
Thanks
↧
New Post: New Year
year++; // thanks ;}
↧
↧
Created Unassigned: Urgent help required to move or drag marker [16136]
Hello,
I am using GMap.Net.Core and GMap.Net.WindowsForms API to show map and put multiple markers over it.
Now the issue is If I have put multiple markers over the map and I want to move one of the marker to some other location, how can I achieve this?
I went through with several articles and forums but it did not worked for me yet.
I am adding marker as below:
gMapOverlay.Markers.Add(marker);
//marker.ToolTipMode = MarkerTooltipMode.Always;
marker.ToolTip = new GMapRoundedToolTip(marker);
marker.ToolTipText = "Coordinates: (" + Convert.ToString(gMapControl.FromLocalToLatLng(e.X, e.Y).Lat) + "," + Convert.ToString(gMapControl.FromLocalToLatLng(e.X, e.Y).Lng) + ")";
lstPoints.Add(new PointLatLng(gMapControl.FromLocalToLatLng(e.X, e.Y).Lat, gMapControl.FromLocalToLatLng(e.X, e.Y).Lng));
GMap.NET.WindowsForms.GMapRoute route = new GMapRoute(lstPoints, "Route");
gMapOverlay.Routes.Add(route);
gMapControl.Overlays.Add(gMapOverlay);
How to move marker to some other location over map?
Please help.
I am using GMap.Net.Core and GMap.Net.WindowsForms API to show map and put multiple markers over it.
Now the issue is If I have put multiple markers over the map and I want to move one of the marker to some other location, how can I achieve this?
I went through with several articles and forums but it did not worked for me yet.
I am adding marker as below:
gMapOverlay.Markers.Add(marker);
//marker.ToolTipMode = MarkerTooltipMode.Always;
marker.ToolTip = new GMapRoundedToolTip(marker);
marker.ToolTipText = "Coordinates: (" + Convert.ToString(gMapControl.FromLocalToLatLng(e.X, e.Y).Lat) + "," + Convert.ToString(gMapControl.FromLocalToLatLng(e.X, e.Y).Lng) + ")";
lstPoints.Add(new PointLatLng(gMapControl.FromLocalToLatLng(e.X, e.Y).Lat, gMapControl.FromLocalToLatLng(e.X, e.Y).Lng));
GMap.NET.WindowsForms.GMapRoute route = new GMapRoute(lstPoints, "Route");
gMapOverlay.Routes.Add(route);
gMapControl.Overlays.Add(gMapOverlay);
How to move marker to some other location over map?
Please help.
↧
New Post: 401 server error
Hello,
Would you have any advice to avoid this problem ?
Thanks,
Paul
Would you have any advice to avoid this problem ?
Thanks,
Paul
↧
New Post: THE END OF GOOGLE MAPS ENGINE CAUSES MASS CONFUSION
I doubt it, but will this affect us at all?
http://blog.mangomap.com/post/108790608911/the-end-of-google-maps-engine-causes-mass
Thanks
http://blog.mangomap.com/post/108790608911/the-end-of-google-maps-engine-causes-mass
Thanks
↧
New Post: map is above all ui elements
Instead of using the regular web broweser to see google maps, I chosen GMap.NET.
but I got the same bug.
when I open other UI elements that overlaps the map' instead of being under' the map displaying over the other UI elements.
hope for your quick response,
Yonatan.
but I got the same bug.
when I open other UI elements that overlaps the map' instead of being under' the map displaying over the other UI elements.
hope for your quick response,
Yonatan.
↧
↧
New Post: How can i capture the form srcreen
i want to capture inside form screen and then pick this picture in new Form. how can i do
↧
New Post: How to Pre Cache all levels of zoom for whole world map or a specific Country.
I have this same question but in more general terms. If I use the Google maps app on my android phone and have it make a region available for offline usage, it pulls the whole bundle down in under a minute and then I am able to zoom to any level without being online. I assume what is happening here is that it is pulling down the raw map data, not the tile image data, and then rendering the tiles as needed on the local device? I say this because there are millions of tiles that would have to be downloaded in order to get all zoom levels for an entire city. The OSM servers prohibit this and even using a paid commercial server it seems like it would be impractical (in terms of time required at least) to download all of the tiles exhaustively.
So if my assumptions are correct, is there any way to have GMap.NET get the raw map data and do the rendering locally? If not, what do you suggest? Perhaps just not supporting the highest zoom levels for offline?
EDIT: I just read that google maps don't use image tiles any more but rather use vector graphics which makes them self-scaling and require far less space. How does this work with GMap.NET? Are the vectors being converted to PNGs locally or does google still have a legacy API that provides bitmap tiles?
So if my assumptions are correct, is there any way to have GMap.NET get the raw map data and do the rendering locally? If not, what do you suggest? Perhaps just not supporting the highest zoom levels for offline?
EDIT: I just read that google maps don't use image tiles any more but rather use vector graphics which makes them self-scaling and require far less space. How does this work with GMap.NET? Are the vectors being converted to PNGs locally or does google still have a legacy API that provides bitmap tiles?
↧
New Post: Slow Markers
Hi I have 10,000 - 15,000 markers showing at different times, my problem is the speed when zooming or panning. In a different discussion you mention checking out the traffic demos. I couldnt find them could you tell me where to look. Also if I use smaller markers do you think that would help with the speed?
↧
New Post: Winforms FromLocalToLatLng is Not Accurate
I have a set of gps latitude and longitudes in a database and use:
I'm also using FromLocalToLatLng to get the map coordinates to display on a Panel on gMapControl1_MouseMove( ).
But looking at the database gps data I can tell the FromLocalToLatLng latitude and longitudes coordinates are incorrect.
I found this: http://greatmaps.codeplex.com/discussions/623565 but I cannot get it to work with Winforms.
Any C# Winforms help with and example much appreciated.
Thank you.
MapRoute route = GMap.NET.MapProviders.OpenStreetMapProvider.Instance.GetRoute(start, end, false, false, 15);
to map a complex route, and it maps perfectly down to the correct traffic lane.I'm also using FromLocalToLatLng to get the map coordinates to display on a Panel on gMapControl1_MouseMove( ).
But looking at the database gps data I can tell the FromLocalToLatLng latitude and longitudes coordinates are incorrect.
I found this: http://greatmaps.codeplex.com/discussions/623565 but I cannot get it to work with Winforms.
Any C# Winforms help with and example much appreciated.
Thank you.
↧
↧
New Post: Winforms FromLocalToLatLng is Not Accurate
are you sure? ;} check the demo, works excellent
↧
New Post: Winforms FromLocalToLatLng is Not Accurate
No, I thought I was sure it was broken but it does work perfect. Sorry
Here in the US there is a company that tracks trucks and I used their gps data thinking it was more detailed.
When I placed 'small white' markers at every gps coordinate they provide they match perfectly.
![Image]()
BTW, I used this control years ago and just started using it again for another project. Back then I contributed $ and intend to send you more. All of us should reward you for your hard work. Thank you!
Here in the US there is a company that tracks trucks and I used their gps data thinking it was more detailed.
When I placed 'small white' markers at every gps coordinate they provide they match perfectly.
MapRoute route = GMap.NET.MapProviders.OpenStreetMapProvider.Instance.GetRoute(start, end, false, false, 15);
MapRoute gets a little confused with so few gps coordinates but considering that, it does a good job.BTW, I used this control years ago and just started using it again for another project. Back then I contributed $ and intend to send you more. All of us should reward you for your hard work. Thank you!
↧
Commented Unassigned: Color error on adding multiple routes to an overlay [16118]
I have found a bug inside the GMaps.NET control. If you add multiple routes to an overlay, the routes are always shown with the last color given.
Example:
Route1: Color.Green
Route2: Color.Blue
Route3: Color.Yellow
Result:
All routes are yellow.
```
foreach (GefahreneTour gefahreneTour in gefahreneTouren)
{
List<PointLatLng> points = ShowLeerungen(gefahreneTour.LeerungenCollection);
//Route
GMapRoute oGMapRoute = new GMapRoute(GetTrackingRoute(gefahreneTour.TrackingCollection), string.Format("My_Route_{0}", routesOverlay.Routes.Count));
oGMapRoute.Stroke.Width = 4;
oGMapRoute.Stroke.StartCap = LineCap.Flat;
oGMapRoute.Stroke.EndCap = LineCap.ArrowAnchor;
// Farbe berechnen, mit der die Route angezeigt wird
int nMod = routesOverlay.Routes.Count % this.dColors.Count;
if (this.dColors.ContainsKey(nMod))
oGMapRoute.Stroke.Color = this.dColors[nMod];
else
oGMapRoute.Stroke.Color = this.dColors[0];
//oGMapRoute.Stroke.Color = Color.Green;
// Route dem Overlay hinzufügen
routesOverlay.Routes.Add(oGMapRoute);
// Position und Zoom berechnen
gmap.ZoomAndCenterRoute(oGMapRoute);
// Label zur Anzeige der Tour
Label oLabel = new Label();
this.gmap.Controls.Add(oLabel);
oLabel.Text = string.Format("Tour: {0}", gefahreneTour.TourBezeichnung);
oLabel.Parent = this.gmap;
oLabel.ForeColor = oGMapRoute.Stroke.Color;
oLabel.BackColor = Color.Transparent;
oLabel.Location = new Point(3, (routesOverlay.Routes.Count * 22) + 5);
oLabel.Font = new Font(oLabel.Font.FontFamily, 16, FontStyle.Bold);
}
```
Comments: Example code please.
Example:
Route1: Color.Green
Route2: Color.Blue
Route3: Color.Yellow
Result:
All routes are yellow.
```
foreach (GefahreneTour gefahreneTour in gefahreneTouren)
{
List<PointLatLng> points = ShowLeerungen(gefahreneTour.LeerungenCollection);
//Route
GMapRoute oGMapRoute = new GMapRoute(GetTrackingRoute(gefahreneTour.TrackingCollection), string.Format("My_Route_{0}", routesOverlay.Routes.Count));
oGMapRoute.Stroke.Width = 4;
oGMapRoute.Stroke.StartCap = LineCap.Flat;
oGMapRoute.Stroke.EndCap = LineCap.ArrowAnchor;
// Farbe berechnen, mit der die Route angezeigt wird
int nMod = routesOverlay.Routes.Count % this.dColors.Count;
if (this.dColors.ContainsKey(nMod))
oGMapRoute.Stroke.Color = this.dColors[nMod];
else
oGMapRoute.Stroke.Color = this.dColors[0];
//oGMapRoute.Stroke.Color = Color.Green;
// Route dem Overlay hinzufügen
routesOverlay.Routes.Add(oGMapRoute);
// Position und Zoom berechnen
gmap.ZoomAndCenterRoute(oGMapRoute);
// Label zur Anzeige der Tour
Label oLabel = new Label();
this.gmap.Controls.Add(oLabel);
oLabel.Text = string.Format("Tour: {0}", gefahreneTour.TourBezeichnung);
oLabel.Parent = this.gmap;
oLabel.ForeColor = oGMapRoute.Stroke.Color;
oLabel.BackColor = Color.Transparent;
oLabel.Location = new Point(3, (routesOverlay.Routes.Count * 22) + 5);
oLabel.Font = new Font(oLabel.Font.FontFamily, 16, FontStyle.Bold);
}
```
Comments: Example code please.
↧