Starting with this example:
 
http://code.google.com/apis/maps/documentation/javascript/examples/maptype-styled-simple.html
 
Changing:
 
var jayzMapType = new google.maps.StyledMapType(stylez, styledMapOptions);
 
To 
 
var jayzMapType = new google.maps.ImageMapType(styledMapOptions);
 
Where: (getTileUrl is the addition)
 
  var styledMapOptions = {
 getTileUrl: function(coord, zoom) 
   {
      return "http://foo.com/foo.png";;
   }, 
    name: "Hip-Hop"
  };
 
 
Results in (IE):
 
Message: Expected value implementing google.maps.MapType
Line: 1
Char: 28
Code: 0
URI: http://maps.gstatic.com/intl/en_us/mapfiles/api-3/7/0/main.js
Is there something basic I'm missing here or is this a bug?
 
Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/27_HE6bJn2UJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to