I continue modifications of plugin goMap. Added new function closeInfoWindow closeInfoWindow: function(marker) { var infowindow = $(this.mapId).data(marker + ‘info’); infowindow.show = false; infowindow.close(); }, It can be used in the following way: $.goMap.createListener({type:’marker’, marker:’admin_marker’}, ‘dragstart’, function() { $.goMap.closeInfoWindow(‘admin_marker’); }); $.goMap.createListener({type:’marker’, marker:’admin_marker’}, ‘dragend’, function() { $.goMap.setInfo(‘admin_marker’, ‘Latitude,Longitude:’+$.goMap.getBound(‘admin_marker’).toString()); google.maps.event.trigger($($.goMap.mapId).data(‘admin_marker’), ‘click’); }); In this example, drag-n-drop marker closes… Continue reading jQuery.goMap function closeInfoWindow
Tag: gomap
Google maps jQuery plugin modifications
For one of my projects, I was looking for a simple way to implement Google Maps with jQuery. I was lucky to find a really nice plugin goMap. It does a lot of things, which might be useful in Google maps API v3 implementation. Here you can see the examples with descriptions. In my work,… Continue reading Google maps jQuery plugin modifications