FAQ Database Discussion Community


Google Maps Store Locator Library with MarkerClusterer

javascript,google-maps-api-3,markerclusterer
I'm using the Google Maps Store Locator library, but I want to be able to implement MarkerClusterer alongside it. However, I haven't been able to figure out how to make them work together. Code: (function($, window, document){ var map = null, cluster = null; function storeSource() { $.extend(this, new storeLocator.StaticDataFeed);...

TypeError: this.clusterer is undefined after Rails Model name change

javascript,ruby-on-rails,google-maps,markerclusterer
I've changed my Model and Controller names and all it's connected data + filenames. Everything works except my JS GoogleMaps API that shouts: TypeError: this.clusterer is undefined The thing is - I tried to precompile my assets once again, I've searched through all the files and I can't find the...

Adding new markers on map using cluster manger doesn't reflect the changes until i zoom in and zoom out the map

android,google-maps,markerclusterer,android-maps-utils
When I add new markers on the map programmatically using cluster manager it doesn't reflect the changes until I update the zoom in and zoom out. I have seen lots of questions on stack overflow but that doesn't work for me, So please tell me how to update the map...

Google MarkerClusterer does not show the markers

javascript,google-maps-api-3,markerclusterer
I am trying to replace my data with the ones provided by this sample code, but my code does not work. I just added an array called results and tried to pass its lat and lan values to the map but for some reasons it does not work. <!doctype html>...

Marker clusterer getMarker multiple click handlers

javascript,google-maps,google-maps-api-3,markerclusterer
After hacking away with DOM and event propagation issues all day I've come to the last of issues i've been trying to deal with using the marker clusterer. Currently I'm attaching a click handler to the DOM element to change a state for a single infobox using this code. //google...

Option to Disable/Enable MarkerCluster On Map by Checkbox

google-maps-api-3,markerclusterer
Can you please take a look at This Demo and let me know if there is a way that I can Disable or Enable the Markercluster on the map by checking and un checking a checkbox? Currently what I have is a simple map enabled with MarkerCluster plugin and I...

In MarkerClustererPlus style parameter of MarkerClustererOptions not working properly

javascript,css,google-maps,google-maps-api-3,markerclusterer
I'm using MarkerClustererPlus and then i made an array for style parameter of MarkerClustererOptions passing different type of icons to be shown in map but it not rendering all. Its just picking up the first icon from style array not others. function initialize() { var center = new google.maps.LatLng(63.078877, 21.660509);...

Recalculate markercluster and downloadUrl

google-maps,google-maps-api-3,filter,markerclusterer
I am trying to fix the problem with out success. As you can see when you uncheck the VDSL or ADSL option the markercluster still having the same value. downloadUrl("php_to_xml.php", function(data) { var xml = data.responseXML; var markers = xml.documentElement.getElementsByTagName("marker"); for (var i = 0; i < markers.length; i++) {...

Getting Google Map MarkerClusterer Plus Icons In One Color

google-maps-api-3,markerclusterer
Can some one please let me know how to set MarkerClusterer plus to show all Clusters in One color? as you can see the MarkerClusterer automatically changes the color of the clusters when they are out on a range but I want get them all in one color? Thanks ...

How to change the default value of maker cluster for google maps?

jquery,google-maps,google-maps-api-3,markerclusterer
I am working in a project on which i use MarkerClustererPlus for Google Maps V3. I've read the documentation but i can't find anywhere how to change the default value that a marker cluster displays(the number of pins in the cluster). I want to change that value with a sum...

Get all markers in Google Maps v3 Jquery

jquery,google-maps,google-maps-api-3,markerclusterer,jquery-ui-map
Google Maps v3 JQuery introduced the following way to get markers: $map.gmap('get', 'markers'); I'm trying this, but getting an empty array. Here's the code I'm working with: var smap = $('#smap'); $(window).load(function() { /* Initialize Map */ smap.gmap({ center: '34.913167, -94.618089', zoom: 5 }).bind('init', function() { /* Add markers */...

Android Maps - how to manage a large number of markers (1 million+)

android,json,google-maps-api-3,markerclusterer
Managing a large number of markers for Google Maps in Android is all fine and dandy when you have 20-50K markers. But how do you manage hundreds of thousands or even millions? What's better - performance wise - storing them in a JSON file locally on the device or retrieving...

getClusters() always returning an empty array (Using MarkerClustererPlus for Google Maps V3)

javascript,google-maps,google-maps-api-3,markerclusterer
I have the following code that loads a map and clusters the markers: $scope.getMapHistory = function(locations){ var map = new google.maps.Map(document.getElementById('map-canvas-history'), { zoom: 17, center: google.maps.LatLng(0, 0) }); var markers = []; locations.forEach(function(deviceLocation){ //var dataPhoto = data.photos[i]; var devLat = deviceLocation._source.data.location[1]; var devLng = deviceLocation._source.data.location[0]; var latLng = new google.maps.LatLng(devLat,...

Open leaflet marker using url parameter not working now that markercluster is used

javascript,leaflet,mapbox,markerclusterer
I have a leaflet application at http://atlantaartmap.com. The javascript it uses is http://atlantaartmap.com/lazy_art.js. At line 16, I grab a url parameter that can be used to open the map on a specific piece. While creating the markers, there is a piece of code at line 71 that checks to see...

Android google maps v2 cluster markers if they are close to each other

android,google-maps,markerclusterer
I have an app which uses google maps and places markers on it. The problem is, that I don't know at the runtime the coordinates of the markers. So my question is, is there any library that is capable of clustering my markers if they are close by and after...