12 lines
326 B
Plaintext
12 lines
326 B
Plaintext
JQVMap.prototype.getPins = function(){
|
|
var pins = this.container.find('.jqvmap-pin');
|
|
var ret = {};
|
|
jQuery.each(pins, function(index, pinObj){
|
|
pinObj = jQuery(pinObj);
|
|
var cc = pinObj.attr('for').toLowerCase();
|
|
var pinContent = pinObj.html();
|
|
ret[cc] = pinContent;
|
|
});
|
|
return JSON.stringify(ret);
|
|
};
|