google-maps-markers

Adding time delay to google map geocode

与世无争的帅哥 提交于 2020-01-03 03:04:12
问题 I'm working on this map and trying to geocode around 150 markers but I'm hitting the geocode limit. How can I add a time delay to avoid hitting the limit? 回答1: This adds a timer to the geocoding so each marker has a delay. // Adding a LatLng object for each city function geocodeAddress(i) { geocoder.geocode( {'address': address[i]}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { places[i] = results[0].geometry.location; // Adding the markers var marker = new google

Custom Marker Options in google map

早过忘川 提交于 2020-01-02 23:36:52
问题 Can we make Custom MarkerOptions in google? I want to use Custom MarkerOptions to show image in Dialog box like Containng Name as title, and two image within it. <ImageView android:id="@+id/badge" android:layout_width="18dp" android:layout_height="wrap_content" android:layout_marginRight="5dp" android:src="@drawable/image_2" android:adjustViewBounds="true"></ImageView> <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical">

Google forEach map.data feature - return feature LatLng

淺唱寂寞╮ 提交于 2020-01-02 22:16:32
问题 I am trying to iterate through GeoJSON map.data using a forEach. I want to return the position (LatLng) of each feature so I can add it to my markers array based on a feature property. Here's my attempt: allMarkers = []; jQuery.getJSON('json.php', function(data){ points = map.data.addGeoJson(data); }); var eid = 30; map.data.forEach(function(feature){ if(feature.getProperty('eid') === eid){ LatLng = feature.getGeometry().LatLng; //not sure how to get LatLng id = feature.getProerty('id'); var

Google forEach map.data feature - return feature LatLng

让人想犯罪 __ 提交于 2020-01-02 22:16:13
问题 I am trying to iterate through GeoJSON map.data using a forEach. I want to return the position (LatLng) of each feature so I can add it to my markers array based on a feature property. Here's my attempt: allMarkers = []; jQuery.getJSON('json.php', function(data){ points = map.data.addGeoJson(data); }); var eid = 30; map.data.forEach(function(feature){ if(feature.getProperty('eid') === eid){ LatLng = feature.getGeometry().LatLng; //not sure how to get LatLng id = feature.getProerty('id'); var

Multiple Markers on Map with different icons and titles

这一生的挚爱 提交于 2020-01-02 18:36:08
问题 I have updated my question please review it Iam developing Blood Donar app in android.In that Iam using Google Map to display the donar on map.To show multiple markers on map I am trying this code but its crashing the application public class Profiles { String name; String email; String latitude; String longitude; int type; public Profiles() { } public Profiles(String name, String email, String latitude, String longitude , int type) { this.name = name; this.email = email; this.latitude =

Google maps link produces slightly moved marker when opened with native iphone/android app

£可爱£侵袭症+ 提交于 2020-01-02 07:23:11
问题 I am building a web app which contains a Google Maps link that can be opened by the native phone Maps app (iPhone/Android). The link has the form: http://maps.google.com/?q="+startCooLat+','+startCooLng; and I have also tried the: http://maps.google.com/?q=loc:"+startCooLat+'+'+startCooLng; However in the native app the marker is positioned in the nearest street and not in the exact coordinates that I am giving. Is there a solution or another parameter to set so as to overcome this issue? 回答1

How to apply animations to GMSMarker

眉间皱痕 提交于 2020-01-02 05:21:08
问题 I’m changing my app by migrating iOS maps to google maps using Google Maps SDK for iOS V1.1.0 and I’m trying to animate the markers while adding/removing but I didn’t find any suggestions in the documentation related to this, Please suggest me how to perform the animations on GMSMarkers 回答1: In the GMSMarker Class Reference, it says, for the appearAnimation property: Controls the animation used when this marker is placed on a GMSMapView (default kGMSMarkerAnimationNone , no animation). Using

Cluster Marker Google Maps using geoCoder

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-01 19:34:06
问题 Using this data var data = { 'address': [ { 'address': '7970 GLENTIES Ln' }, { 'address': '8022 Caminito Mallorca' }, { 'address': '2750 Wheatstone St # 26' }, { 'address': '335 49th St' } ] }; i manage to marker them but i was unable to cluster them. below the code that I've use. var markerArray = []; function initialize() { geocoder = new google.maps.Geocoder(); var center = new google.maps.LatLng(37.4419, -122.1419); var map = new google.maps.Map(document.getElementById('map'), { zoom: 3,

Adding Custom Info Window to Google Maps

末鹿安然 提交于 2020-01-01 07:24:08
问题 I want to add a custom info window to pop up in Google Maps whenever someone taps a pin. I've already hidden the current info window by not passing it any data and know that the function func mapView(mapView: GMSMapView!, didTapMarker marker: GMSMarker!) -> Bool { return true } Handles what happens when a pin is tapped. I currently have this custom UIView and attributes on my MapViewController and the corresponding outlets added to the ViewController code: How would I implement this UIView to

Removing Markers in android

我是研究僧i 提交于 2020-01-01 06:48:06
问题 I have a Global array Object like Marker marker_array[]; and later in Layout click I initialized it as marker_array = new Marker[8]; . I want to add markers to map on that layout and remove on 2nd click so I created clickcount Global variable with zero value. My proper code is here final RelativeLayout layout = (RelativeLayout) findViewById(R.id.track_div); layout.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { clickcount++; point_new = new LatLng[8];