google-maps-markers

Rotate marker as per user direction on Google Maps V2 Android

假如想象 提交于 2020-01-17 10:18:19
问题 I want to rotate marker as per bearing or sensor value received from Accelerometer to show the user where actually he is moving. I have set marker icon and flat value to true but its not working as required. mCurrentLocationMarker.position(new LatLng( LocationUtils.sLatitude, LocationUtils.sLongitude)); mCurrentLocationMarker.icon(icon); mCurrentLocationMarker.flat(true); mCurrentLocationMarker.rotation(LocationUtils.sBearing); if (currentMarker != null) { currentMarker.setPosition(new LatLng

Call function initmap with parameters in gmaps api

荒凉一梦 提交于 2020-01-17 08:35:33
问题 I have this function, the default function from google maps api tutorial, I have just added 2 parameters latt and lngg. function initMap(latt,lngg) { var uluru = {lat: latt , lng: lngg}; var map = new google.maps.Map(document.getElementById('map'), { zoom: 15, center: uluru }); var marker = new google.maps.Marker({ position: uluru, map: map }); } And I want to call it like they call it : <script async defer src="https://maps.googleapis.com/maps/api/js?key

How do I get a pin on Google Maps using location from a variable? [closed]

╄→尐↘猪︶ㄣ 提交于 2020-01-17 05:18:10
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I want to place the pins on my Google Maps map with a variable containing the location, when I make one like this, my pin works. var imageDriver =

Changing titles of endpoint markers in a Google Maps route

亡梦爱人 提交于 2020-01-17 04:36:06
问题 I have a simple test webpage, which displays driving directions: It works well, but my problem is that the start and end markers of the shown route have the meaningless titles "A" and "B". I would like to use ReverseGeocoding to fetch the titles of the 2 route endpoints. So I have prepared the following code and the addresses are fetched correctly and are printed out using console.log : <!DOCTYPE html> <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta

How to find if a geo-location is on a road between two points?

痴心易碎 提交于 2020-01-16 18:34:37
问题 I am a student working on an android application related to navigation trying to learn android programming. The application needs to search the geo-locations (latitude,longitude) among the ones available and find out which ones fall along the route the user is travelling. For example, if the user is travelling from 37.422,-122.084058 to 37.422,-122.084058, then I should be able to search the points that fall along this route from the set of points that I have. How do I do that? I am getting

How to find if a geo-location is on a road between two points?

给你一囗甜甜゛ 提交于 2020-01-16 18:34:13
问题 I am a student working on an android application related to navigation trying to learn android programming. The application needs to search the geo-locations (latitude,longitude) among the ones available and find out which ones fall along the route the user is travelling. For example, if the user is travelling from 37.422,-122.084058 to 37.422,-122.084058, then I should be able to search the points that fall along this route from the set of points that I have. How do I do that? I am getting

Get Geopoints from SQlite DB

半城伤御伤魂 提交于 2020-01-16 15:43:02
问题 I created an SQlite database to store on it all latitudes and longitudes to display them in map. For the add of the values i didn't encouter any problem, i used this code: CoordBD CoordBd = new CoordBD(this); Coordo coordo = new Coordo(36.869686,10.315642 ); CoordBd.open(); CoordBd.insertCoordo(coordo); But i don't know how to insert them one by one in map, i usually/manually make this: GeoPoint point2 = new GeoPoint(microdegrees(36.86774),microdegrees(10.305302)); pinOverlay.addPoint(point2)

Get Geopoints from SQlite DB

房东的猫 提交于 2020-01-16 15:42:40
问题 I created an SQlite database to store on it all latitudes and longitudes to display them in map. For the add of the values i didn't encouter any problem, i used this code: CoordBD CoordBd = new CoordBD(this); Coordo coordo = new Coordo(36.869686,10.315642 ); CoordBd.open(); CoordBd.insertCoordo(coordo); But i don't know how to insert them one by one in map, i usually/manually make this: GeoPoint point2 = new GeoPoint(microdegrees(36.86774),microdegrees(10.305302)); pinOverlay.addPoint(point2)

Google Maps url how to define circular marker?

你说的曾经没有我的故事 提交于 2020-01-15 05:28:25
问题 I want to open the default maps app but instead of the default marker i want a circular marker. this is what i have... case Device.Android: if (!string.IsNullOrEmpty(_imovel.Endereco.Freguesia)) { uri = new Uri("https://www.google.com/maps/search/?api=1&query=" + _imovel.Endereco.Freguesia); } else if (!string.IsNullOrEmpty(_imovel.Endereco.Concelho)){ uri = new Uri("https://www.google.com/maps/search/?api=1&query=" + _imovel.Endereco.Concelho); } Device.OpenUri(uri); break; and this is what

Make marker draggable after single click in Android

偶尔善良 提交于 2020-01-14 08:01:08
问题 I am doing a little project on Android with Google maps. And I have one question - it is possible to make marker draggable with single click on it, not after long press. For example: I click marker, it changes icon and I can drag it anywhere in map, and then after another tap he will not be draggable again and changes its icon back? (Marker must be draggable all the time from first tap to second even if you release it) 回答1: @user2595870: Hello, I know it should be in comment but due to less