google-maps-markers

Flutter show marker's infoWindowText by default in Google map widget

二次信任 提交于 2021-02-10 03:01:27
问题 Can anyone suggest if there is a way of keeping infoWindowText showing when I open the Google map widget in Flutter (without having to click the marker first)? or a similar way of keeping a Text widget above a specific marker? Thanks in advance ~~ 来源: https://stackoverflow.com/questions/54745550/flutter-show-markers-infowindowtext-by-default-in-google-map-widget

Flutter show marker's infoWindowText by default in Google map widget

老子叫甜甜 提交于 2021-02-10 03:01:22
问题 Can anyone suggest if there is a way of keeping infoWindowText showing when I open the Google map widget in Flutter (without having to click the marker first)? or a similar way of keeping a Text widget above a specific marker? Thanks in advance ~~ 来源: https://stackoverflow.com/questions/54745550/flutter-show-markers-infowindowtext-by-default-in-google-map-widget

how to find the markers in the individual clusters in a marker cluster object in google maps api v3?

浪子不回头ぞ 提交于 2021-02-07 08:31:53
问题 I followed the tutorial here to add an inforwindow to the individual clusters of markercluster at any zoom level. http://krisarnold.com/2010/10/15/adding-info-windows-to-map-clusters-with-google-maps-api-v3/ I want to add the info of the markers (e.g. their 'title' s to a list displayed in the info window when clicked on the markercluster object.) contained in respective cluster. So if I have 3 clusters at a particular zoom level in view, each having 5 markers insider it. How do I display a

Android Google Maps API v2 - how to change marker icon

依然范特西╮ 提交于 2021-02-05 14:45:19
问题 I am trying to change marker icon. I get the image from one server directory. When I put break point every time the "bit" result is null . And when I run the app I get java.lang.NullPointerException . File file = new File("J:\\!!! DOCUMENTS\\!Outsourcing\\AppStore\\Benzinostancii\\Petrol\\logo.png"); Bitmap bit = BitmapFactory.decodeFile(String.valueOf(file)); double Dlat = lat.get(index); double Dlon = lon.get(index); String info = Arrayinfo.get(index); String name = Arrayname.get(index);

How to show an image by clicking on a marker in google maps

旧巷老猫 提交于 2021-02-05 09:08:55
问题 I have the following code with three markers, how is it possible to click on one of the markers to load an image? ill try and put a <div> but its not working. any ideas? <script type = "text/javascript"> // Define your locations: HTML content for the info window, latitude, longitude var locations = [ ['<h4>Tj</h4>Lat:32.509604, Lon:-117.020600', 32.509604, -117.020600, "<div><img width='254' height='355' src='http://descubretijuana.com/sites/default/files/mainrotatorpanoramica.jpg'</div>"], [

How to show an image by clicking on a marker in google maps

倖福魔咒の 提交于 2021-02-05 09:01:52
问题 I have the following code with three markers, how is it possible to click on one of the markers to load an image? ill try and put a <div> but its not working. any ideas? <script type = "text/javascript"> // Define your locations: HTML content for the info window, latitude, longitude var locations = [ ['<h4>Tj</h4>Lat:32.509604, Lon:-117.020600', 32.509604, -117.020600, "<div><img width='254' height='355' src='http://descubretijuana.com/sites/default/files/mainrotatorpanoramica.jpg'</div>"], [

iOS: Marker.title display only last index of the array for multiple markers

只愿长相守 提交于 2021-01-29 21:36:03
问题 I am trying to display a title in each markers info window that will display the name of the event. Right now I only can display the very last elements name in the JSON array, and am unsure how to make the others their event title. Any help is appreciated, thanks Here is my code: - (void)viewDidLoad { [super viewDidLoad]; GMSCameraPosition *camera = [GMSCameraPosition cameraWithLatitude:cityLattitude longitude:cityLongitude zoom:7]; [self.mapView animateToCameraPosition:camera]; //GMSMapView

Google maps change marker color based on xml value

五迷三道 提交于 2021-01-29 21:22:49
问题 Based on this tutorial https://developers.google.com/maps/documentation/javascript/mysql-to-maps about markers using a mysql database. I have the following response: <?xml version="1.0" encoding="ISO-8859-1"?> <markers> <marker id="1" lng="151.171936" lat="-33.861034" address="580 Darling Street, Rozelle, NSW" name="Love.Fish" color="green"/> <marker id="2" lng="151.174469" lat="-33.898113" address="76 Wilford Street, Newtown, NSW" name="Young Henrys" color="green"/> <marker id="3" lng="151

How to separate a special marker from a cluster in Google maps?

邮差的信 提交于 2021-01-28 07:30:16
问题 I am using Javascript Google Maps API V3. There is a special marker in one cluster, but I want it always to be shown outside the cluster. Does anyone know how to do this? 回答1: You can do that in the following way: // create your marker var marker = .... // mark your special marker var markerToRemove = marker; // create marker clusterer markerClusterer = new MarkerClusterer(map, markers, { maxZoom: zoom, gridSize: size, styles: styles[style] }); // remove your special marker from cluster

How to separate a special marker from a cluster in Google maps?

风格不统一 提交于 2021-01-28 07:06:29
问题 I am using Javascript Google Maps API V3. There is a special marker in one cluster, but I want it always to be shown outside the cluster. Does anyone know how to do this? 回答1: You can do that in the following way: // create your marker var marker = .... // mark your special marker var markerToRemove = marker; // create marker clusterer markerClusterer = new MarkerClusterer(map, markers, { maxZoom: zoom, gridSize: size, styles: styles[style] }); // remove your special marker from cluster