Forum Replies Created
-
AuthorPosts
-
Hi Chris,
Thanks for making those changes so quickly! Everything seems to be working again and I haven’t noticed anything unusual after the database upgrade. However, initially the maps did not load with the option selected to “<label>Output scripts in footer.” With this option disabled everything works fine. </label>
This is the js error:
Uncaught TypeError: Cannot read properties of null (reading ‘innerHTML’)
at Object.template (index_mappress.js?ver=2.80PRO:1:17020)
at mapp.Map.render (index_mappress.js?ver=2.80PRO:1:41660)
at mapp.Map.display (index_mappress.js?ver=2.80PRO:1:28496)
at Object.mapp.load (index_mappress.js?ver=2.80PRO:1:17781)
at (index):1690:45If it helps, the Maps are displayed using shortcodes within Elementor Archive and Post templates.
Thanks again!
You are awesome, thanks for the quick reply and willingness to make those changes!
Do you know how soon these features might be added, or if there is a simple patch it in the meantime?
Thanks again
Hello again,
Another change I noticed is the Directions link no longer works as it did before. I had previously used the template markup to output the “Get Directions” link within the mashup list items instead of the popup, but that no longer works, nor does the same markup work in the Popup item. It seems to only work within the popups if I select the option to “<input checked=”checked” type=”checkbox” value=”” />Show a directions link in popups”
Is there a new way to insert this manually? This the markup I was using:
<div class=’mapp-dir’ data-mapp-action=’dir’><?php _e(‘Get Directions’, ‘mappress-google-maps-for-wordpress’); ?></div>
Thanks!
Hi Chris,
Thanks for the getting back to me. I ended up getting it to work by just adding my own click event listener to the markers themselves.
$('.leaflet-marker-pane').on('click','.leaflet-data-marker', markerClicked ); function markerClicked(){ // set delay to allow selector to be updated setTimeout( function (){ var item = document.querySelector('.mapp-item.mapp-selected'); scrollInnerIntoView( item ); }, 50); } -
AuthorPosts
