↧
New Post: {"Object reference not set to an instance of an object."}
↧
New Post: OpenStreetMap placemark
string url = ...
string fileName = ...
WebClient wb = new WebClient();
wb.Headers.Add("User-Agent: Other"); //that is the simple line!
wb.DownloadFile(url, fileName);
string fileName = ...
WebClient wb = new WebClient();
wb.Headers.Add("User-Agent: Other"); //that is the simple line!
wb.DownloadFile(url, fileName);
↧
↧
New Post: PostGis and new release
Hi,
I am impressed with this control. Congratulate!.
My questions are:
1) Is it possible to add a PostGIS layer (using Geoserver?)
2) Runs propertly on Windows 2012?
3) What about the future? Will be new releases or is discontinued?
I think these are important questions to decide for any component.
Thanks a lot!
Alex
I am impressed with this control. Congratulate!.
My questions are:
1) Is it possible to add a PostGIS layer (using Geoserver?)
2) Runs propertly on Windows 2012?
3) What about the future? Will be new releases or is discontinued?
I think these are important questions to decide for any component.
Thanks a lot!
Alex
↧
Created Unassigned: Three lines of code to fix Credentials for Nearmap [16102]
Hi,
Again, thanks for providing a gread library.
I just want to let you know that I got credentials to work with Nearmap by adding three lines of code described in this post:
http://blog.kowalczyk.info/article/at3/Forcing-basic-http-authentication-for-HttpWebReq.html
regards
Again, thanks for providing a gread library.
I just want to let you know that I got credentials to work with Nearmap by adding three lines of code described in this post:
http://blog.kowalczyk.info/article/at3/Forcing-basic-http-authentication-for-HttpWebReq.html
regards
↧
New Post: How to use on android
Hi every body.
I used GMap.net with C# and it works perfect. Now i need to use it in an android application. I found the apk mentioned above but I could not find the source of an example how to use this library for android application. Can you put the source of the example for download?
thanks.
I used GMap.net with C# and it works perfect. Now i need to use it in an android application. I found the apk mentioned above but I could not find the source of an example how to use this library for android application. Can you put the source of the example for download?
thanks.
↧
↧
New Post: Color of polygons
Hello, I using your library. When i have created 2 polygons and draw it with different colors but they turned out colored by the same color.
List<PointLatLng> polygonPoints1 = new List<PointLatLng>();
polygonPoints1.Add(new PointLatLng(55.633528, 37.655875));
polygonPoints1.Add(new PointLatLng(55.7955015, 49.073303));
GMapPolygon polygon1 = new GMapPolygon(polygonPoints1, "polygon1");
polygon1.Stroke.Color = Color.Blue;
polygons.Polygons.Add(polygon1);
List<PointLatLng> polygonPoints2 = new List<PointLatLng>();
polygonPoints2.Add(new PointLatLng(55.633528, 37.655875));
polygonPoints2.Add(new PointLatLng(48.6704194, 44.5033339));
GMapPolygon polygon2 = new GMapPolygon(polygonPoints2, "polygon2");
polygon2.Stroke.Color = Color.Green;
polygons.Polygons.Add(polygon2);
↧
New Post: AltSketch Render
Hi again from AltSoftLab Team!
In about a year we got many new features in our AltSketch Graphics Library. First of all we get HW Render Backends in many Graphics Platforms and Mobile Platforms (Windows Phone, Android, iOS). Also all AltSketch Extensions are open sourced now. You are welcome!
Unity Game Engine
Windows Phone
Android
iOS
Silverlight / Moonlight
XNA / MonoGame
OGRE 3D Engine
Axiom 3D Engine
NeoAxis 3D Engine
Irrlicht 3D Engine
OpenTK / AltOpenTK
SdlDotNet / AltSdlDotNet
SharpDX
Windows Forms (throw System.Drawing, OpenGL, DirectX, DirectDraw)
WPF (throw System.Windows.Media, OpenGL, DirectX, DirectDraw)
GTK (throw Gtk.Image, OpenGL)
Qt: Qyoto & Qt4Dotnet (throw Qt.Image, OpenGL)
wxWidgets (throw wxWidgets.Image)
AltSketch Unity GMap.NET Interactive
![Image]()
AltSketch XNA MonoGame GMap.NET Interactive
![Image]()
AltSketch OGRE GMap.NET Big Map Maker
![Image]()
Johnny,
AltSoftLab Team!
In about a year we got many new features in our AltSketch Graphics Library. First of all we get HW Render Backends in many Graphics Platforms and Mobile Platforms (Windows Phone, Android, iOS). Also all AltSketch Extensions are open sourced now. You are welcome!
Unity Game Engine
Windows Phone
Android
iOS
Silverlight / Moonlight
XNA / MonoGame
OGRE 3D Engine
Axiom 3D Engine
NeoAxis 3D Engine
Irrlicht 3D Engine
OpenTK / AltOpenTK
SdlDotNet / AltSdlDotNet
SharpDX
Windows Forms (throw System.Drawing, OpenGL, DirectX, DirectDraw)
WPF (throw System.Windows.Media, OpenGL, DirectX, DirectDraw)
GTK (throw Gtk.Image, OpenGL)
Qt: Qyoto & Qt4Dotnet (throw Qt.Image, OpenGL)
wxWidgets (throw wxWidgets.Image)
AltSketch Unity GMap.NET Interactive

