MarkerClusterer - 关联数组 [英] MarkerClusterer - associated array
问题描述
您可以将标记数组添加到MarkerClusterer中,也可以单独添加它们(它们不会有在一个数组中)。您可以在创建MarkerClusterer时将您的标记添加到MarkerClusterer中,并将它们添加到您的关联数组/对象中。 文档中的addMarker方法
MarkerClusterer works well with numeric array, but have you tried to use it with object of markers? I mean associated array, because I keep all markers inside this kind of array. Only what comes to my mind is translate associated array to "unusual" array, but this solution looks like strange. I aware that probably is not possible, but maybe someone has workaround for it.
You can add an array of markers to the MarkerClusterer, or you can add them individually (they don't have to be in an array). Add your markers to the MarkerClusterer as you create them and add them to your "associative" array/object.
See the addMarker method in the documentation
这篇关于MarkerClusterer - 关联数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!