Change empty background

Topics: WPF
Jul 26, 2012 at 4:04 PM
Edited Jul 26, 2012 at 4:31 PM

Hi everyone,

EDIT : Ok I see my question is not very clear. So when the user makes a zoom on the map, and that the software doesn't have any image for this zoom level, many squares appear. And in these squares you are told "Exception : no data in local tile cache", "we are sorry..".

To make this part a bit more sexy, I would like to change the background color, the texts and the fonts. I need to access the text because I have to translate it regarding the culture.

I'm developing under .NET 4 and WPF.

Jul 26, 2012 at 4:43 PM
  • EmptyTileBorders
  • EmptytileBrush
  • EmptyTileText 
Jul 27, 2012 at 8:50 AM

Thank you. Can you tell me how to access these properties ? I've discovered GMAP.NET yesterday in the afternoon (and I've looked for the doc but haven't found yet)

Jul 27, 2012 at 9:44 AM

instructions for dummies: you write mapControl1 then hit . and then choose one of the property ;/

Jul 27, 2012 at 10:05 AM

Had to access the mapControl first. Not easy when you just have "this" in your init ;)

(but I found it anyway)

Jul 27, 2012 at 3:23 PM

Ok it's almost done. I just want to act on the advertisment "Exception : no data in local tile cache". Removing or changing it will be all right.

(I think it must be a FormattedText but there is only EmptyTileText in gmapControl)

Aug 13, 2012 at 9:51 AM
Edited Aug 13, 2012 at 9:52 AM

UP because I still haven't found (holidays make you waste so much time...)

I just want to act on the advertisment "Exception : no data in local tile cache".

Aug 16, 2012 at 10:27 PM

that particular exception is internal, check the source if you want to modify it..

Aug 17, 2012 at 9:14 AM

Thank you. Do you remember the location of the exception ?

Aug 17, 2012 at 11:58 AM

ant the very bottom of GMaps.cs

Sep 7, 2012 at 9:58 AM

Thanks for your answer, I hadn't seen it. Anyway I don't find GMaps.cs in my project (Version 1.3). I checked every project without finding it. And if I search "Exception : no data in local tile cache", even with truncated expression, VS returns no result.

Sep 7, 2012 at 11:47 AM

you use old version