AltSketch XNA MonoGame GMap.NET Interactive

AltSketch OGRE GMap.NET Big Map Maker

Johnny,
AltSoftLab Team!
↧
New Post: GMap.NET for Silverlight or webbased platform
Hi guys!
I 've been using radioman's great Desktop tool for a while now, but now the customers and the market is leading everybody to work over a web site.
I have a couple of projects already working with gmaps.net, but now I would like to "Port" them to asp.net.
It would be great If anyone with ASP.NET Skill would post a more complete sample on how to use gmaps.net in a web site.
I keep trying to have something but here I must admit I am a bit lost.
Thank you all in advance.
Regards
HN
I 've been using radioman's great Desktop tool for a while now, but now the customers and the market is leading everybody to work over a web site.
I have a couple of projects already working with gmaps.net, but now I would like to "Port" them to asp.net.
It would be great If anyone with ASP.NET Skill would post a more complete sample on how to use gmaps.net in a web site.
I keep trying to have something but here I must admit I am a bit lost.
Thank you all in advance.
Regards
HN
↧
New Post: Alternatives to GreatMaps
Hey GreatMaps,
I'm trying to compile a list of mapping software that will fit my requirements for a desktop application I want to build.
I'm trying to build something similar to MissionPlanner: https://code.google.com/p/ardupilot-mega/wiki/Mission
Here is a quick moc-up I did for my application: http://i.imgur.com/52DaJtQ.png
Requirements:
Can anyone provide me a list of software with similar capability to GreatMaps?
Thanks,
jl
I'm trying to compile a list of mapping software that will fit my requirements for a desktop application I want to build.
I'm trying to build something similar to MissionPlanner: https://code.google.com/p/ardupilot-mega/wiki/Mission
Here is a quick moc-up I did for my application: http://i.imgur.com/52DaJtQ.png
Requirements:
- I want to be flexible with what I can draw on the map: lines, rectangles, polygons
- I want to be flexible with icons: they should be able to move, rotate
- I want flexibility with icon interaction: for example, being able to easily drag a waypoint would be great
-
I want to be able to use my own data for maps: for example an aeronautical chart made from a folder of .tiff images
Can anyone provide me a list of software with similar capability to GreatMaps?
Thanks,
jl
↧
↧
New Post: New maps
Any chances that a new map provider could be added to your great project?
WMS
http://tiles.kartat.kapsi.fi/peruskartta?
http://tiles.kartat.kapsi.fi/taustakartta?
http://tiles.kartat.kapsi.fi/ortokuva?
or
TMS
http://tiles.kartat.kapsi.fi/peruskartta/{zoom}/{x}/{y}.jpg
http://tiles.kartat.kapsi.fi/taustakartta/{zoom}/{x}/{y}.jpg
http://tiles.kartat.kapsi.fi/ortokuva/{zoom}/{x}/{y}.jpg
TMS uses EPSG:900913 and resides on the server in the following folders:
peruskartta_3067-, ortokuva_3067- ja taustakartta_3067
Ps:
I checked out the src code for YandexMapProviderBase class as an implementation example and stumbled upon the Guid object which I don't understand where you get the string id from + other details I felt unsure about ;)
Kind regards, icy
WMS
http://tiles.kartat.kapsi.fi/peruskartta?
http://tiles.kartat.kapsi.fi/taustakartta?
http://tiles.kartat.kapsi.fi/ortokuva?
or
TMS
http://tiles.kartat.kapsi.fi/peruskartta/{zoom}/{x}/{y}.jpg
http://tiles.kartat.kapsi.fi/taustakartta/{zoom}/{x}/{y}.jpg
http://tiles.kartat.kapsi.fi/ortokuva/{zoom}/{x}/{y}.jpg
TMS uses EPSG:900913 and resides on the server in the following folders:
peruskartta_3067-, ortokuva_3067- ja taustakartta_3067
Ps:
I checked out the src code for YandexMapProviderBase class as an implementation example and stumbled upon the Guid object which I don't understand where you get the string id from + other details I felt unsure about ;)
Kind regards, icy
↧
New Post: New maps
thanks, i will add it as soon as i get the time to do so...
in the mean time you can make a fork to share the code
in the mean time you can make a fork to share the code
↧
Updated Wiki: Home
...radioman is currently unresponsive, sorry for that. Cornwall exploration mission is in progress, great maps helps greatly! ;}
GMap.NET is great and Powerful, Free, cross platform, open source .NET control. Enable use routing, geocoding, directions and maps from Coogle, Yahoo!, Bing, OpenStreetMap, ArcGIS, Pergo, SigPac, Yendux, Mapy.cz, Maps.lt, iKarte.lv, NearMap, OviMap, CloudMade, WikiMapia, MapQuest in Windows Forms & Presentation, supports caching and runs on windows mobile!
Absolutely Fantastic Piece of Work. - share your projects,say thanks ;}
- Hot Build - grab cutting edge features and bug-fixes
- Videos - check my adventures...
- GMap.Net can run at window mobile?
- Hot news - Threatening message from Andrey Chebotarev in Yandex Maps
- Old news:
google buddy Josh Livni doesn't like it too... ;}
- Old news:
google buddy Josh Livni doesn't like it too... ;}
- Create Fork- be the change ;}
Preview:
The Greatest maps in the world:
Support: …journey of I AM
↧
New Post: New maps
Fork: icybridge/Kapsi done.
Some user requirements from the licence holder apply and are:
1. Name of licence holder must show on the map(s) --> Maanmittauslaitos
Instead of the full name the MML abbreviation is in my opinion preferable and is actually used on a testmap from the map provider itself. On that map the "MML" is a link tohttp://www.maanmittauslaitos.fi. Why not link it to the licence file directly and we get rid of req 4...
2. Name of map content.
Should be enough to use --> Peruskarttarasteri, Taustakartta, Ortoilmakuva in the list of providers. For instance:Kapsi_Ortoilmakuva
3. The date of the content has to be viewable somehow. Perhaps could be hard coded to the name above?
4. Link to the lic file. -->
http://www.maanmittauslaitos.fi/avoindata_lisenssi_versio1_20120501
Icy
Sent from my iPad
↧
↧
New Post: How to pan with GMap
I know how to zoom, but how can I enable the user to pan up, down, left, right?
↧
New Post: Gmap Custom Image Marker C#
First i need to say that
"Radioman We Love You"
Here a class sample for your C# Gmap Project. You can use it for creating markers with specific images.
Just Create a class named GMapCustomImageMarker and copy that code in it. And boom! you're ready.
Best Regards.
"Radioman We Love You"
Here a class sample for your C# Gmap Project. You can use it for creating markers with specific images.
Just Create a class named GMapCustomImageMarker and copy that code in it. And boom! you're ready.
using Microsoft.VisualBasic;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using GMap.NET.WindowsForms;
namespace GMap.NET.WindowsForms.Markers
{
public class GMapCustomImageMarker : GMapMarker
{
private Image _image;
public GMapCustomImageMarker(Image Image, PointLatLng p)
: base(p)
{
_image = Image;
}
public override void OnRender(Graphics g)
{
g.DrawImage(_image, new Point(LocalPosition.X - _image.Width / 2, LocalPosition.Y - _image.Height / 2));
}
}
}
For using markerpublic void gmapMarkerWithImage(double lat, double lon)
{
Image markerImage = Image.FromFile("C:/Users/volkan/Desktop/Map-Marker-Flag--Left-Azure.png");
GMapCustomImageMarker marker = new GMapCustomImageMarker(markerImage,new PointLatLng( lat,lon));
marker.ToolTipMode = MarkerTooltipMode.OnMouseOver;
marker.ToolTipText = "" + (markersOverlay.Markers.Count + 1);
if (mapExplorer.Overlays.Contains(markersOverlay))
{
markersOverlay.Markers.Add(marker);
}
else
{
markersOverlay.Markers.Add(marker);
mapExplorer.Overlays.Add(markersOverlay);
}
mapExplorer.Position = new PointLatLng(lat, lon);
}
Thats it. Good Luck with your project.Best Regards.
↧
New Comment on "GMap.NET.WindowsForms"
Can you suggest me some other tutorial? great proyect!
↧
New Post: should I add classes
↧
↧
New Post: BingMapProvider Blue Tiles Error 499
Greetings,
I have recently started working on an application for my team to use to help us proactively monitor some of our customers sites using a map interface.
GMaps has been wonderful and is very easy to use, however, each day I come in to work on my project the map will load a hadnful of times and then stops.
It then fills my GMapControl with blue tiles that read "Exception:The remote server returned an error:(499) Failclose."
I am trying to use BingMaps, and I have obtained a key from bing. However it does this on any MapProvider I try to use.
Not sure if my code is wrong(Followed the demo) or if im having some sort of firewall issue(I have turned off my machines firewall temporarily to no avail)
My Code:
I have recently started working on an application for my team to use to help us proactively monitor some of our customers sites using a map interface.
GMaps has been wonderful and is very easy to use, however, each day I come in to work on my project the map will load a hadnful of times and then stops.
It then fills my GMapControl with blue tiles that read "Exception:The remote server returned an error:(499) Failclose."
I am trying to use BingMaps, and I have obtained a key from bing. However it does this on any MapProvider I try to use.
Not sure if my code is wrong(Followed the demo) or if im having some sort of firewall issue(I have turned off my machines firewall temporarily to no avail)
My Code:
GMap.NET.MapProviders.BingMapProvider.Instance.ClientKey = "my_key_goes_here";
gmap.MapProvider = GMap.NET.MapProviders.BingMapProvider.Instance;
GMap.NET.GMaps.Instance.Mode = GMap.NET.AccessMode.ServerOnly;
gmap.Position = new PointLatLng(41.088327, -96.4748517);
Please advise.↧
New Post: BingMapProvider Blue Tiles Error 499
I just rebooted, and ran my app again, and now I get Error (400) bad request.
This is very frustrating, as I can find no information on what these errors mean...
This is very frustrating, as I can find no information on what these errors mean...
↧
Commented Issue: Bearing [16044]
Bearing was not working at least since 1.6. I'm not sure if I'm doing it correctly but now ti's working for me.
since it's only in 1 file, I'll paste the diff here.
--- C:/Users/JFDionne/Downloads/greatmaps-6ccafda5ce5d/greatmaps_6ccafda5ce5d/GMap.NET.WindowsForms/GMap.NET.WindowsForms/GMapControl.cs Mon Jul 16 16:13:00 2012
+++ GMapControl.cs Mon Jul 16 17:58:47 2012
@@ -1112,10 +1112,17 @@
{
if(IsHandleCreated)
{
- // need to fix in rotated mode usinf rotationMatrix
- // ...
- Core.DragOffset(new GPoint(x, y));
+ if (IsRotated)
+ {
+ System.Drawing.Point[] p = new System.Drawing.Point[] { new System.Drawing.Point(x, y) };
+ rotationMatrixInvert.TransformVectors(p);
+ x = (int)p[0].X ;
+ y = (int)p[0].Y ;
+
+ }
+ Core.DragOffset(new GPoint(x, y));
+
ForceUpdateOverlays();
}
}
@@ -1385,6 +1392,8 @@
e.Graphics.TranslateTransform(Core.renderOffset.X, Core.renderOffset.Y);
DrawMap(e.Graphics);
+ e.Graphics.ResetTransform();
+ e.Graphics.TranslateTransform(Core.renderOffset.X, Core.renderOffset.Y);
OnPaintOverlays(e.Graphics);
#endregion
@@ -1451,45 +1460,45 @@
}
set
{
- //if(Core.bearing != value)
- //{
- // bool resize = Core.bearing == 0;
- // Core.bearing = value;
+ if (Core.bearing != value)
+ {
+ bool resize = Core.bearing == 0;
+ Core.bearing = value;
- // //if(VirtualSizeEnabled)
- // //{
- // // c.X += (Width - Core.vWidth) / 2;
- // // c.Y += (Height - Core.vHeight) / 2;
- // //}
+ //if(VirtualSizeEnabled)
+ //{
+ // c.X += (Width - Core.vWidth) / 2;
+ // c.Y += (Height - Core.vHeight) / 2;
+ //}
- // UpdateRotationMatrix();
+ UpdateRotationMatrix();
- // if(value != 0 && value % 360 != 0)
- // {
- // Core.IsRotated = true;
+ if (value != 0 && value % 360 != 0)
+ {
+ Core.IsRotated = true;
- // if(Core.tileRectBearing.Size == Core.tileRect.Size)
- // {
- // Core.tileRectBearing = Core.tileRect;
- // Core.tileRectBearing.Inflate(1, 1);
- // }
- // }
- // else
- // {
- // Core.IsRotated = false;
- // Core.tileRectBearing = Core.tileRect;
- // }
+ if (Core.tileRectBearing.Size == Core.tileRect.Size)
+ {
+ Core.tileRectBearing = Core.tileRect;
+ Core.tileRectBearing.Inflate(1, 1);
+ }
+ }
+ else
+ {
+ Core.IsRotated = false;
+ Core.tileRectBearing = Core.tileRect;
+ }
- // if(resize)
- // {
- // Core.OnMapSizeChanged(Width, Height);
- // }
+ if (resize)
+ {
+ Core.OnMapSizeChanged(Width, Height);
+ }
- // if(!HoldInvalidation && Core.IsStarted)
- // {
- // ForceUpdateOverlays();
- // }
- //}
+ if (!HoldInvalidation && Core.IsStarted)
+ {
+ ForceUpdateOverlays();
+ }
+ }
}
}
#endif
@@ -1954,17 +1963,17 @@
else
{
#if !PocketPC
- Core.mouseCurrent = ApplyRotationInversion(e.X, e.Y);
+ Core.mouseCurrent = ApplyRotationInversion(e.X, e.Y);
#else
Core.mouseCurrent = new GPoint(e.X, e.Y);
#endif
Core.Drag(Core.mouseCurrent);
#if !PocketPC
- if(MobileMode)
- {
+ //if(MobileMode)
+ //{
ForceUpdateOverlays();
- }
+ //}
#else
ForceUpdateOverlays();
#endif
Comments: radioman, I can confirm that this does seem to fix the map rotation issue (as far as I can tell from my tests). I've attached the updated WindowsForms.GMapControl.cs file. You can add it to the existing build or I can send you a fork :)
since it's only in 1 file, I'll paste the diff here.
--- C:/Users/JFDionne/Downloads/greatmaps-6ccafda5ce5d/greatmaps_6ccafda5ce5d/GMap.NET.WindowsForms/GMap.NET.WindowsForms/GMapControl.cs Mon Jul 16 16:13:00 2012
+++ GMapControl.cs Mon Jul 16 17:58:47 2012
@@ -1112,10 +1112,17 @@
{
if(IsHandleCreated)
{
- // need to fix in rotated mode usinf rotationMatrix
- // ...
- Core.DragOffset(new GPoint(x, y));
+ if (IsRotated)
+ {
+ System.Drawing.Point[] p = new System.Drawing.Point[] { new System.Drawing.Point(x, y) };
+ rotationMatrixInvert.TransformVectors(p);
+ x = (int)p[0].X ;
+ y = (int)p[0].Y ;
+
+ }
+ Core.DragOffset(new GPoint(x, y));
+
ForceUpdateOverlays();
}
}
@@ -1385,6 +1392,8 @@
e.Graphics.TranslateTransform(Core.renderOffset.X, Core.renderOffset.Y);
DrawMap(e.Graphics);
+ e.Graphics.ResetTransform();
+ e.Graphics.TranslateTransform(Core.renderOffset.X, Core.renderOffset.Y);
OnPaintOverlays(e.Graphics);
#endregion
@@ -1451,45 +1460,45 @@
}
set
{
- //if(Core.bearing != value)
- //{
- // bool resize = Core.bearing == 0;
- // Core.bearing = value;
+ if (Core.bearing != value)
+ {
+ bool resize = Core.bearing == 0;
+ Core.bearing = value;
- // //if(VirtualSizeEnabled)
- // //{
- // // c.X += (Width - Core.vWidth) / 2;
- // // c.Y += (Height - Core.vHeight) / 2;
- // //}
+ //if(VirtualSizeEnabled)
+ //{
+ // c.X += (Width - Core.vWidth) / 2;
+ // c.Y += (Height - Core.vHeight) / 2;
+ //}
- // UpdateRotationMatrix();
+ UpdateRotationMatrix();
- // if(value != 0 && value % 360 != 0)
- // {
- // Core.IsRotated = true;
+ if (value != 0 && value % 360 != 0)
+ {
+ Core.IsRotated = true;
- // if(Core.tileRectBearing.Size == Core.tileRect.Size)
- // {
- // Core.tileRectBearing = Core.tileRect;
- // Core.tileRectBearing.Inflate(1, 1);
- // }
- // }
- // else
- // {
- // Core.IsRotated = false;
- // Core.tileRectBearing = Core.tileRect;
- // }
+ if (Core.tileRectBearing.Size == Core.tileRect.Size)
+ {
+ Core.tileRectBearing = Core.tileRect;
+ Core.tileRectBearing.Inflate(1, 1);
+ }
+ }
+ else
+ {
+ Core.IsRotated = false;
+ Core.tileRectBearing = Core.tileRect;
+ }
- // if(resize)
- // {
- // Core.OnMapSizeChanged(Width, Height);
- // }
+ if (resize)
+ {
+ Core.OnMapSizeChanged(Width, Height);
+ }
- // if(!HoldInvalidation && Core.IsStarted)
- // {
- // ForceUpdateOverlays();
- // }
- //}
+ if (!HoldInvalidation && Core.IsStarted)
+ {
+ ForceUpdateOverlays();
+ }
+ }
}
}
#endif
@@ -1954,17 +1963,17 @@
else
{
#if !PocketPC
- Core.mouseCurrent = ApplyRotationInversion(e.X, e.Y);
+ Core.mouseCurrent = ApplyRotationInversion(e.X, e.Y);
#else
Core.mouseCurrent = new GPoint(e.X, e.Y);
#endif
Core.Drag(Core.mouseCurrent);
#if !PocketPC
- if(MobileMode)
- {
+ //if(MobileMode)
+ //{
ForceUpdateOverlays();
- }
+ //}
#else
ForceUpdateOverlays();
#endif
Comments: radioman, I can confirm that this does seem to fix the map rotation issue (as far as I can tell from my tests). I've attached the updated WindowsForms.GMapControl.cs file. You can add it to the existing build or I can send you a fork :)
↧