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

Resizing RMMapLayer #26

Open
mtoon opened this issue Feb 22, 2012 · 7 comments
Open

Resizing RMMapLayer #26

mtoon opened this issue Feb 22, 2012 · 7 comments

Comments

@mtoon
Copy link

mtoon commented Feb 22, 2012

Good morning! I've run into something else that I'm hoping is just user error... I am returning a RMMapLayer that has an image assigned to it (e.g.: layer.contents = image), but the layer is not being resized during zoom... When I scroll off the annotation and back on, it is ok (the layerForAnnotation sizes it depending on zoom). Is this something that this library will natively support or do I need to add something.

Thank you!

@trasch
Copy link

trasch commented Feb 22, 2012

I haven't needed it yet, so it's not in the library yet. It's not difficult to add. The scaling part would go to RMMarker, and you would kick it off in correctScreenPosition... I think. If you need help, I can have a look at it tomorrow, since it's now evening here... :-)

@mtoon
Copy link
Author

mtoon commented Feb 24, 2012

I haven't looked into this yet, but I will. Quick fix was to remove and add the annotation within the didZoom delegate method. But now that the release is out the door, I can dive in deeper. Thanks!

@incanus
Copy link

incanus commented Jun 28, 2012

Bump on this issue, in case you have time. No hurry, but it's in our queue, too.

@mtoon
Copy link
Author

mtoon commented Jul 8, 2012

Totally random, but I've been deep into OpenGL lately and I've started layering tiles onto terrain meshes ( http://sphotos.xx.fbcdn.net/hphotos-ash3/552320_441652562535909_2099237494_n.jpg) and there are some great side-effects of this particular method. I was wondering if anyone has looked at this as a feasible way to replace the tiled layer in general. Basically, I've been scratching out an overall design to replace mapping with tiled openGL quads. Then if you returned simple openGL quads with images as textures for overlays then just let the GPU deal with resizing/etc. This could also be more portable to other platforms... Thoughts? I know this is totally tangential, so let me know if there's a better forum for discussing... (Yet another side idea.. is there already a Facebook page for iOS mapping devs? If not, I'm more than happy to create one).

@mtoon
Copy link
Author

mtoon commented Jul 8, 2012

Anyone that's interested, I just created this page on Facebook.. http://www.facebook.com/pages/IOS-Mapping/262529490513286 for tossing around ideas about mapping in general.

@trasch
Copy link

trasch commented Jul 10, 2012

@mtoon Please don't hijack unrelated issues since that messes up the discussion.

Apart from this I'd be happy to beta-test your flight simulator... :)

I think what you're doing there is an interesting approach to bring some 3D functionality to route-me and I'd be happy to help where I can (but I haven't yet done any OpenGL development, so that might not be very much). Performancewise, I think it would be hard to beat CATiledLayer - I am pretty sure that it's already based on OpenGL and does its rendering on the GPU...

@mtoon
Copy link
Author

mtoon commented Jul 10, 2012

No worries. That's why I created the page on FB so that if anyone wanted a place to just talk about random mapping issues. I do apologize for posting it here. I'll start playing with this and then post a new fork if applicable. Thanks again for all the help!

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

No branches or pull requests

3 participants