Ask your WordPress questions! Pay money and get answers fast! (more info)

GeoMashup Plugin - Add scaleControl WordPress

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?

[[LINK href=""]][[/LINK]]

Answers (1)


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.