Closed wenwuwang closed 12 years ago
Hi Jerry,
I've found for complex metro maps tiled Bitmap images perform a lot better than PDFs, so I use Bitmaps.
The position of annotations on my maps, and the geolocations of the stations are gathered manually and stored on the device.
I hope that helps!
Thank you very much for your quick answer Do you mean I need to remember the pixel coordinate of each subway station on the map? in addition, your demo use totals 4 sets of tiles,do I need to prepare four different sizes of metro map, and then tile it?
Yes, you'll need to remember each station's position on the map, unless you can come up with something more sophisticated than what I do ;)
Regarding the map/image you want to tile - decide it's minimum size in pixels (@1x), then export the largest size (@8x) and then resize it to 50%, 25%, 12.5%, 6.25% then tile each image.
yeah, Thanks a lot! For example, I have a @8x image, how do you export small size images? do you use photoshop? how do you to tile image?
At the moment I use a tool I modified myself -> https://github.com/jessedc/SliceTool but I know PhotoShop can do similar automation, it's just not my thing.
Ok, i will try to use this handy tool. I found in the metro map i select a starting point and an end point, then it will label each point dynamically on the route, the NStimer can implement this feature?The second question is what metro route transfer algorithm do you use? A* algorithm?
Dijkstra or A* are the normal route calculation methods, yeah, and as far as animating the addition of annotations - you can do that in many ways, NSTimer being one of them, I"ll leave that to you ;)
Ok, Thanks for your answer a lot:)
I find i can tab metro map for three times in your Seoul City Metro app, whether you use three size images in your app or not?in addition, i zoom in the image with two fingers, the image is still clear, this is system feature?
The production versions of my apps are not using JCTiledScrollView, they use a different method of tiling/zooming. For best results you should use a total of four sets of tiles.
Can you tell which method tiling/zooming do you use?Where have some resources to refer? I want to know the difference between JCTiledScrollView and this method.
If i use JCTiledScrollView to load and display map images, should i prepare four different size images?
yeah, thanks. I will check out these videos.
I know you have a presentation on CATiledLayer at the first Melbourne Cocoaheads 0f 2012, can give me a video link of the presentation?
As soon as the video is published I'll add it to the links. In the mean time the presentation notes are already included in the project
Just to finalise this, the video has been posted on Vimeo ;) https://vimeo.com/45293931
Hi I'm maddy, I am lookoing for similar app in Anadroid. Do you have any reference in android for the same(Metro app).
Hi, I'm Jerry I have sended you a tweet yestoday. My question as follows: