i'm building a google map shortcode plugin and i use wp_localize_script to pass variables to js script like (lat , lng , zoom...) . but i have an issue : when i use this shortcode twice or more in a page , just the first one that works .
i know that to solve my issue i should generate a script for each shortcode with unique variable names etc..
does anyone know how this can be accomplished??