i trying add multiple bubbles on maps using jhere jquery (http://jhere.net/). tried use code:
$(window).on('load', function() { $('#mapcontainer').jhere({zoom: 5}); $('#mapcontainer').jhere('bubble', [52.500556, 13.398889], {closable: false, content: 'abc: 100'}); $('#mapcontainer').jhere('bubble', [51.500556, 13.398889], {closable: false, content: 'def: 100'}); }); 
but 1 / last bubble generated on maps. how add multiple bubbles on maps?
thank you!
by default autoclose-option of infobubbles-component set true(only single infobubble may open @ time).
you must set option false.
add after creation of map, before creation of infobubbles:
$('#mapcontainer').jhere('originalmap', function(map,here){ var b=new here.map.component.infobubbles(); map.addcomponent(b); b.options.set("autoclose", false);});
Comments
Post a Comment