google-maps-markers

Infowindow works only for 1 route, it is not working for other 3 routes in google map

末鹿安然 提交于 2020-01-07 08:32:43
问题 I have total 5 locations in google map, i have set marker for that and added route path between markers, between this path i have added infowindow, but it is working for only 1 route, not working for other 3 route, can anyone please help me why it is not working for other 3 routes, also after closing that infowindow i am not able to open that infowindow, can we set somepoint between route, and on click open infowindow, can anyone please help me to resolve this issue ? var geocoder; var map;

Custom maps marker point with picasso not loaded

时间秒杀一切 提交于 2020-01-07 03:57:27
问题 I'm implementing android Mapview with Custom marker. I'm using picasso to load image into marker view. But the maps not shows me the marker that i needed. Here's my code i = getIntent(); if(i.getBooleanExtra("maps", true)) { mactionBar.setSubtitle(i.getStringExtra("nama")); mMyMarkersArray.add(new MyMarker(i.getStringExtra("nama"), i.getStringExtra("deskripsi"), i.getStringExtra("foto"), i.getStringExtra("marker"), Double.parseDouble(i.getStringExtra("lat")), Double.parseDouble(i

Remove the previous markers as the location updates

社会主义新天地 提交于 2020-01-06 21:07:21
问题 I have placed some markers on map. As the location of the marker changes it places another marker on the map but keeping the last marker as it is which creates multiple markers of the same id on the map. I there any way to clear the previous marker as the location updates. I am retrieving location changes from firebase database in any array. Here is my code: import android.content.Intent; import android.media.MediaPlayer; import android.net.Uri; import android.os.Bundle; import android.os

How to write a conditional to detect pegman location and create popup box in GoogleMaps?

不想你离开。 提交于 2020-01-06 20:18:01
问题 I'm working on a simple game in HTML and JavaScript using the GoogleMaps API. The code I have as of now displays the map view on the left side of the screen and street view on the right side of the screen. As you move the arrow keys around, the pegman (that's the little guy that moves around the streets in GoogleMaps) rotates and moves forward and back according to the key pressed (this is a default GoogleMaps feature). The gist of the game is that once the pegman reaches "Point B", you've

How to write a conditional to detect pegman location and create popup box in GoogleMaps?

僤鯓⒐⒋嵵緔 提交于 2020-01-06 20:16:16
问题 I'm working on a simple game in HTML and JavaScript using the GoogleMaps API. The code I have as of now displays the map view on the left side of the screen and street view on the right side of the screen. As you move the arrow keys around, the pegman (that's the little guy that moves around the streets in GoogleMaps) rotates and moves forward and back according to the key pressed (this is a default GoogleMaps feature). The gist of the game is that once the pegman reaches "Point B", you've

Put marker on country

佐手、 提交于 2020-01-06 20:08:01
问题 I have a bunch of country names. Like hundreds. I want to add a marker on each of the countries that I have. If I use geocoding it says I reach the limit of requests allowed to geocode my names. So isn't there an entire "client way" of doing this without contacting the server for coordinates of the country? 回答1: You can create a kml file with the countries you want and their coordinates and then consume this in your map code. KML howto var map = new google.maps.Map(document.getElementById(

Polymer 1.0 dom-repeat with Google Maps

妖精的绣舞 提交于 2020-01-06 15:18:42
问题 I am using the latest App Toolbox and app shell structure for my polymer 1.0 project and I am having issues with a dom-repeat template in a custom element, the google-map-markers are not showing up inside the dom-repeat template. Here is the code: <dom-module ="sample-map"> <style> :host { display: block; padding: 10px; } #mapWrapper{ height: 600px; display:block; width: auto; } </style> <template> <google-map api-key="MY_API_KEY" fit-to-markers> <template is="dom-repeat" items="{{locations}}

How to remove default small-sized Google Map marker while building navigation app

你离开我真会死。 提交于 2020-01-06 09:03:52
问题 I am using the below code to draw a marker on Google Maps in a android navigation app. Marker marker = mMap.addMarker( new MarkerOptions().position(current) .anchor(0.5f, 0.3f) .icon(BitmapDescriptorFactory.fromResource( R.drawable.navigation_marker))); This marker appears successfully, but the default small-sized marker does not get removed. So, eventually I have two markers at the same time. Can you please help on how to remove the default marker? 回答1: Assuming you mean "the blue dot" or

My getMarker is always null when I click on Cluster marker

六眼飞鱼酱① 提交于 2020-01-06 05:52:06
问题 I have a problem in google maps where when I click the cluster item he always returns me null. I receive the correspondent data but I want to click on the marker and change background(to be on selected state), so I can retrieve information from the marker but can't communicate with the custom renderer. I am using a Custom Renderer like this: inner class StationRenderer(context: Context, map: GoogleMap, clusterManager: ClusterManager<Station>) : DefaultClusterRenderer<Station>(context, map,

How to increase the accuracy of my start position?

情到浓时终转凉″ 提交于 2020-01-06 03:51:08
问题 Can I increase the accuracy of my starting position ? My marker always catch the near position point of my starting point and not the staring point. Following is my coding: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main2); mgr = (LocationManager) getSystemService(LOCATION_SERVICE); Criteria criteria = new Criteria(); // Position Supporter Standard bestProvider = mgr.getBestProvider(criteria, true); //