Outdooractive / route-me

Open source map library for iOS
Other
122 stars 400 forks source link

Resizing RMMapLayer #26

Open mtoon opened 12 years ago

mtoon commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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

mtoon commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

@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 commented 12 years ago

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!