Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Hello everyone i am stuck into one problem. I am working on Application in which Mall Map required to integrate.

I need to display Mall map like this: enter image description here

I have done proper r&d but not found any solution yet.

Can it be possible if yes then how can i implement this ?

Any hint or suggestion will be appreciated.

Thanks.

share|improve this question
    
You need GPS on it? Otherwise just display it like a pdf... Or image. –  William Falcon Jun 12 '13 at 13:23
    
@waf no i don't want to use GPS. –  Mayur Jun 12 '13 at 13:24
    
Then just display it in a UIImageView.. If you want it to be scrollable put the UIImageView in a UIScrollView –  lukaswelte Jun 12 '13 at 13:25
    
@lukaswelte yes i can go for this alternate –  Mayur Jun 12 '13 at 13:35
    
please can you describe more about your stuff.? where come from this..? this is PDF or image..? –  Nitin Gohel Jun 12 '13 at 13:36

1 Answer 1

up vote 1 down vote accepted

You could display the map in a UIImage and place this image in a UIScrollView. After that you need to divide the image into region rectangles, each identifying one room.

When the user taps the UIScrollView you need to determine which region he tapped on.

Using your room grid you can detect which room he tapped on. Of course this is easier for not zoomed images.

In a zoomed state you need to convert the touched point to the "unzoomed touched point" and check this point for the grid.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.