Title: [Plugin: Basic Google Maps Placemarks] &#8211; show content in lightbox
Last modified: August 20, 2016

---

# [Plugin: Basic Google Maps Placemarks] – show content in lightbox

 *  [mlh1407](https://wordpress.org/support/users/mlh1407/)
 * (@mlh1407)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-show-content-in-lightbox/)
 * i would like to use [Plugin: Basic Google Maps Placemarks] with lightbox2 or 
   fancybox so that when the user clicks the marker instead of this google bubble
   a lightbox would open up on top of the page with the content in it.
    I have made
   a sketch with jquery fancybox and google maps to show somehow what i am aiming
   at : [http://mlh1407.com/back/customers/fb/projekter_med_tue/markers.html](http://mlh1407.com/back/customers/fb/projekter_med_tue/markers.html)–
   click show markers >> click on he marker >> a lightbox object/element should 
   apear on top of the map. – here´s some screenshots in case the link doesnt work
   [http://mlh1407.com/back/customers/fb/projekter_med_tue/map1.png](http://mlh1407.com/back/customers/fb/projekter_med_tue/map1.png)
   [http://mlh1407.com/back/customers/fb/projekter_med_tue/map2.png](http://mlh1407.com/back/customers/fb/projekter_med_tue/map2.png)
 * what i did was basically to add a eventlistener to the marker that calls the 
   lightbox with some parameters that can be changed ..
 * does anyone have an idea to how i can do this with the Basic Google Maps Placemarks
   plugin ?
 * it would indeed be a neat feature
 * [http://wordpress.org/extend/plugins/basic-google-maps-placemarks/](http://wordpress.org/extend/plugins/basic-google-maps-placemarks/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [mlh1407](https://wordpress.org/support/users/mlh1407/)
 * (@mlh1407)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-show-content-in-lightbox/#post-2350066)
 * I have mixed up a solution ,, dont know if it is any good
 * in core.php in the loadResources part add this
    wp_register_script( ‘fancy’, 
   plugins_url( ‘fancybox/jquery.fancybox-1.3.4.pack.js’, __FILE__ ), array( ‘jquery’),
   self::VERSION, true ); wp_register_style( self::PREFIX .’style’, plugins_url(‘
   style.css’, __FILE__ ), false, self::VERSION, false ); and add this after the
   if( !is_admin() && $this->mapShortcodeCalled ) – part wp_enqueue_script(‘fancy’);
 * $params = array(
    ‘autoDimensions’ => ‘true’, ‘width’ => 640, ‘height’ => 480);
   wp_localize_script( ‘fancy’, ‘my_unique_name’, $params );
 * aaand in functions.js
    ad this $.fancybox( infowindowcontent, { }); $.fancybox.
   resize();
 * if you want to change the params from javascript i guess one could just write
   my_unique_name.pamName=newValue (my_unique_name.width=320) before you make the
   fancybox call ?
 * anyways … im no really a programmer – what do you think ?

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Basic Google Maps Placemarks] – show content in lightbox’ is
closed to new replies.

 * ![](https://ps.w.org/basic-google-maps-placemarks/assets/icon-128x128.png?rev
   =1152531)
 * [Basic Google Maps Placemarks](https://wordpress.org/plugins/basic-google-maps-placemarks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/basic-google-maps-placemarks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/basic-google-maps-placemarks/)
 * [Active Topics](https://wordpress.org/support/plugin/basic-google-maps-placemarks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/basic-google-maps-placemarks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/basic-google-maps-placemarks/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [mlh1407](https://wordpress.org/support/users/mlh1407/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-basic-google-maps-placemarks-show-content-in-lightbox/#post-2350066)
 * Status: not resolved