google-maps

Add multiple tags to marker

不羁岁月 提交于 2021-02-20 04:47:17
问题 Created i model like in answer. Also added tags in markers: MarkerTag tag = new MarkerTag(); Marker marker = map.addMarker(new MarkerOptions() .position(new LatLng(47.045029, 28.861427)) .title("Marker") .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)) .snippet("Population: 4,137,400")); tag.setEmail("first@gmail.com"); tag.setPhoneNumber("+37369490007"); marker.setTag(tag); Marker marker2 = map.addMarker(new MarkerOptions() .position(new LatLng(47.000327, 28

Google maps API center and zoom multiple markers

こ雲淡風輕ζ 提交于 2021-02-20 04:12:22
问题 I know there are lots of questions answered on this subject but I can't get them to work with my code. I have used code from this question here but my javascript knowledge is limited and I can't work out where to put it to get it to work. I am using multiple locations which are dynamically added from a wp query and I want the map to automatically find the center of all the locations and preferable zoom to the extent of all the markers. This is my code to generate the map: var map = new google

Google maps API center and zoom multiple markers

為{幸葍}努か 提交于 2021-02-20 04:09:08
问题 I know there are lots of questions answered on this subject but I can't get them to work with my code. I have used code from this question here but my javascript knowledge is limited and I can't work out where to put it to get it to work. I am using multiple locations which are dynamically added from a wp query and I want the map to automatically find the center of all the locations and preferable zoom to the extent of all the markers. This is my code to generate the map: var map = new google

How to convert geographical coordinates to pixels?

↘锁芯ラ 提交于 2021-02-19 08:33:51
问题 I am developing wpf application. I have one static world map of 500 width and 500 height. I have one form in my application. In this from user enters the latitude and longitude and submit the details. I want to show the exact location of these latitude and longitude on my static map. So I am trying to convert these latitude and longitude into pixels. I am using ellipse to show the circle on my static map. How should I convert the geographical coordinates into pixels in C# ? Can you please

Google Places API Alternative

回眸只為那壹抹淺笑 提交于 2021-02-19 08:05:05
问题 My IOS app (Swift 5) HEAVILY relies on googles places API specifically the Places Autocomplete. I'm using it to get addresses and places to show on the map for users. Is there an alternative for this now that they have stopped supporting it or is there a way to fetch autocompleted places using a string. ANY help is greatly appreciated. It's essential for my app to continue working. 回答1: Google has not stopped supporting Places Autocomplete. You can migrate to the new Places SDK for IOS

Android Google Maps/Earth opening Local KML/KMZ file and play the tour functionality

人盡茶涼 提交于 2021-02-19 07:40:48
问题 Is there a way to open a local KML/KMZ file in Google Maps/Earth app on Android? Tried the below approach but didn't work. Intent mapIntent = new Intent(Intent.ACTION_VIEW); Uri uri1 = Uri .parse("geo:0,0?q=file:///mnt/sdcard/doc.kml"); mapIntent.setData(uri1); startActivity(Intent.createChooser(mapIntent, "Sample")); If not and if we can specify only links that are hosted on the web then can we specify a link to the Google Drive file to show directly on Google Maps/Earth? Intent mapIntent =

Google map autocomplete - maximum 3 character type

放肆的年华 提交于 2021-02-19 05:34:17
问题 I have implemented Google map with search box in it which allows user to select address by searching it. In that search box, even if I am typing 1 character it searches.. I want user to type at least 3 characters else it should not go for search. My JS Fiddle is: http://jsfiddle.net/upsidown/2NhsE/ How can I do this? Is Google provides that restriction? 回答1: Google doesn't provide this option for places autocomplete element at the moment. There is a feature requests in the public issue

How to read kmz file of google map in android

允我心安 提交于 2021-02-19 03:45:08
问题 I have the KMZ file and I want to parse that KMZ file so that I can read the data of that file I tried to use KmlLayer but didn't get any help from it here is my code InputStream inputStream = new FileInputStream(path); KmlLayer layer = new KmlLayer(mMap, inputStream, getApplicationContext()); layer.addLayerToMap(); but I got Parsing exception while I am creating the object of KmlLayer any solution. 回答1: Because KMZ is zipped KML you should unzip .kmz file to .kml before reading data or use

Angular 2+ Google Maps get coordinates from click position on map to update marker position

谁说我不能喝 提交于 2021-02-18 22:12:33
问题 I want to do something which is probably really simple however I can't seem to figure it out. I integrated the Angular2+ Google Maps module to my Angular project (https://angular-maps.com/). Now I want to be able to replace the marker by clicking somewhere on the map. In order to do this I need to fetch the coordinates of the location where the user clicked on the map. If I have these coordinates I can update the longitude and latitude to move the marker. However I am not sure how to fetch

Angular 2+ Google Maps get coordinates from click position on map to update marker position

房东的猫 提交于 2021-02-18 22:12:20
问题 I want to do something which is probably really simple however I can't seem to figure it out. I integrated the Angular2+ Google Maps module to my Angular project (https://angular-maps.com/). Now I want to be able to replace the marker by clicking somewhere on the map. In order to do this I need to fetch the coordinates of the location where the user clicked on the map. If I have these coordinates I can update the longitude and latitude to move the marker. However I am not sure how to fetch