New home › Forums › Visitor Generated Markers › General queries › Custom placement of category filtering
This topic contains 22 replies, has 3 voices, and was last updated by SupportTeam 1 year, 3 months ago.
-
AuthorPosts
-
July 19, 2018 at 4:26 pm #41226
Hi there,
The latest version of WP Google Maps is 7.10.22 and WP Google Maps Pro: 7.10.17
Please note that we fixed update code in WP Google Maps Pro 7.10.14 so I think the best way to update plugin would be to upload it directly on your server. If you need any help with this please send me FTP details.
Kind regards
July 20, 2018 at 8:39 am #41238Hi there,
Unfortunately every time you change plugin files you need to add those changes again after plugin update.
Please note that update to the latest version should fix the issue with updating plugin.
Kind regards
July 20, 2018 at 4:40 pm #41249Hi there,
It seems the code responsible for this is the code in core.js:
jQuery(document).ready( function($){
$(document).on(‘click’, function(e){
if (!$(e.target).is(‘img’) && $(e.target).closest(‘.wpgmza_map’).length > 0) {
console.log(e.target);
infoWindow.forEach(function(entry,index) {
infoWindow[index].close();
});
}
});
});Please try to comment out that code and see if that helps.
If you need any help with this please send me FTP details.
Kind regards
July 23, 2018 at 9:45 am #41280Hi there,
I commented out the code responsible for closing info window and throwing an error. Then I created new code in Maps → Settings → Advanced → Custom JS field:
(function($) {
setTimeout(function() {for(var map_id in marker_array) {
google.maps.event.addListener(MYMAP[map_id].map.googleMap, ‘click’, function(event) { if(typeof event.target === ‘undefined’) { infoWindow.forEach(function(entry,index) {
infoWindow[index].close();
});}});
}
}, 500);
})(jQuery)that should work quite well.
Please note that previous method wasn’t the best because all the code will be lost after next plugin update. With the new approach and the new code you won’t lost any modification after plugin update.
Please test it and let me know if it works.
Kind regards
July 23, 2018 at 11:00 am #41290This reply has been marked as private.July 23, 2018 at 2:10 pm #41300Thank you for your time. Feel free to reach out if you need anything.
Kind regards
August 6, 2018 at 2:27 pm #41780Hi there,
Could you please send me the URL to the page with the map so I’ll send you some custom JS to change that string?
Unfortunately we don’t support embeding map on other site at this stage.
Kind regards
August 20, 2018 at 8:31 am #42131This reply has been marked as private. -
AuthorPosts
You must be logged in to reply to this topic.