Topic: Limited position and tileset map adjusted to screen size

Hi,

We currently develop a mobile app with offline tileset map with a restricted area and limited zoom.
Because of the variety of screensizes, we need the map to be adjusted.

Thank's to you, you provide great examples to doing that.

However, probably because of the offline mode, when we try different screen sizes, we get grey border around the map.

What is the best way to resolve this behaviour?

Thank's

ps : We use your CustomTileSetControl script you provide in this topic : http://forum.infinity-code.com/viewtopic.php?id=733

Post's attachments

Attachment icon Capture.PNG 162.05 kb, 67 downloads since 2018-03-22 

Re: Limited position and tileset map adjusted to screen size

Hello.

Please show the code how you limit the position.
It looks like you are limit the central point, but should limit the boundaries.
http://infinity-code.com/doxygen/online … 53b3f49d4f
OnlineMapsPositionRangeType.border

Kind Regards,
Infinity Code Team.

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

Re: Limited position and tileset map adjusted to screen size

Indeed, I missed that point. It works like a charm with limiting the boundaries.

Just for my knowledge, can you explain the difference between the 2 OnlineMapsPositionRangeType ?

With bigger definition (1440 x 2880) and the min zoom limitation (17), I steel have that grey border.
But in that case, I suppose I have no other choise than to cache tiles that missed.

In any case, thank's for your help !

Post's attachments

Attachment icon Capture2.PNG 142.35 kb, 69 downloads since 2018-03-22 

Re: Limited position and tileset map adjusted to screen size

Because the size of the cached area is smaller than the area you want to show.
Please note that you have gray areas at the top and bottom.
Just use min zoom = 18 or 19.
Or cache a larger area.

Kind Regards,
Infinity Code Team.

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

Re: Limited position and tileset map adjusted to screen size

Yes it is what i suspected.

Thank's for your support.