google-maps-markers

Android open InfoWindow on cluster marker

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 04:34:26
问题 I implemented a option to find the nearest marker from the actual position. I have all the markers in a ClusterItem with a custom InfoWindow. On a normal google map without clustering I could just use marker.showInfoWindow(); and the InfoWindow would popup. It seems there is no such method when using clustering, because the markers don't get added as proper maps markers. My code: public class StationsFragment extends Fragment implements OnMapReadyCallback { private static GoogleMap googleMap;

how to add marker cluster in google maps v3 for the same lat/long without influenting another element?

南笙酒味 提交于 2019-12-06 04:31:52
I made traceroute map. And I have problem with some markers that should be in the same lat/long but only one marker show on the map. I read that there's a way to do. It is marker cluster. but I don't know how to add in javascript. Also I'm afraid if that would be influent another element of markers which I've add like custom marker with label, infowindow and polyline. here is my code : <script type="text/javascript"> var pinImage = new google.maps.MarkerImage ("http://chart.apis.google.com/chart?chst=d_map_xpin_letter_withshadow&chld=pin_star|%E2%80%A2|CC3300|000000|FF9900", new google.maps

express.js not serving my image

旧城冷巷雨未停 提交于 2019-12-06 04:31:07
问题 I don't understand whats going wrong here. directory structure: app/server.js app/public/index.html app/public/js/main.js app/public/img/car.png server.js var fs = require('fs') ,express = require('express'), app = express.createServer(); app.use(express.static(__dirname + "/public")); app.get('/', function(req, res){ fs.readFile(__dirname + '/public/index.html', 'utf8', function(err, text){ res.send(text); }); }); app.listen(8080, function(){ console.log('Server listening on %d', app.address

How to change marker color? Google Maps [duplicate]

為{幸葍}努か 提交于 2019-12-06 04:17:34
问题 This question already has answers here : Javascript, Change google map marker color (9 answers) Closed 4 years ago . function createMarker(latlng, item) { var marker = new google.maps.Marker({ position: latlng, map: map }); This part of the code . On the website it appears as a standard marker, it suits us all but red. How do I change it to another color? https://yadi.sk/i/ZDONpfoijAjdZ 回答1: You should use icon property. For example, var marker = new google.maps.Marker({ position: latlng, map

Map not clickable around marker in Google Map SDK for Android

无人久伴 提交于 2019-12-06 04:10:14
I am building some app like image below, I want to force markers not to be clickable, but there is no setClickable(false) for Marker or MarkerOptions. Currently area around marker (see attachment) is not clickable ( click is passed to marker, not map) You have to use Overlay instead of marker in the Map to get exactly what you desire. You could follow this link, similar is done in JavaScript here . I found a way to manually handle clicks for markers. Add a touchable wrapper as described in this stackoverflow answer: https://stackoverflow.com/a/58039285/1499750 Add a gesture detector to your

How to get markers inside an area selected by mouse drag?

核能气质少年 提交于 2019-12-06 02:51:16
问题 In Brief I want to find all the markers which lie within a rectangular area created by dragging the mouse over the map. Is this feature supported by any jQuery plugins or something else? If not, I would like to implement this in my project. I think it would be cool. Details I am using Google Maps v2 because I want to support IE 6 in my project. I am a beginner in Maps and went through the Developer's guide section and some basic demos and other SO questions. Here is my idea so far - User

Google Static Maps API with encoded polyline

会有一股神秘感。 提交于 2019-12-06 02:51:05
问题 I have made a request to google directions API and recived the following JSON directions: (file to large to copy here) https://gist.githubusercontent.com/crooksey/9930819/raw/947e4d17a93ca94b78216d92fbd94b281966dede/directions_api At the bottom, I get the encoded polyline data: ecduHxqrE|RfS{SlW_w@zDc{@ig@cVlK}z@j}Aog@z{AuGbdDibAfkGaBpcG}~@vrGy_AhhCoi@feB{bBxu@kxAsSus@|eAcLdyBci@dcByi@ly@`GrgC_S~d@e\\wBugA_uBwuAusAoaCidAs~Dq{DiaAu`CuwAweAevBi@}dDwgCsrAwfBuqFkmBwzEu~DenAa|Bi_BcuDmrAghF_{B_hGa{

How to change default camera behavior when marker is tapped?

倖福魔咒の 提交于 2019-12-06 02:35:13
In release 1.2 of the Google Maps for iOS SDK the default behavior of a tapped marker changed. The release note says: "The default behavior when a marker is tapped has been updated to also pan the camera to the marker's position" How can I get the old behavior back, i.e. not panning the camera center to the position of the marker? Add the following method to your GMSMapView delegate implementation. GMSMapView will no longer center on the selected marker and brings back the existing behavior. - (BOOL) mapView:(GMSMapView *)mapView didTapMarker:(GMSMarker *)marker { mapView.selectedMarker =

How can I automatically plot markers for addresses on a Google or OpenStreetMap?

故事扮演 提交于 2019-12-06 01:24:44
I have a list of UK addresses and would like to plot them on a google or openstreetmap (I dont mind which). Is there a way to render a batch of addresses on a map with dots to represent the location (rather then the standard marker). To make things slightly more complex, I would like to change the colour and size of some markers. The data source is a street address including postcode and a marker type (size, color). Does anyone know of a site, script, process to achieve this? The geographic region will be a suburb so it is quite a small area. You can use the Google Geocoding service to spin

google map api v2 add icon from url android

只愿长相守 提交于 2019-12-05 23:37:55
I have a project that retrieves latitude and longitude from web service and I add them to google map markers. I want to add custom icon for the markers from url. mMap.addMarker(new MarkerOptions() .position(new LatLng(dlat,Dlong)) .title(m.group(9)) .draggable(false) .snippet(m.group(1)+" "+m.group(10))); How I can add .icon with a custom icon from a link? Use this method and use returned bitmap to display in map public Bitmap getBitmapFromURL(String imageUrl) { try { URL url = new URL(imageUrl); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setDoInput