WordPress.org

Ready to get started?Download WordPress

Forums

Geo Mashup
[resolved] Using Google v3 API with mapstraction (4 posts)

  1. labm0nkey
    Member
    Posted 1 year ago #

    Hello I just started using Geo Mashup and I am wondering if It's possible (and how) to use Google Maps v3 API javascript goodies and overally whole google api with map generated by geo mashup? As I see the map in V3 engine is generated as a mapstraction class and adding for example after GeoMashup.addAction( 'loadedMap', function ( properties, map ) event listener to user click, drag, center_changed google.maps.Event.addListener( map, 'center_changed' ... and so on events doesn't work. I know mapstraction has api on it's own but I prefer to use the map as a google map instead of mapstraction map.

    http://wordpress.org/extend/plugins/geo-mashup/

  2. Dylan Kuhn
    Member
    Plugin Author

    Posted 1 year ago #

    GeoMashup.addAction( 'loadedMap', function ( properties, mxn_map ) {
      var google_map = mxn_map.getMap();
    
      google.maps.Event.addListener( google_map, 'center_changed', ...
  3. labm0nkey
    Member
    Posted 1 year ago #

    How could I miss it? Anyway thanks for this simple answer :)

  4. Dylan Kuhn
    Member
    Plugin Author

    Posted 1 year ago #

    Maybe you missed it because my documentation didn't cover it :)

    I've added an example:

    http://code.google.com/p/wordpress-geo-mashup/wiki/Documentation#JavaScript_API

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.