I need overlay an map image on a MapView, which will hide the the real map from the user
when user offline i want to show fake map instead of
Thanks in advance
Besides photoshop, you can put a basic image view on top of the map, but it wouldn't react the same way the map does to touch inputs. Not sure what goal is. If you want offline maps, there's always this
https://github.com/osmdroid/osmdroid/wiki/Offline-Map-Tiles
Related
I am trying to make an indoor map of a hospital , when i click on certain buildings it would open their respective indoor maps and when i select a certain area of their respective floor it would show me further details.How can I achieve this?
Any suggestions would be appreciated.
P.S I have tried using image view but i can't get the image to scroll freely like a real map or a webview (pinch zoom in/zoom out ,rotation etc).
As you wanted your "floor" to have the behavior of a map you should have look for custom map implementations.
Then you may have found that you can use your own Tile Overlay using a Custom Map Tile Provider as described in Using custom map tiles with Google Map API V2 for Android?
Or if you don't want to use Google, you can look at Open Street Map Android SDK
Ether way you are still responsible for the graphical assets of tile layers. As well as any UI/UX leading to the custom map view.
Alternatively there are third-party libraries for 'deep zoom' of an image which may provide the expected touch behavior like: https://github.com/davemorrissey/subsampling-scale-image-view
You can have rooms as scolling views, with a background view image and buttons where you want to click. Clicking the buttons opens a popup with an image. You can also place transparent buttons on the buildings to have a natural feeling of click to open.
From your question it seems that you don't want to use web view, but you can code a regular html page/web app and use a web view to display it. That way, you only have a screen with a web view to deal with.
Then the possibilities are endless and fun and shifts in the web domain!
I am building an android app and I am trying to figure out a way to place custom markers in Google Streetview, something like hotspots that display images when clicked and move along with the camera so that they go off screen if necessary. I have no experience at all, so I would at least understand where to start studying.
Would it be possible with CSS position properties?
Edit: I am searching for a way to locate them in street view mode, not in map mode.
Marco! Work with markers is very simple. For drag-drop marker you should override methods onMarkerDragStart, onMarkerDrag, onMarkerDragEnd. All click on marker call infoWindow. So, you can set your InfoWindowAdapter to map and implement your code logical here.
For concurrent moving camera with marker (right me understand?). Unlike ios version of google map, you can catch only final position of your camera (analoge idleCameraPosition on ios). So, i think you have to move marker first, and after it set camera to marker position
The best way to understand simple things of android google map is https://developers.google.com/maps/documentation/android-api/signup
I want to create an overlay over map so that when map is scrolled the center/marker will be fixed and i can get Location data from that point.Take a look at image for what i want to achieve.
I google a lot Please Suggest me little how to achieve this functionality.I don't think it's possible using ground overlay.
i want to develpe map like below link
https://developers.google.com/maps/location-based-apps
Currently i am Using Compute on map to capture scroll , i am using google api but its taking long to get responce data and drop pin
is there any native way to do this?
thanks
In android you need events fired on map change.
Have a look at: How to catch that map panning and zoom are really finished?
and http://mpcabd.igeex.biz/android-map-view-with-pan-zoom-events/
I want to show multiple users through markers on map. I want my location should be in center with marker and others are around me. I want to show different image marker for every user. I dont want to use same image for all the user's.
Any tutorial would be a great help.
You can use these tutorials and use custom Images for each user
Google Map View
Android: Double Taps on a MapView with Overlays