Ready to get started?Download WordPress


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

  1. labm0nkey
    Posted 2 years 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.


  2. Dylan Kuhn
    Plugin Author

    Posted 2 years ago #

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

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

  4. Dylan Kuhn
    Plugin Author

    Posted 2 years ago #

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

    I've added an example:


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.