Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

overlapping tilesources #48

Open
michaeltyson opened this Issue · 13 comments

9 participants

@michaeltyson

I want to have two tilesources displayed at the same time on top of each other. I guess I want
RMMapContents to have a addTileSource, not setTileSource.

@amjaliks

I am going to add this feature.

@japan2011

Waiting for this feature.

@incanus

I am hoping to tackle something like this before too long, compositing tile layers in order as necessary. Currently, I've got a workaround solution that is much higher overhead by layering RMMapViews, passing touches through the top ones, juggling the overlay layer to the top-most one, and making pans & zooms to the bottom one pan & zoom the upper ones. Compositing images would be a much better approach here.

@nyarlatoteph

I've made a TileImageWithOverlay class that extends RMTileImage and takes 2 URL sources, one for the base and one for the (semitransparent) overlay. It then uses 2 WebTileImages to take care of the loading etc, and once it's loaded, it blends the 2 images into one and returns it.

I'd attach the sources to this comment if I knew how, but there doesn't seem to be an option for it. So if anyone is interested, contact me.

@shaviraghu

nyarlatoteph : i am using route-me for my project and have a requirement to overlap maps. can u send me the code for this.
my mail id:shaviraghu@gmail.com.

thank you

@nyarlatoteph
@cellininicholas

Hey nyarlatoteph,
I'm also using route-me for my project and I need to overlay 1 web map source over another. It sounds like your code might be quite useful, could you send it to me?

My email is cellininicholas@gmail.com

Thanks

@cellininicholas

Does anyone else have the code? I'd really appreciate it ASAP.
Thanks

@shaviraghu
@shaviraghu

Hi Nyarlatoteph and cellininicholas,
I cant find the attached zip file. If you have got the source zip file please send it to me.

My email is shaviraghu@gmail.com

thank u

@cellininicholas

Thanks for the TileImageWithOverlay class BTW.

One recommendation:
You should add the custom method:

  • (void)connection:(NSURLConnection *)_connection didFailWithError:(NSError *)error to your WebTileImageClass

When it calls the RMWebTileImage method, unusual static tiles can be presented instead of retrying or failing when the download doesn't complete.
This was an issue that I ran into, just thought I would mention it.

@mita99

Hi nyarlatoteph,
I need to overlay 1 web map source over another. Could you send it to me?

My email is mita99@gmail.com

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.