Quantcast
Channel: GMap.NET - Great Maps for Windows Forms & Presentation
Viewing all 3384 articles
Browse latest View live

New Post: Polygon with inner polygons

$
0
0
Nice map!

I´m also an fisherman and also try to create my own depth maps. 

Reviewed: 1.7 (мар 23, 2016)

$
0
0
Rated 5 Stars (out of 5) - I start using it for creating my own GIS with some reluctance, I thought I'll need to make many changes into core code, but instead, I found EVERYTHING I desired in this project, so far I'm creating terrific software based on your code! Great Maps indeed! Thank you radioman, thank you so much!!!

New Post: GMAPs and .gmdb

$
0
0
ntaero,

You ever figure this out? I'd like to get the cachelocation to a single place for every user/profile on a computer. I've tried to use .cachelocation = application.startuppath & "\" and it makes a file there but for other users it also uses the appdata folders. On some computers there are 25 users so the 256mb starts to be a significant portion of the hard drive. I can't seem to figure out how to make EVERY user use the same tile data db.

New Post: GMAPs and .gmdb

$
0
0
MainMap.CacheLocation = @"E:\Desktop\gmapcache\";
p.s. initial size is 32MB

New Post: GMAPs and .gmdb

$
0
0
Here's my code on FormOpen Event (In VB.Net). I'm thinking that the @ is for C# since it generates an error? Should the .cachelocation be someplace else?

This works for the user that installs the program, but every other user gets the tiledb placed in their appdata folder and not in application startup folder where I want it so ALL users have the same db folder/file.

Thanks!
        With GMapActive
            .MapProvider = GMapProviders.GoogleMap
            .LevelsKeepInMemmory = 6
            .VerticalScroll.Enabled = True
            .MinZoom = 3
            .MaxZoom = 17
            .Zoom = 4
            .CanDragMap = True
            .DragButton = Windows.Forms.MouseButtons.Left
            .Manager.Mode = AccessMode.ServerAndCache
            .CacheLocation = Application.StartupPath & "\"                      Only works for user that installed
            ' .CacheLocation = @"C:\ProgramData\GMAPTEst\"                Errors
           ' .CacheLocation = "C:\Program Files (x86)\GMAPTEst\"            Only works for user that installed
        End With

New Post: GMAPs and .gmdb

$
0
0
Default behavior puts the tileDB here correct?:

C:\Users\ComputerName\AppData\Local\GMap.NET\TileDBv5\en

Would I go into the GMap source code to change this?




The reason I ask is that I have 3 GMap controls on the same form under different tab pages so maybe that's what is causing the issue?

New Post: GMAPs and .gmdb

$
0
0
As I look into this further it looks like GMap always creates the tiledb file here:

C:\Users\ComputerName\AppData\Local\GMap.NET\TileDBv5\en\Data.gmdb

no matter what you specify for the .CacheLocation?

It then uses the specified CacheLocation for normal operation as I can delete the AppData version once the program starts up.

Created Unassigned: GoogleSatelliteMap version [16139]

$
0
0
The Version string used to access GoogleSatellite maps updates fairly regularly in the source code. The latest values is "192", but in the area where I want to download maps, this version is no longer working. I have to use "193", and have tested that it currently accepts upto version "198".
I have two questions:
(1) How can one determine when Google increases the version number and what the latest is? (Currently I do it by trial and error - which is not very elegant)?
(2) A nice feature would be to be able to set the version number used by the MapProvider externally. Currently the only way is to update the Core dll as the version number is hardcoded therein.


Commented Unassigned: GMAP.Net Google Satellite map error in C#? [16137]

$
0
0
Tried to use GMAP.NET in winform using C#, when I set map properties to GoogleSatelliteMapProvider it gives an error. Exception :The remote Server returned in error:(404) Not found.

I am using latest GMAP.Net version. 1.7.0.0
Comments: I believe the problem is that Google has updated their database. The latest source code has the Version for GoogleSatelliteMap set at "192". Where I am downloading, this works in very few areas. If I increase the version to "193". it works, I have tested that the latest us accepts is "198". So in short, the latest code will only work in certain areas where "192" is still a valid version. To update the version requires the Core dll to be updated. I have posted an Issue on this problem (see next issue after this one)

New Post: Maps of specific area with name and address

$
0
0
I'm creating an offline system. Can I download maps of a specific area with address? For example if I enter Latitude and Longitude it give me address.

Created Unassigned: GetRoute() for GoogleSatellite and GoogleTerrain get 404 error [16140]

$
0
0
Calls to GetRoute() from an instance of GoogleSatelliteMapProvider and GoogleTerrainMapProvider have stopped working. They are now failing in GetContentUsingHttp because request.GetResponse() throws an exception. The exception message is "The remote server returned an error: (404) Not Found."

