google-maps-markers

Draw Google static map image

这一生的挚爱 提交于 2019-12-11 05:48:06
问题 I am using google static map API for draw google maps image in my Angularjs Application. https://maps.googleapis.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=13&size=600x300&maptype=roadmap &markers=color:blue|label:S|40.702147,-74.015794&markers=color:green|label:G|40.711614,-74.012318 &markers=color:red|label:C|40.718217,-73.998284 &key=YOUR_API_KEY Its working fine for low number of map coordinate. But if have large number of map coordinate then it is not drawing map

Modify my custom marker image size for my Google Map

可紊 提交于 2019-12-11 03:34:59
问题 I have a custom image (512 x 512) If I use this image maps doesn't render it because it's too big. I have to shrink the size of the image down. I want to make it about 22 x 32, which is about the size of an icon. I can shrink the image down on my desktop using MS Paint or Paint Shop Pro, but when I open it in maps it looks blurry. Some of the quality has been degraded. Is there a way to set the size in the marker options so I can still use the original image? If not, does anyone know how to

How to render multiple markers at the exact same coordinates in Google Maps API?

五迷三道 提交于 2019-12-11 03:00:59
问题 I have multiple addresses on the same street with the same house number, but with different apartment numbers. Google Maps Geocoding Service (v2) doesn't go down to apartment level accuracy for many addresses and just returned me the exact same geocode coordinates for them. So the problem is that when I go to display them, only one pushpin shows up no matter how much you zoom in. And my question is; what is a good way to render multiple pushpins at the exact same house address? I've seen how

gmaps4rails replaceMakers flicker effect

你。 提交于 2019-12-11 02:57:39
问题 When user pans the map, I make and ajax request to the server and get all the markers that fall into the new bounds, something almost identical to what is described here: Dynamically load Google Maps Markers with gmaps4rails My problem is that when I use replaceMarker all the markers on the map are recreated therefore each of them flickers onces. This really annoys me. If I use addMarkers, I don't get the flicker effect, but my sidebar gets screwed because; 1) The markers which are left out

ClusterMarkerer - no cluster appear - this.map_.mapTypes[this.map_.getMapTypeId()] is undefined markerclusterer.js:304

白昼怎懂夜的黑 提交于 2019-12-11 02:32:11
问题 I have an issue with my MarkerClusterer. When i was 400 markers, cluster appears, all worked. But now i have moire than 600 markers and cluster don't appear. Firebug display this error: that.map_.mapTypes[that.map_.getMapTypeId()] is undefined markerclusterer.js:304 Have you an idea? Thanks 回答1: the best solution is switching to api 3.5 waiting a fix by google. <script type="text/javascript" src="http://maps.google.com/maps/api/js?v=3.5&sensor=true"></script> 回答2: Update your markercluster.js

Google Maps v3: Z-Index issue with Multiple KML Layers

无人久伴 提交于 2019-12-11 02:31:50
问题 I've got a Google Maps (v3) map with 4 separate overlays, which are populated from 4 separate KML files. Three of the KML files only indicate points on the map which I render as different-colored (e.g. red, blue, yellow) Google makers. The third overlay contains multiple coordinates for polygons (i.e. building outlines). The problem is that the polygons (building outlines) are on top of the markers in the other 3 overlays. I would like for the other three overlays (the markers) to be on top

Get all infoWindows on a Google Map

隐身守侯 提交于 2019-12-11 02:24:45
问题 I am working on a map where I neet to plot multiple routes using the DirectionService, and each marker on the route has an infoWindow. Instead of having to keep track of which infoWindow binds to which marker, is there a way for me to grab all infoWindows on a map? 回答1: There are no way to do what you want. The map does not know what markers it have or what infowindows those markers have. The Markers know what map they belong to, but that is it. So unfortunatly you will have to keep track of

Android - Google Maps Touch and Drag Marker

六眼飞鱼酱① 提交于 2019-12-11 02:08:58
问题 How would I go through moving a marker on a Map Activity without having to long click and hold that marker until it receives focus? I just want to touch and drag, but it takes around 1-2 secs before it receives focus and fires drag event. here's my code: mMap = googleMap; mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID); mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() { @Override public void onMapClick(LatLng latLng) { Marker marker = mMap.addMarker(new MarkerOptions() .position

rotate svg marker with multiple paths using google maps javascript

佐手、 提交于 2019-12-11 01:48:44
问题 When I use the below simple SVG it works well with the rotation method var car = "M17.402,0H5.643C2.526,0,0,3.467,0,6.584v34.804c0,3.116,2.526,5.644,5.643,5.644h11.759c3.116,0,5.644-2.527,5.644-5.644 V6.584C23.044,3.467,20.518,0,17.402,0z M22.057,14.188v11.665l-2.729,0.351v-4.806L22.057,14.188z M20.625,10.773 c-1.016,3.9-2.219,8.51-2.219,8.51H4.638l-2.222-8.51C2.417,10.773,11.3,7.755,20.625,10.773z M3.748,21.713v4.492l-2.73-0.349 V14.502L3.748,21.713z M1.018,37.938V27.579l2.73,0.343v8.196L1

IE9 and below starts to slow down and hang when adding lots of google map markers via Symbol (SVG path)

ⅰ亾dé卋堺 提交于 2019-12-11 01:44:55
问题 Google maps api let's you specify a custom marker icon in the form of an SVG path. On my fast machine, displaying 500 of these markers (SVG paths) on IE9 or less causes the browser to come to a slow crawl and hang. Everything works fine in Chrome, FF, Opera, and Safari, and IE10 at those higher numbers, but not IE9 and below. Looking for a way to speed it up IE. jsfiddle example // this will cripple IE 9 and below for (var i = 0; i < 500; i++) { new google.maps.Marker({ map: map, position: