How to load image as map in osmdroid - android

maybe my question is so stupid, but... I would like to load image into map. I mean, I need to have all possibilities to draw markers on my map, but a background should be totally custom. Is it possible with osmdroid or something different?

You can use custom tilesource with youre image sliced into tiles (tiles are little square images containign little areas of map for particular zoom). So you'll have to slice your image and place slices in a proper directory structure according to their golocation. I guess you can find plenty of tools which can help you with slicing. If you don't have more "zooms" of the image you can lock mapview in one particluar zoom (so zooming will not work).

Related

How to show a map which is a big image?

I got a png image which is 5000x5000. This image is some sort of map. I wanted to display the image in an imageview and this gave me an outOfMemoryException(of course). So i tried to set a sampleSize, but this decreased the resolution which makes the map not very usefull.
So basically I want to show this image and be able to zoom and scroll without resolution loses. What would be the best approach?
I am a fan of Dave Morrissey's SubsamplingScaleImageView, which seems to cover what you want. Quoting the project documentation, it is:
A custom image view for Android, designed for photo galleries and displaying huge images (e.g. maps and building plans) without OutOfMemoryErrors. Includes pinch to zoom, panning, rotation and animation support, and allows easy extension so you can add your own overlays and touch event detection.

Android zoomable view with pin

I'm looking for tips or a lib that can help me with this challenge: I need to build a widget that is similar to a Map View. I mean, I have a huge image that will be used as background and a list of coordinates that should be used as pins over the image.
I need to achieve an experience similar to a Map View (pan, zoom and pinch gestures) and treat pin clicks. Once placed over the image, a pin should note move its position considering the background image.
The problem is not really new, but I couldn't solve it yet. I've tried a WebView with some html but the image is rendered really blurry.
Any tip? Any Github project? I've googled a lot and found no answer.

WMS-C with osmdroid

I´m using the code provided by Stephen Potell for displaying WMS tiles in osmdroid. (https://groups.google.com/forum/?fromgroups=#!topic/osmdroid/WtRrQCIfYVk)
At first it seems like the tiles are displayed correct. After adding a my location overlay or an path overlay the tiles or the overlays are displayed incorrect. Assuming the overlays are correct it may seem like the tiles are either one zoom level wrong or the tiles are displayed "one tile off in y-direction".
When enabling multitouchControls in OSMDroid and barely zoom in (just one slight touch) and "hold the zoom" the tiles and overlays are in right location. If going one zoom level in or out the overlays are again positioned wrong.
I have tried playing around with values in WMSMapTileSource but with no luck.
Any help would be appreciated.
Ole T.

create map shopping center (for example) on android

I Never faced with the task to create a map of the shopping center (for example)
I did a project using a single image as a map, image was maximum size, but the image quality is not enough. I understand i need many small images. if user scrolling or zoom or fling map i programmatically change images...
but,I do not know where to begin, please help me your solutions

Scale the image for a map overlay - google maps

I followed the tutorial for map overlays that Google offers (http://developer.android.com/resources/tutorials/views/hello-mapview.html) and it works fine, except the image for the overlay doesn't scale when you zoom in and out. I have Maps zoomed in on a city, and I want to put markets on several of the buildings, but the overlay image doesn't scale when it zooms in. Is there a way to have the overlay image scale up and down as users zoom in and out?
I have seen the answer where they used vector circles as the points on the map. That wont work for me, because I need to use custom images as the point on my map.
If you want to see my code, I can post it, but it is the exact the same as the example, except for some variable name changes.

Categories

Resources