This only started happening in the last few days. I suspect google have changed their api. :-(

Updated Wiki: Home

$
0
0

...mission is in progress, great maps helps greatly! ;} ...real FLAT EARTH maps are missing though, no ANTARCTICA maps either


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 ;} 

Preview:

  • gmap1512.png

The Greatest maps in the world:

Powered by:  
Rule.png

OpenStreetMapbingCoogle mapsyahoo 
Maps.ltMapy.czVisit The Venus ProjectyenduxpergosqliteMySQLmssql server

freedom!CloudMadeOVI mapsArcGISNearMapWikiMapia
Rule.png

True World | Flat Earth Documentary - 2016

encourage project support ;}Ohloh profile for radiomanhistory radioman.ltcopy me ;}

Updated Wiki: Home

$
0
0

...mission is in progress, great maps helps greatly! ;} ...real FLAT EARTH maps are missing though, no ANTARCTICA maps either


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 ;} 

Preview:

  • gmap1512.png

The Greatest maps in the world:

Powered by:  
Rule.png

OpenStreetMapbingCoogle mapsyahoo 
Maps.ltMapy.czVisit The Venus ProjectyenduxpergosqliteMySQLmssql server

freedom!CloudMadeOVI mapsArcGISNearMapWikiMapia
Rule.png

True World | Flat Earth Documentary - 2016

encourage project support ;}Ohloh profile for radiomanhistory radioman.ltcopy me ;}

New Post: ViewArea changed event

$
0
0
Hello,

I am working on a navigation application on Windows Forms.

Some custom polygons and markers retrieved from database are shown on the map but as their number is huge, i am trying to implement a mechanism to show only those objects that are contained by current view area. So, i need to refresh the objects when the current view area is changed. (And do a spatial query to retrieve those objects included in Current View Area bounds)

How can i determine if the view area is changed?

I know that OnPositionChanged and OnMapDrag events are fired when the ViewArea changes but those events are fired multiple times during the drag. I need to determine when the ViewArea changed once and for all. It is ok if the user right clicks and drags several times, but if the user right clicks and drags the map once, i need to catch an event which fires only once, when the event finishes.

I hope i made it clear :) Thanks.

New Post: Windows 10 Maps...

$
0
0
Is it possible to use GMap.Net to read embedded Maps of Windows 10?

Reviewed: 1.7 (apr 07, 2016)

$
0
0
Rated 5 Stars (out of 5) - I have no words to define how amazing this project is. "Amazing" and "awesome" are definitely not enough !

Source code checked in, #01a44bb1a530

$
0
0
GMap.NET.Core: SwedenMapProvider

New Post: ViewArea too wide and high

$
0
0
I have a label that shows the latitude and longitude at the mouse pointer position in gMapControl1.MouseMove()
LatLonglabel.Text = " " + gMapControl1.FromLocalToLatLng(e.X, e.Y).Lat.ToString() 
+ "\n" + gMapControl1.FromLocalToLatLng(e.X, e.Y).Lng.ToString();
I've tested it with known locations and it is accurate.

When I run the mouse pointer just off the right side and bottom of the map LatLonglabel.Text shows different values than ViewArea returns for Right and Bottom (Top and Left match exactly). ViewArea always is larger.

I discovered this when loading customers in a ViewArea. It always returned customers past the right and bottom of the map which is not acceptable.

But I found a hack (notice PointLatLng w).
PointLatLng w = gMapControl1.FromLocalToLatLng(gMapControl1.Width - 3, gMapControl1.Height - 3);

string area = "";
area += " tblLocation.Longitude >= "     + map_area.Left.ToString();
area += " AND tblLocation.Longitude <= " + w.Lng.ToString();  //map_area.Right.ToString();
area += " AND tblLocation.Latitude <= "  + map_area.Top.ToString();
area += " AND tblLocation.Latitude >= "  + w.Lat.ToString(); // map_area.Bottom.ToString();
I insert "area" in my SQL query when loading customers.

I discovered if I shorten the maps width and height by 3 as "w" shows, it returns the exact values shown by LatLonglabel.Text.

I should mention that I zoom in small fractions.

Maybe I'm doing something weird which is causing this problem. But I'm posting this for Radioman just in case.

New Post: ViewArea changed event

$
0
0
Try creating your own ViewArea and call it when needed. This may help you get started:
PointLatLng w = gMapControl1.FromLocalToLatLng(gMapControl1.Width, gMapControl1.Height);
I found your post because I was having problems with ViewArea. I posted the problem here:

https://greatmaps.codeplex.com/discussions/653409

New Post: ViewArea too wide and high

$
0
0
maybe it's a fractional zoom related
Viewing all 3384 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>