Low Activity
3
I Use This!

News

Analyzed 12 days ago. based on code collected 12 days ago.
Posted 13 days ago by CryptoBoyNG
Yes it is :-) When I have an internet connection, I use thess settings: GMap.NET.GMaps.Instance.Mode = GMap.NET.AccessMode.ServerAndCache; When I browse the map, the cache map is updated with the fetched tiles. If I detect no internet ... [More] connection, I switch to these settings: GMap.NET.GMaps.Instance.Mode = GMap.NET.AccessMode.CacheOnly; It will force GMap to use the cache. If you already have the tiles in your cache, you will notice no difference on the display. You can also (when you have an internet connection) force GMaps to download a part of the map in your cache (select an area with ALT+right click, then call TilePrefetcherEnh.Start). You can check the demo code. I use the following code for instance: RectLatLng area = _gmap.SelectedArea; if (!area.IsEmpty) { int iMinZoom = (int)_gmap.Zoom; int iMaxZoom = _gmap.MaxZoom; DialogResult res = DialogResult.OK; for (int i = iMinZoom; i <= iMaxZoom; i++) { if (res == DialogResult.OK) { using (TilePrefetcherEnh obj = new TilePrefetcherEnh()) { obj.Text = _daddy.GetTranslator().GetString("LblEscToCancel"); obj.LblFetchingMessageFormat = _daddy.GetTranslator().GetString("LblFetchingProgressMsg"); obj.LblAllTileSaved = _daddy.GetTranslator().GetString("LblAllTileSaved"); obj.LblSavingTiles = _daddy.GetTranslator().GetString("LblSavingTiles"); obj.LblTileToSave = _daddy.GetTranslator().GetString("LblTileToSave"); obj.LblPrefetchComplete = _daddy.GetTranslator().GetString("LblPrefetchComplete"); obj.LblPrefetchCancelled = _daddy.GetTranslator().GetString("LblPrefetchCancelled"); obj.LblWaiting = _daddy.GetTranslator().GetString("LblWaitingNoTime"); obj.zoomfinal = iMaxZoom; obj.Overlay = _gmap.Overlays[GMapWrapper.RESERVED2]; // set overlay if you want to see cache progress on the map obj.Shuffle = _gmap.Manager.Mode != AccessMode.CacheOnly; obj.Owner = this; obj.ShowCompleteMessage = false; obj.Start(area, i, _gmap.MapProvider, _gmap.Manager.Mode == AccessMode.CacheOnly ? 0 : 100, _gmap.Manager.Mode == AccessMode.CacheOnly ? 0 : 1); res = obj.DialogResult; } } if (res == DialogResult.Abort) break; } } [Less]
Posted 14 days ago by radioman
try debugger and catch the exception in gmap cache engine[CacheEngineLoop], you should see all errors in the output window
Posted 14 days ago by radioman
try debugger and catch the exception in gmap cache engine[CacheEngineLoop], you should see all errors in the output window
Posted 14 days ago by Yanshof
I want to use GMap but in some cases i don't have internet connection. Is it possible to use GMap offline ? If it is so how to do it ? 10x
Posted 14 days ago by YuryKomar
CryptoBoyNG, thanks for comment, a did try Not To Copy DLL, checked that it was deleted in BIN folder. So the problem as well as before... May version of Sqlite dll was downloaded from official web site, sure it is not buggy... My version of Gmaps is ... [More] 1.7, looks like it is latest stable. I have cheched it new project - it works, but in my app not. may be to close connetion to my DB before load caches and save it to cashe location? my connection always open. [Less]
Posted 14 days ago by CryptoBoyNG
Hi YuryKomar, I guess your SQLite assembly is conflicting with the one embedded in GMaps. GMaps is using an embedded SQLite assembly (dunno remember which version and which target platform, x86 or x64) and this will conflict for REAL with any ... [More] SQLite assembly you might link in your project. Please make sure that you set set "Copy local" to FALSE on your SQLite assembly in your project : ==> in Visual Studio, go to "References", right click on System.Data.SQLite and set "Copy local" to FALSE). Doing that will prevent your SQLite assembly to be copied aside your application binary and thus likely prevent it from CRASHING the SQLite engine embedded in GMaps (and so crashing the cache system). Morevover when you deploy your application, DO NOT deploy any SQLite assembly with it, there is no need, it's embedded in GMaps. I'm pretty sure your issue is related to that. I'm using SQLite in my application as well and the cache system is working perfectly fine. [Less]
Posted 14 days ago by YuryKomar
Where to find "debug cache engine"??? In new project caching working well, but in my progect with DB SQLITE it does not loading cached tiles. So the connection to my DB is alway opened, may it be a reason?
Posted 15 days ago by YuryKomar
I am doing nothing special... Just trying to show the map in offline mode. Thanks. I will try.
Posted 15 days ago by YuryKomar
I am doing nothing special... Just trying to show the map in offline mode. Thanks. I will try.
Posted 15 days ago by radioman
dunno what are you doing there, try debug cache engine