markers not visible until map panned
attachMarker in MarkerClip don't show marker until map panned a little.
I guess this lines reason of such behavior (MarkerClip#updateClips):
if (center.equalTo(drawCoord)) {
dirty = false;
return;
}
is there workaround to avoid dragging map to show markers?
bug appears on rev:676
I guess this lines reason of such behavior (MarkerClip#updateClips):
if (center.equalTo(drawCoord)) {
dirty = false;
return;
}
is there workaround to avoid dragging map to show markers?
bug appears on rev:676
2
people have this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Thanks for the report. I'll take a look at the problem, if you're following along in subversion then it'll probably be easier to fix than come up with a workaround.
I’m anxious
-
Inappropriate?I can't reproduce this problem... can you post an example that illustrates it?
Are you using Map, or TweenMap? The built in map.markerClip or another one? Do you set an initial position or extent before adding markers?
I think you're right that the check against the center coordinate will be broken if dirty was set to true by attachMarker. Can you replace 'dirty = true' in attachMarker with 'updateClip(marker)' and see if that fixes it?
I’m undecided
-
Inappropriate?OK, I think I have it...
I can reproduce the problem if I add a map on one frame and then sometime later add markers (my initial test didn't add the map until I had data to show). In this case, the call to updateClip that I suggested above works. I've also stopped initializing drawCoord in the MarkerClip constructor and I check for its existence in the pan and zoom handlers.
http://modestmaps.mapstraction.com/tr...
Thanks again for letting us know!
I’m confident
-
1 person says
this solves the problem
-
Hooray!
Loading Profile...



EMPLOYEE