Comments (8)
These functions all exist; they're just not exposed through the RMMapView
object.
As you say; that should be fixed.
Original comment by [email protected]
on 25 Sep 2008 at 5:51
- Changed state: Accepted
- Added labels: Milestone-Release1.0, Priority-Low, Type-Enhancement
- Removed labels: Priority-Medium, Type-Defect
from route-me.
I've added an accessor to the RMMapContents from RMMapView.
Take a look through RMMapContents. All the functionality you've proposed is
available
through that and through the various projections.
The mercatorToScreenProjection will translate pixels to mercators and back.
latLongToMercator will translate mercators to lat/long coordinates and back.
You can set the zoom property on the map contents. That value is a float - but
with
all the standard maps setting it to an integer value will do what you want it
to do.
You can also set the scale - this is how many mercators per pixel the map is (=
meters per pixel at the equator).
You're right - there is no zoom to fit. I will give you svn access so you can
implement this stuff (if you need it).
isLoaded is a bit more tricky - though I appreciate why you want it. It would
probably also be nice for the map view to call its controller when the map has
finished loading.
Original comment by [email protected]
on 9 Oct 2008 at 2:39
from route-me.
Given you ownership and svn access.
Original comment by [email protected]
on 13 Oct 2008 at 3:16
from route-me.
Having problems with projectScreenPointToMercator and projectLatLongToMercator.
I'm trying to find out why
projectScreenPointToMercator and projectLatLongToMercator methods keep
returning inconsistent and incorrect
values. (There is something dreadfully wrong with this code but its late and
I'm tired.) I'm trying to figure out
how orgin, screenBounds and scale interact with each other. Any ideas?
Original comment by [email protected]
on 15 Oct 2008 at 6:27
from route-me.
origin is the mercator coordinate of the lower-left corner of the screen. Scale
refers to how many mercator points in each pixel and screenbounds stores how
big the
map view is in pixels - (0,0,400,600) or so.
Original comment by [email protected]
on 16 Oct 2008 at 12:20
from route-me.
Is this done? Can we close the ticket?
Original comment by [email protected]
on 27 Oct 2008 at 2:47
from route-me.
zoomToFit() and isLoaded() are currently incomplete. I'll work on zoomToFit()
but
I'm not sure how important isLoaded() is so it may be omitted depending on how
the
overlays/markers work. ie:if we're going to have map/marker layering issues
when we
try to plot markers on map init then the work on this method would be
reinstated.
Original comment by [email protected]
on 27 Oct 2008 at 3:29
from route-me.
Removing from issue list: Most of these features seem to be functionally
implemented.
Original comment by [email protected]
on 17 Nov 2008 at 6:06
- Changed state: Fixed
from route-me.
Related Issues (20)
- RMPath: path out of visible area ramain invisible when moving programly. HOT 1
- tapOnMarker with UIAlertView HOT 1
- RMMapContents -zoomWithLatLngBoundsNorthEast:SouthWest: crashes on bad zoom levels
- Is there any way to implement the callout bubble when tabbing a marker just like MKMapView? HOT 2
- Resolving X,Y pixels from out of view location give wrong results.
- remove old tiles from db cache
- How to add offline map?
- App Crashes Out with 'set start-with-shell off' HOT 8
- Tiles for the retina display HOT 1
- View bounds should be clamped to reported tile source bounds
- Deceleration bug causes multiple timers to be created, run indefinitely
- Threaded tile loading HOT 1
- Improved marker dragging
- Restrict Map area
- Bug in RMMarkerManager
- problem with two maps HOT 6
- Polygon (RMPath) tapOnMarker delegate does not get called HOT 3
- Memory leak in loading new tiles from RMDBTileImage source
- Map tiles not showing..... HOT 1
- How to use Openstreetmap in offline in Iphone
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.