Occasional Missing Row
I've been using Modest Maps for a while now and I'm having a couple new problems and since I've gotten such great help here I thought I'd ask another question.
First, the things I've changed. I reduced the condemnation delay of when tiles are removed. I turned off drawing the well and mask (the latter I'm not sure what it does) as it was creating a haze effect on my xparent images. And I increased the tile buffer to size 1.
Here are my problems, both happen rarely:
1) Sometimes when I zoom in the top row of tiles don't get drawn in. If I simply click on the map they appear immediately, leading me to believe they were fetched. This happens when my buffer is at 0 and 1, but seems to happen less at 1.
2) This problem happens even less often, but sometimes there will be a seam between the tiles. I can't find a pattern to it and it isn't that big of a deal.
I'm just hoping somebody has seen these before and can offer some advice.
First, the things I've changed. I reduced the condemnation delay of when tiles are removed. I turned off drawing the well and mask (the latter I'm not sure what it does) as it was creating a haze effect on my xparent images. And I increased the tile buffer to size 1.
Here are my problems, both happen rarely:
1) Sometimes when I zoom in the top row of tiles don't get drawn in. If I simply click on the map they appear immediately, leading me to believe they were fetched. This happens when my buffer is at 0 and 1, but seems to happen less at 1.
2) This problem happens even less often, but sometimes there will be a seam between the tiles. I can't find a pattern to it and it isn't that big of a deal.
I'm just hoping somebody has seen these before and can offer some advice.
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?I've seen the seams before and in fact I'm in the process of rewriting the TileGrid entirely because I got sucked down the rabbit-hole trying to fix the problem :)
The drawing on the well and tilegrid means that you can click and drag the map around before the tiles have loaded - otherwise there's nothing there to click on. If you're on a fast connection and you're not dragging very far, you might not have noticed this.
As for the missing row, it sounds like you've modified a bunch of little things, so it would be hard for us to reproduce the problem exactly. If you can post a minimal test case (with source code) we might be able to help, but to be honest it sounds like a tricky thing to debug and if raising the tile buffer fixes it then that's probably what the tile buffer is for :)
I’m undecided
-
Inappropriate?Hey Random ... thanks for the quick reply. Glad to hear the seam isn't a unique problem and I'm looking forward to your update.
As for the missing row it sounds like this isn't familiar to you. I have only changed the three things I mentioned, all in TileGrid.as of the AS3 source. Here they are:
Condemn delay (just made it shorter):
return (_rows * _columns * 0.05) * 1000;
Turn off unnecessary drawing:
protected var _drawWell:Boolean = false;
protected var _drawGridArea:Boolean = false;
Changed tile buffer to 1:
protected var _tileBuffer:int = 1;
I assure you I those are my only changes. I was going to subclass the TileGrid to localize my changes (and possibly make updates easier) but that'd require me to modify Map to take a diff't tile grid, so I didn't bother and changed in place.
As I said before, the missing row happens only occasionally and it is hard to reproduce, but I see it at least once just about every time I test.
If you haven't seen it then it will be hard for you to help. Hopefully sometime soon I can get a public example for you (and others) to check out.
Thanks again!
I’m appreciative of the help.
Loading Profile...



EMPLOYEE