WordPress.org

Ready to get started?Download WordPress

Forums

Comprehensive Google Map Plugin
Clickable list/sidebar (6 posts)

  1. JakeClaro
    Member
    Posted 2 years ago #

    Hi,

    I'm wondering if there is any way to have a list that displays all of the placemarks, and have each of the placemarks in this list refer back to the placemark on the map when clicked --- much like the way it would work on the actual google maps page with the placemarks on the left that then refer to the location on the map. Thanks and great plugin!

    best,

    Jake

    http://wordpress.org/extend/plugins/comprehensive-google-map-plugin/

  2. alexanderzagniotov
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, its a nice idea, but ATM it is not supported.

    Thank you

  3. JakeClaro
    Member
    Posted 2 years ago #

    Okay cool.

    I realize its probably not an easy endeavor but I know a lot of users who would find a feature like that incredibly helpful. Excellent plug-in nonetheless and thanks for the quick reply!

  4. antioch
    Member
    Posted 1 year ago #

    has there been any progress on this?

  5. Solerdev
    Member
    Posted 1 year ago #

    Hi,
    Excellent plugin, thank you!
    I'm looking for a method to change the location of the map by clicking links. I didn't find a way to do it on a "onClick" event or from another JS code. Someone knows how to do that? something about namespace I think.

    After some tests, I made an alternative method that maybe can help someone:

    Adding this code in cgmp.framework.js (or .min.js)
    at the end of
    if ($('div#' + json.id).length > 0) {

    -->here
    }else{
    //Logger.fatal...
    }

    the added code is:

    $('.moveGoogleMap').click(function(e){
    	e.preventDefault();
    	newCoords = $(this).attr("href").split(" ").join("").split("#").join("").split(",")
    	if(newCoords[0] != "" && newCoords[0] != undefined && newCoords[0] != null && newCoords[1] != "" && newCoords[1] != undefined && newCoords[1] != null){
    
    		googleMap.setCenter(new google.maps.LatLng( newCoords[0], newCoords[1] ) );
    		if(newCoords[2] != "" && newCoords[2] != undefined && newCoords[2] != null){
    			googleMap.setZoom(parseInt(newCoords[2]));
    		}
    	}
    })

    It adds the hability to any link with the class "moveGoogleMap" change the map by coords and zoom in the href attribute. The info is comma separated.
    like this:

    chile

    hope it helps, Thanks again for the plugin!

  6. Solerdev
    Member
    Posted 1 year ago #

    the example link, I forgot to make it code mode:

    <a class="moveGoogleMap" href="#-37.09024,-68.554687,4">chile</a>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic