I show on my Android App a map with stores on its location with the posibility to see the street view.
I want to show the store's exact location in the street view, so, Is there a way to add a marker on StreetViewPanoramaView?
I know that it is possible on Web with Overlays within Street View but I don't find anything for Android.
Thanks.
Yes, it is possible on Web and IOS. However, its not available for Android platform. This is more likely a feature request.
I found this blog which shows how to display StreetViewPanoramaView with markers. You can use this as a work around: http://android-er.blogspot.com/2015/11/display-streetviewpanoramaview-in.html
Related
I have an android app that is supposed to track an order that is in a certain truck at a given time .Am using the google maps android api for this , my problem is that my map is not detailed enough to show without much effort where the truck is? Could this be an issue with the plan am using ,because am using the standard plan or what might be the issue. i know its a simple question but am not so sure what is happening,thanks in advance.
So if i get it right, your map is already working, but its not detailed enough? You can switch your View to Satellite View like this:
mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);
And if you increase the zoom, you get a more detailed View, for Example:
// Move the camera instantly to yout specific location with a zoom of 17.
mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latlng, 17));
I am trying to create a Location based augmented reality app which plots marker on top of the camera view.
Mose of the libraries and tutorials are outdated and they are 4+ years old also not stable. Below is the link to things which i have tried and failed.
Links to libraries
Link to tutorial
Link to stack
Im trying to create something like below image which is an iOS app developed using HDAugmentedReality which is very stable and does not overlap.
Since i could not find any library I'm planing to use Google Maps, It rotates according to camera with simulates AR. So i am planning to show only the markers and hide the Google Map View. If this is possible i can easily create an Location based AR app..
Is it possible to hide Maps but show Markers or is there any library which i missed? Thanks in advance .
I believe you can't use the Markers without showing it on Maps. The main purpose of it is to identify the location on a map. My suggestion would be for you to use your own custom overlay for the marked items you'll show.
Check out the Sun Surveyor, its not similar to what you'll do, but the idea of overlaying the information seems plausible (as indicated on the tutorial link you provided).
How to add a polyline to google map in android above street/area name?
I think this is not possible in an easy way due to how google maps API handles the "background".
If you set the background to normal or hybrid, the map is drawn as a background either in road view like your screenshot or in satellite view if hybrid is selected.
Then all the users features are drawn (and eventually overlays, lines, poligons, then points and lastly, street names. You can't really change this, but you could do a trick:
- Use just the satellite view (so no roads will be added).
- Remove the google background and add an alternative one (there are different services like Open Street Map, Mapnik ecc that allows it).
Following the second choice could also allow to add googlemaps background from web api, but I really don't advice to do it, since you are downloading tiles in a non standard way for google.
I want to create a custom map for my app.
the things i want are:
it will be a custom map designed by us for a event location(not google map).
all the locations will be displayed on the map like google markers.
just like google map i want users to select a location and get direction from his/her current location to selected destination within that area(my main concern).
Are there any possible solutions to this? Any links, suggestions to start with please let me know.
This is very imp. for me..thank you.
I suggest you look at the OpenStreetMap project. They have all the components you need but it is not going to be a simple task for an area of any size
I am building a web app which contains a Google Maps link that can be opened by the native phone Maps app (iPhone/Android).
The link has the form:
http://maps.google.com/?q="+startCooLat+','+startCooLng;
and I have also tried the:
http://maps.google.com/?q=loc:"+startCooLat+'+'+startCooLng;
However in the native app the marker is positioned in the nearest street and not in the exact coordinates that I am giving. Is there a solution or another parameter to set so as to overcome this issue?
Instead of questioning (q=.....) google maps for the location, in which it returns what it thinks is the nearest human address to the location (somewhat annoying I think) you can pass a lat lng location where you want the center of the map to be. For example:
http://maps.google.co.uk/?ll=53.385517,-1.865315
Instead of:
http://maps.google.co.uk/?q=53.385517,-1.865315
I had this problem my self, and on my Android device at least this works. The second example simply puts the map on a road, the first is in the middle of the moors on the device in the maps app.
The full link from the comments:
http://maps.google.com/maps?ll=53.385517,-1.865315&q=loc:53.385517,-1.865315&t=m
This one seems to work at adding a marker for the standard maps app whilst still adding a marker.
After receiving a recent answer to an old Android Google Maps question I had, I have found another solution to this question, which I thought would be useful for others. Original Question - and credit to Captain Charmi for pointing me in the direction.
Instead of using the link above which will create a marker at the given location, trouble is, the maker is pretty meaningless, just the coordinates. If you use the following link, you can add either a title to the marker and show the coordinates:
http://maps.google.com/maps?q=53.385517,-1.865315+(My Random Location)
Or you can instead of adding a title, you can supply text to go inside the marker:
http://maps.google.com/maps?q=A pot of gold at the end of a rainbow#53.385517,-1.865315
As you can see, Google now drops the marker in the correct place due to being supplied the info for the marker. I hope this helps.