6

I want to load a number of tiled layer and animates them. In iPhone we have mapping package called Route-Me. Is there is any mapping package for android like Route-Me? Do you know if the built-in mapping package for android easily supports external tiled layers?

user
  • 86,916
  • 18
  • 197
  • 190
Altaf
  • 5,150
  • 10
  • 39
  • 55

2 Answers2

0

Android maps doesn't support this feature. You should look into osmdroid or one of the other open source maps implementations.

Edit: To provide extra detail:

The osmdroid project can be found here.

Here is a question on stack with some implementation but still struggling with some detail: OSMDroid simple example required.

Here is another similar stack question with additional detail.

Here is the osmdroid example with custom tile source.

Community
  • 1
  • 1
Warpzit
  • 27,966
  • 19
  • 103
  • 155
0

Yes, the Google Maps API supports Overlays but, unlilke Route-me or iOS4, you have to do all the heavy lifting yourself in the onDraw() method.

Philippe Girolami
  • 1,876
  • 1
  • 13
  • 15
  • Could you give an example, we're talking custom tiles. Which btw isn't allowed based on the documentation afaik. – Warpzit May 03 '12 at 16:03
  • I don't see where the documentation doesn't allow it. In fact AndNav does it : http://code.google.com/p/osmdroid/source/browse/trunk/osmdroid-android/src/main/java/org/osmdroid/views/overlay/TilesOverlay.java – Philippe Girolami May 03 '12 at 22:45
  • Your linking to osmdroid, they have their own map implementation... here is another link to a similar post with a reply from commonsware (who knows a fair deal about android) – Warpzit May 04 '12 at 10:30
  • Please look at my link before shooting it down : it's an overlay implementation that does exactly what the OP wants. He can adapt it to his need and its proves it can be done. – Philippe Girolami May 04 '12 at 13:26
  • Yes but it is not android mapview. It is a custom view called osmdroid. Just trying to point out that youre wrong when you say google maps api supports this feature. – Warpzit May 04 '12 at 15:15
  • Go read about osmdroid. It also uses openstreetview maps data. Its completly decoupled from google mapview. – Warpzit May 04 '12 at 15:17
  • I still don't understand what you're talking about. The issue here is Overlays (no matter what map background). This is what the OP wants. The code I link to handles overlay image positionning, downloading & caching. Did you notice that someone else left a link to the same project on your answer... – Philippe Girolami May 09 '12 at 08:17
  • And by the way, I've actually written an app that does that so I am right when I say google maps api supports it. – Philippe Girolami May 09 '12 at 08:23
  • But you are not just overriding the onDraw of the google mapview. You are using osmdroid. Which isn't google but someone else. That was my point, nothing else. You are right in everything else. – Warpzit May 09 '12 at 08:29
  • Oh, that's your argument ! There isn't a "TiledPngOverlay" class provided by google. Ok, but that's not what the OP is asking... he's asking if it "easily supports it". I wouldn't say it's easy if you write it yourself but there is code out that does make it easy. – Philippe Girolami May 09 '12 at 09:48
  • I never argued you were wrong about osmdroid, or that you weren't right it was possible, I only stated you wasn't correct with google maps, as it isn't google maps but osmdroid. If microsoft made a maps implementation for android called bing.maps you wouldn't go around calling it google maps now would you? – Warpzit May 19 '12 at 05:44
  • Seriously... you're coming back for more ? Stop, you're making a fool of yourself : it is possible to do a tiled-PNG overlay using google's APIs. Period. – Philippe Girolami May 21 '12 at 13:10
  • Sorry for going into detail with words. The OP just need to use osmdroid and he's good :) you can call the api whatever you feel like and your good. – Warpzit May 21 '12 at 13:29
  • Quoting from your own comment "Which btw isn't allowed based on the documentation afaik". That's not "going into detail with words", that's just something I proved wrong. Can you not simply accept having made an honest mistake and that you learned something. That's the whole point of this site you know... learning & sharing. – Philippe Girolami May 22 '12 at 08:34
  • I didn't learn anything, you didn't learn anything, but I don't care, have a nice day. – Warpzit May 22 '12 at 08:42