Comments (8)
No, only tiles are managed relative to the viewport, everything else is rendered normally. Are you concerned about memory?
from mapview.
Yes, when I use the ParthViews the MapView does not respond anymore because I have A LOT of PathViews. I have now added a way to draw directly on the bitmap of the tiles which is much faster. This will eventually result in another pull request ;-)
from mapview.
sounds cool - looking forward to seeing it
from mapview.
How'd this go @mohlendo? In another dev's project, they found that adding/removing paths dynamically was buggy, but I found redrawing was stable, so for the next major update I'm going to rewrite the whole path drawing strategy #57 If you've found anything useful, LMK. Thanks.
from mapview.
Just to add a comment to this, I've recently been trying to draw a particularly large path. When trying to use hardware acceleration to draw the MapView I am presented with the error OpenGLRenderer: "Shape path too large to be rendered into a texture"
and the path is not drawn.
This can be resolved by disabling hardware acceleration at a cost of performance. Not sure if your update to the path drawing strategy in #57 is planned to solve this but could be worth looking at.
Cheers and thanks.
from mapview.
@phil-applegate ideally i'd like to limit the shape to the viewport, but i'm not sure how realistic that'll end up being. will definitely keep the note above handy tho, thanks for the input.
from mapview.
I've been doing some more research into this issue and found this post which looks to be similar to the problem I described above.
I've modified my local version of MapView
to use drawLines()
combined with drawCircle()
rather than drawPath()
. As a result the Path does not look quite as good as it did with drawPath()
but it can now be hardware accelerated thus improving performance and smoothness.
Hope the link proves to be some use!
from mapview.
@phil-applegate very good info - i knew the path drawing operations needed to be rewritten for the upcoming TileView replacement, and will definitely keep this info handy when doing that. thanks.
from mapview.
Related Issues (20)
- Centering the map HOT 8
- Project Rename HOT 7
- Polygons as hotspots HOT 6
- Extra zoom feature HOT 8
- Increase the scrollable area in order to scroll the edges of the map into view HOT 4
- How to use HotSpot and HotSpotManager? HOT 3
- Render tiles outside of view HOT 2
- Loading downsample via TileDecoder HOT 2
- Markers moving when zooming HOT 2
- Callout drawn off screen HOT 3
- Image moving between zoom levels HOT 6
- Feature Requests HOT 15
- moveTo/slideTo rectangle HOT 4
- slideToAndCenter randomly not works HOT 3
- Adding ZoomLevels dynamically does not allow zooming. HOT 1
- How to listen onLongPress event? HOT 5
- map doesn't redraw after scrolling if scale is greater than 1 HOT 1
- Chaging zoomlevels dynamicaly doesn't show correct tiles HOT 1
- Gradle HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapview.