Hi.

http://code.google.com/apis/maps/documentation/javascript/maptypes.html#ImageMapTypes

Looks like you've not defined a (required) 'tileSize' property in your
options.

Martin.


On Nov 9, 6:20 am, Map Guy <[email protected]> wrote:
> Starting with this example:
>
> http://code.google.com/apis/maps/documentation/javascript/examples/ma...
>
> 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 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