Hi,
I'm trying to add a scale control to GeoMashup plugin map using the Google Maps API v3.
As per the link below I am using custom-mxn.js to attempt this as follows - but with no luck:
GeoMashup.addAction( 'loadedMap', function ( properties, mxn ) {
var google_map = mxn.getMap();
/* Turn on Scale Control */
var options = {
scaleControl: true,
scaleControlOptions: {
position: google.maps.ControlPosition.LEFT_CENTER
}
};
google_map.setOptions( options );
});
What am I doing wrong?
Thanks,
Brad
[[LINK href="https://groups.google.com/d/msg/wordpress-geo-mashup-plugin/3I6b6WcHiq8/zeqx9iRcS2IJ"]]https://groups.google.com/d/msg/wordpress-geo-mashup-plugin/3I6b6WcHiq8/zeqx9iRcS2IJ[[/LINK]]
Dylan Kuhn answers:
Hi Brad - your code looks right to me. Can you share a URL where I can troubleshoot it?
Dylan Kuhn comments:
That code works as is on my local install. Make sure you have the Geo Mashup Custom plugin activated and Google V3 selected as your map provider.