google-maps-markers

Adding Markers to Google Maps v3 After Map Created

孤街浪徒 提交于 2019-12-08 08:10:55
问题 I'm relatively new with using Google Maps API. Right now I am working on a project where a user can select various search filters and see results automatically show up on the map without reloading the page. My approach thus far has been to create a Javascript object with controls the map so that I could manipulate pieces of it as I wish (ie, centerMap(), addMarker(), clearMap(), etc). I developed several proof-of-concept pieces before beginning this phase of the project. Right now I am at the

Is it possible to use OverlayItem.setMarker() with no shadow?

随声附和 提交于 2019-12-08 06:28:21
问题 I want to display different markers on my map. One solution I could find is to define a new overlay for each marker. But then I could find that it can be done easier with OverlayItme.set Marker(Drawable marker); using a single overlay. It works fine, but the markers are drawn with shadow and I would like to display the marker icon with no shadow, my original picture has no shadow, and I want to draw it as it is. is it possible? This is how I'm doing now: markerpic = this.getResources()

Custom Google Map Icon If Value >=1

妖精的绣舞 提交于 2019-12-08 05:53:30
问题 I am using the code below to correctly show markers on a Google map using location data from MySQL database. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>All Locations</title> <link rel="stylesheet" href="css/alllocationsstyle.css" type="text/css" media="all" /> <script type="text/javascript"

Add marker on google map on touched location in Android

不问归期 提交于 2019-12-08 05:47:09
问题 Can anyone help me in the following task: I want to add a marker in google map in android. The functionality has to be like this that a pop up window have to be shown to add the touched location as a marker. I was referring the below tutorial in that they add the marker through hard coding. http://developer.android.com/resources/tutorials/views/hello-mapview.html I want it that to be done using onclck on the map. 回答1: In MapView you must use onTouch instead of onClick . The motionEvent that

How to remove the marker from the cluster in google map?

断了今生、忘了曾经 提交于 2019-12-08 04:59:01
问题 I have implemented cluster in google map and I want to update the map with the markers based on the checkbox selection. I want to remove the marker from the cluster based on the custom property that I have set in the marker. var clust = new MarkerClusterer(map, markers, {maxZoom: 14}); How can I do this? Please help me. Thanks in advance. 回答1: For each marker to remove: clust.removeMarker(marker); For each Marker to add: clust.addMarker(marker); 回答2: You need to set map null for current

infoWindow on MarkerClusterer in google maps

ぐ巨炮叔叔 提交于 2019-12-08 04:50:20
问题 I need infoWindow to be opened instead of zooming in map, when clicking on the ClusterMarker. I am using Gmaps util library MarkerClusterer for creating cluster of markers. I tried changing following line in markerclusterer.js ClusterMarker_.prototype = new GOverlay(); with ClusterMarker_.prototype = new GMarker(); so that I can get the openInfoWindow() function in the clustermarker, but that didnt worked out. Got some error. If possible, Please suggest solution so that this can be done with

How to add marker on google map using jquery-ui-map

萝らか妹 提交于 2019-12-08 04:26:13
问题 I am using http://code.google.com/p/jquery-ui-map/ HTML: <div id="map_canvas" style="width: 100%; height:400px;" latitude="123456" longitude="123456">Loading Map</div> jQuery : $(function() { $('#map_canvas').gmap({ 'center': new google.maps.LatLng($('#map_canvas').attr('latitude'),$('#map_canvas').attr('longitude')), 'zoom': 13 }); }); It is working fine but I am unable to add a marker. I have tried many option in documentation but unable to place marker. Any Idea? Thanks 回答1: http://jquery

Android Firebase remove Google Maps markers

你说的曾经没有我的故事 提交于 2019-12-08 04:16:03
问题 Trying to make a small Android app that shows the locations of people as Google Maps markers. when the user presses a button to appear on the map, the app retrieves the users data from the Firebase JSON and shows the users on the map in real time. If a user moves, the marker moves with him (removed and recreated when his location changes). Everything works great, except that when the user presses to leave the map, his marker remains in all the other phones even though it's deleted from the

How to show custom images on google maps using swift

淺唱寂寞╮ 提交于 2019-12-08 02:41:43
问题 How can I show these kind of car images in picture on google maps according to latitude & longitude? I tried the following code, but I got the following incorrect result let marker1 = GMSMarker() let marker2 = GMSMarker() let marker3 = GMSMarker() let marker4 = GMSMarker() let marker5 = GMSMarker() let markerImage = UIImage(named: "white_car_icon copy.png")!.withRenderingMode(.alwaysTemplate) let markerView = UIImageView(image: markerImage) marker1.position = CLLocationCoordinate2D(latitude:

Remove marker in google_maps_flutter

妖精的绣舞 提交于 2019-12-08 02:02:04
问题 I have added Google Maps for Flutter i know how to add a marker as it is given clearly in there examples MarkerOptions _options = new MarkerOptions( position: LatLng( driver_lat, driver_lng, ), infoWindowText: const InfoWindowText('An interesting location', '*')); Marker marker = new Marker('1', _options); //Adding Marker googleMapController.addMarker(_options); And i am removing the marker like below googleMapController.removeMarker(marker); for adding the marker it is taking MarkerOptions