Closed lmorroni closed 10 years ago
I just uploaded a fix for this (anycluster.js). It works as follows: In your case, you would have a column in your database called "pin". This column contains values like for example "blue" and "green". You then can configure anycluster to select the correct pin:
singlePinImages: {
'blue': '/static/yourproject/pinimages/pin_blue.png',
'green':'/static/yourproject/pinimages/pin_green.png'
}
and you will get the correct pins. You might have to adjust dimensions in anycluster.js (topmost declaration) if your image is distorted.
Can you elaborate on this new setting? singlePinImages: { 'dbvalue':'/static/path/to/image.png' //optional, use in conjunction with django settings: 'ANYCLUSTER_PINCOLUMN'
I have a number of layers each with their own icon for a single point. Does your project support this or do I need to use the same marker icon for all markers? I have the relevant setting in my settings file. ANYCLUSTER_PINCOLUMN = 'pin'