Comments (5)
That's exactly how I do it, although I have a few more requirements. CATiledLayer is actually quite smart in that it really only loads the visible tiles, so enlarging the map view is not much of a problem (in my experience, at least).
from route-me.
Ok, just curious. The one problem I've seen with this approach is if the map stays rotated, getting to the bounds or constraints does weird things, since they are technically out of view because of the rotation corner-covering. But for Maps.app-like behavior where if you pan, the map rotates back to normal orientation, it works fine (providing you aren't physical located near the meridian or the poles).
from route-me.
My solution was to always rotate back to the normal orientation as soon as the user interacts with the map, like Maps.app. If you don't want to do this, then you'll have to take the rotation into account for every constraint or bound which might not be worth the work...
from route-me.
Yeah, that's what I'm doing. I've added a pinch & zoom simultaneous gesture which only serves to un-rotate the map if the center point gets moved.
from route-me.
FYI, the way I've tackled this over in #59 location services was to set clipsToBounds = YES
for RMMapView
itself but NO
for the contained UIScrollView
, then rotate the scroll view inside of the map view. That way, overlays get rotated as well.
from route-me.
Related Issues (20)
- Trunk doesn't build HOT 2
- Option to render maps front to back.
- RMMapView in UISplitViewController app, causes duplicate tile handling HOT 2
- Duplicate web tiles fetches HOT 6
- Zoom with zoomWithLatitudeLongitudeBoundsSouthWest creating half-size tiles on iPad2 HOT 3
- shape clipping when map view smaller than its superview HOT 2
- Side effect of imageWithData creates CGColorSpaceRef which is not released IOS 6 only HOT 2
- Choppy marker movement when zoomed in far enough. HOT 3
- Dispatch queue names not unique
- Annotations position translation?
- visibleAnnotations Array Of RMMapView is mutated while beeing enumerated HOT 1
- line artifacts sometimes in map snapshots
- Markers wiggle in higher zoom levels HOT 1
- MapBox 1.0.0 changes HOT 2
- Coordinates become 0 no matter what I set them too. (centerCoordinate) using RMTileSource HOT 1
- Cluster annotations based on groups
- cannot link the libMapView.a to my project
- RMShape disappears if it gets re-added to map view until next zoom or pan
- Changing accessory views when tapped HOT 1
- backboardd crash while zooming
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 route-me.