Title: Update Markers Dynamically
Last modified: February 24, 2022

---

# Update Markers Dynamically

 *  Resolved [rmihnea](https://wordpress.org/support/users/rmihnea/)
 * (@rmihnea)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/update-markers-dynamically/)
 * Hi!
 * Do you know of any possibility of updating the markers dynamically thru jquery
   or another method? I’ve managed to do it with one marker but it’s sometimes inconsistent.
   With updating multiple markers it doesn’t really work at all.
 * The problems seems to be re-rendering the drawn map.
 * My method of doing things.
    jQuery(“id^=wpmapit_”).attr(“lat”, 39.21039).attr(“
   lng”, 21.0310).attr(“data-pins”, JSON.stringify([{lat: “”, lng: “”, marker_title:“”,…},{
   pin2}, … ]))
 * If I update the map normally ( let’s say a refresh ), or if the map renders after
   the changes were made to it, everything is fine. However, an update on the attributes
   of the map doesn’t rerender it.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Chandni Patel](https://wordpress.org/support/users/phpwebdev/)
 * (@phpwebdev)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/update-markers-dynamically/#post-15400061)
 * Hello,
 * Currently, we dont have support for dynamic markers in the plugin.
 * Regards,
    Chandni

Viewing 1 replies (of 1 total)

The topic ‘Update Markers Dynamically’ is closed to new replies.

 * ![](https://ps.w.org/wp-mapit/assets/icon.svg?rev=2071970)
 * [WP MapIt](https://wordpress.org/plugins/wp-mapit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mapit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mapit/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mapit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mapit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mapit/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 1 reply
 * 2 participants
 * Last reply from: [Chandni Patel](https://wordpress.org/support/users/phpwebdev/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/update-markers-dynamically/#post-15400061)
 * Status: resolved