Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nutiteq map freezing after adding a few lines and markers #54

Open
okandroid opened this issue Dec 10, 2014 · 1 comment
Open

Nutiteq map freezing after adding a few lines and markers #54

okandroid opened this issue Dec 10, 2014 · 1 comment

Comments

@okandroid
Copy link

im developing a traffic application and there is a few traffic lines and warning markers on the road. I draw traffic lines according to zoom level. For example, If zoom level is over 10, im removing all lines and redraw for new zoom level. Because lines overflow on the road. I have lines over 400 for every zoom level. So every zoom in/ zoom out action, i remove and redraw. After a while my map begins to freeze and moving very slowly.

Is there any caching operation on background? Because im clearing the map every zoom level. In addition to what I should do to avoid freezing?

I tried mapview.destroyDrawingCache(); , mapview.postInvalidate(); but they doesn't help me. In addition, is there any way to refresh mapview?

@mtehver
Copy link
Contributor

mtehver commented Dec 10, 2014

We will need a working sample demonstrating the issue to proceed. Description itself is too broad and there are too many possibilities to reproduce this. Just a note: destroyDrawingCache/postInvalidate have no affect. Refreshing is done automatically when new vector elements are added to the map or removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants