1 (edited by kb9200290tw 2016-10-08 04:05:49)

Topic: Poor Resolution Tileset after cached it on mobile

Hi,
I use the code in http://infinity-code.com/atlas/online-m … ample.html to cache tile. Everything looks great until I re-Zoom in/out ( use Cached tile if exist ), I think maybe pixel resolution do the tricks but couldn't find a method to change Online Map Resolution (ex. map.width = max(Screen.width, Screen.height) with no luck)

Screen Shot below is my setting, please tell me if there is anything wrong.

#Q2
when my Android/iOS phone go offline, the Map appear fully gray.
My OverlayBackTexture start to show after I drag my Map. It seems that map.OnStartDownloadTile not being called before dragging. Any idea is appreciated !!

Thanks !!

Post's attachments

Attachment icon 螢幕快照 2016-10-08 上午11.46.16.png 19.08 kb, 300 downloads since 2016-10-08 

Re: Poor Resolution Tileset after cached it on mobile

Hello.

1. Perhaps the problem is mipmaps. Try to use (line 50):

Texture2D tileTexture = new Texture2D (256, 256, TextureFormat.RGB24, false);

2. Strange. Try to call OnlineMaps.Redraw at startup.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

Re: Poor Resolution Tileset after cached it on mobile

Wow , thanks you, Alex  !
Your answer save my life !!  Mipmap is the problem I meet.

I'd give it a try for prob2 (maybe continue debugging)