Embedding a map in an admin page
-
Hello and thanks for the great plugin.
I have a custom admin page where I need to put a map. I tried using
do_shortcode('[wpgmza id="1"]')
, which correctly prepares the html area, but the js I need (i.e. the part definingMYMAP
) is not included.Checking the plugin source code I see that there are a few function doing it:
wpgmaps_user_javascript_basic()
,wp_admin_javascript_basic()
andwpgmaps_admin_edit_marker_javascript()
, but all of them have strict checks over the pages where they are used.Is this behavior intentional? Is there another way I’m not seeing to do this? Or a code snippet I can copy over to my widget to do it the same way?
Thanks a lot,
Corrado
- The topic ‘Embedding a map in an admin page’ is closed to new replies.