marker

Java Errors in Android App

*爱你&永不变心* 提交于 2019-12-14 03:36:28
问题 I'm trying to to implement a addProximityAlert when an info window is clicked googleMap.setOnInfoWindowClickListener( new OnInfoWindowClickListener(){ public void onInfoWindowClick(Marker marker) { public void addProximityAlert(double latitude, double longitude){ LatLng clickedMarkerLatLng = marker.getPosition(); double lat = clickedMarkerLatLng.latitude; double long1 = clickedMarkerLatLng.longitude; Log.e("hello", "Output=" + lat + long1); LocationManager lm; // double lat=123,long1=34; /

How to remove Marker and redraw it again when changing location on Android map

丶灬走出姿态 提交于 2019-12-14 00:25:51
问题 ////Before editing I am using the below code to redraw a Marker on android map, actually it redraw a marker but it doesn't remove the old one, I tried mapView.invlaidate but it didn't remove the old one. Here is the onLocationChanged function: @Override public void onLocationChanged(Location location) { // mapView.invalidate(); //getCurrantPoint(); OverlayItem currentOverlay = new OverlayItem(getCurrantPoint(),"Current Location","Here is my current location!!!"); itemizedoverlay2.addOverlay

how can get the information for place on google map?

回眸只為那壹抹淺笑 提交于 2019-12-14 00:13:29
问题 I want to use information from Google when I search restaurant or some place i tried to make start an activity when the marker in Google Maps is clicked so use the onMarkerClick but it have only name, address, place ID what i need @Override public boolean onMarkerClick(Marker marker) { Id = marker.getId(); String Title = marker.getTitle(); String Address = marker.getSnippet(); switch(databaseCheck){ case 1: Intent intent = new Intent(mActivity, PopupGrid.class); intent.putExtra("Title" ,

How to change icon of previously clicked marker in angular google maps

喜你入骨 提交于 2019-12-13 22:39:43
问题 I managed to change the icon of currently clicked marker using the below code. I have multiple markers on page. Now the issue is , if i click the second marker, the icon of the previously clicked marker should be changed to its original one (inactive.png) and the icon of currently clicked marker should use (active.png).How can I achieve this? Please help. In the below code if m.isClicked is true, then inactive.png is used, else active.png is used. <agm-marker *ngFor="let m of mapArrayList"

Google Maps: Select previous Marker on Polyline

自闭症网瘾萝莉.ら 提交于 2019-12-13 10:39:01
问题 I'm doing an application with google maps API that have a JSON with the marker's coordinates. Then I draw polylines between the markers. I also implemented a function with a onclick event that creates a new marker inside the polyline. This marker has to show information of the previous marker in the polyline (the one taked of the JSON, not a clicked one). But I don't know how to take the previous vertex(marker) of a selected polyline. Code: (function() { window.onload = function() { var

Google Map Android : Marker above Circle

↘锁芯ラ 提交于 2019-12-13 09:13:34
问题 I want to achieve like that in my application, I know about to draw a circle, but I need to show the marker in above right side of the circle in below image I want to show 10Km above the circle if anyone knows about that plz help me. I know about this question but kind find any solution. If you know lat lng of the circle(outside edge) draw that also helpful for me. 回答1: @Adny is right about that, I am also using SphericalUtil class to solve this type of problem, You can use this SphericalUtil

set marker google maps javascript api

扶醉桌前 提交于 2019-12-13 09:06:15
问题 I am trying to create with the google maps javascript api the following: After page loading a marker should become set at the users location, what now works. After that should where the user click on the map a marker become added and the previous one deleted. One marker should be only on the map. Now the previous marker wont become deleted and other become added what I dont want. What can I do to have always one marker on the map? var markers = []; function initMap() { var map = new google

fatal error: unexpectedly found nil while unwrapping an Optional value (lldb)

情到浓时终转凉″ 提交于 2019-12-13 08:47:39
问题 I'm trying to add marker in google maps with long touch in swift !!!!! and when i add below code some errors raised ! class ViewController: UIViewController, CLLocationManagerDelegate, UIGestureRecognizerDelegate { var mapView: GMSMapView? var locationManager = CLLocationManager() var locationMarker: GMSMarker! override func viewDidLoad() { super.viewDidLoad() let longPressRecognizer = UILongPressGestureRecognizer(target: self, action: #selector(ViewController.handleLongPress(_:))) self

Google Maps - Marker Cluster issue

可紊 提交于 2019-12-13 08:27:00
问题 I am trying to improve my Google Map and add there Marker Cluster function but I really do not know how to continue. It still give me gray map (nothing shown). Is there anyone whould could check the code and give me tips? Thanks. This is code I use (sorry for large array): <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/src

Google Maps v3 marker over infowindow

假如想象 提交于 2019-12-13 08:13:53
问题 I need to display marker over opened infowindow. Here is an example of what I'd like to do If I understand correctly, the property zindex for marker and infowindow not act for each other. 回答1: You are correct, the z-index property works only along with the same type of objects (relative z-index) . Marker z-indexes compared with other Markers, Polygons with other Polygons, and InfoWindows with other InfoWindows. Each of these types have their own layer z-index related to each other that cannot