Code Monkey home page Code Monkey logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
Given you ownership and svn access.

Original comment by [email protected] on 13 Oct 2008 at 3:16

from route-me.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
Is this done? Can we close the ticket?

Original comment by [email protected] on 27 Oct 2008 at 2:47

from route-me.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 22, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.