google-maps-markers

Change color of response text on my snippet - on selecting the marker in android

℡╲_俬逩灬. 提交于 2020-01-06 02:32:14
问题 I am working on android with google map marker, look at the images below I want to change the color of Y & N according to the response, like if it is Y I want the color should be GREEN & if it is N then the color should be RED. Right now both Y & N are having RED color because I have written following code: <TextView android:id="@+id/response" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="5dp" android:layout_toRightOf="@id/response_lbl"

Enabling and Disabling Dragging Markers by Checkbox

*爱你&永不变心* 提交于 2020-01-05 08:56:24
问题 Can you please take a look at this Demo and let me know how I can make the markers Dragable when the check box is unchecked. Please be informed that all markers has their own associated checkbox it means that user can lock each marker which they want( Not all together). Initially all Markers are unchecked when they loaded to page . And finally I need to change the icon when the marker checked as lock. var contentString = ' -- Lock <input name="your_name" value="your_value" type="checkbox">';

How to use relative path in Angular Google Maps directives?

徘徊边缘 提交于 2020-01-05 02:23:05
问题 I'm trying to set a custom marker on an AngularJS Google Map: <google-map draggable="true" style="display:block; width: 100%; height:100%;"> <markers> <marker ng-repeat="marker in markers" coords="marker" icon="../img/marker-map.png"> </marker> </markers> </google-map> This code throws the following error: Error: [$parse:syntax] Syntax Error: Token '.' not a primary expression at column 1 of the expression [../img/marker-map.png] starting at [../img/marker-map.png]. On the Angular Google Maps

Causing links to pan to and open markers in map

拜拜、爱过 提交于 2020-01-04 09:05:24
问题 JS Fiddle: http://jsfiddle.net/megatimes/NVDLf/7/ I have a map which is creating multiple markers from an array. Below the map are some links which, when clicked, I'd like to cause the map to pan to its respective marker, and open the info window. Given that I don't want to generate the links themselves as part of the loop that creates the markers, how can I do this? I'm fairly certain this is a scope issue since the links below the map each open the last item in the locations array but I can

Markers change position with zoom in/out

◇◆丶佛笑我妖孽 提交于 2020-01-04 06:09:03
问题 I'm using the Google Maps API v2 for Android, and I want to place a couple of markers on the map. I have the code as following @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.fragment_map, container, false); MapFragment fm = (MapFragment) getFragmentManager().findFragmentById(R.id.map); map = fm.getMap(); rootView.findViewById(R.id.map_hybrid).setSelected(true); map.setMapType(GoogleMap.MAP

Markers change position with zoom in/out

ⅰ亾dé卋堺 提交于 2020-01-04 06:08:09
问题 I'm using the Google Maps API v2 for Android, and I want to place a couple of markers on the map. I have the code as following @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.fragment_map, container, false); MapFragment fm = (MapFragment) getFragmentManager().findFragmentById(R.id.map); map = fm.getMap(); rootView.findViewById(R.id.map_hybrid).setSelected(true); map.setMapType(GoogleMap.MAP

draw overlay line on google static map with markers

不想你离开。 提交于 2020-01-03 17:31:12
问题 i used this url to draw map with overlay line http://maps.google.com/maps/api/staticmap?size=400x400&zoom=13&path=color:0xff0000ff|weight:5|40.737102,-73.990318|40.749825,-73.987963&sensor=false i want to add markers to start and end position.. so i used the url below maps.google.com/maps/api/staticmap?size=400x400&zoom=13&path=color:0xff0000ff|weight:5|&markers=color:blue|label:S|40.737102,-73.990318|40.749825,-73.987963&sensor=false this url shows markers but not the overlay line.. please

Strange ArrayIndexOutOfBoundsException on some devices while drawing polylines

陌路散爱 提交于 2020-01-03 15:20:07
问题 Below is the code that I am using to draw routes. Whenever the user pauses the workout I want to show this path as pink polyline. I therefore made my own interface named MapHelper and taken one boolean as isPause and lastPause . When the user saves his/her workout I save all route points as array and on typical list I am displaying this maps as feeds and for that I am using lite mode version of Googlemap. Below is my adapter class Adapter.java public class FeedsAdpter extends RecyclerView

Adding markers dynamically to flutter google map

廉价感情. 提交于 2020-01-03 13:32:13
问题 I'm using Flutter to make a mobile application that uses a map. We decided to use Google map and the plugin for flutter we use is: google_maps_flutter: ^0.5.7 I understand that adding markers to the map works like this: Map<MarkerId, Marker> markers = <MarkerId, Marker>{}; Marker _marker = new Marker( icon: BitmapDescriptor.defaultMarker, markerId: _markerId, position: LatLng(34.024441,-5.0310968), infoWindow: InfoWindow(title: "userMarker", snippet: '*'), ); GoogleMap _map; @override void

Bring Google Map Markers to Front by Changing Z-Index in Android

允我心安 提交于 2020-01-03 08:18:27
问题 I am creating a map based application where i show pings based on a latitude/longitude service mMap.addMarker(new MarkerOptions() .position(mLatLng) .title("" + name) .snippet("" + pingDate) .icon(BitmapDescriptorFactory.fromBitmap(icon))); According to google map v2 api, markers are drawn in a top to down approach, so my pings gets hidden if there are fully/partially above each other. My question is, can i change the Z-Order axis or anything by which i can change the z position of a marker ?