That's because there isn't one in the ImageMapType object. You'll have
to use a custom overlay such as 
http://search.missouristate.edu/map/mobile/examples/tileoverlay.js

Chad Killingsworth

On Feb 8, 6:36 pm, Steve D <bigd...@gmail.com> wrote:
> I'm in the process of learning my way around javascript and the google
> maps API.  Decided to go the route of using the V3 since it appears to
> have everything I need, while being much more readable.
>
> The only thing I *think* I'm missing now is being able to set the
> opacity of my tile layers.
>
> My test case code is basically from this 
> example:http://code.google.com/apis/maps/documentation/v3/examples/maptype-tr...
>
> Modified to work with the png tiles I've created.  They show up and
> all, and it looks quite nice, except that I can't set the opacity of
> the tiles, as unlike the roads in the example code, my tiles cover
> large blobs of area and it really would be beneficial if I could see
> the detail through them.
>
> As I don't have the data on web server, here's the relevant code:
>
> var coverage = new google.maps.ImageMapType({
>     getTileUrl: function(coord, zoom) {
>       return "Z" + zoom + "/" + coord.y + "/" + coord.x + ".png";
>     },
>     tileSize: new google.maps.Size(256, 256),
>     isPng: true
>   });
>
>   var map;
>   function initialize() {
>     map = new google.maps.Map(document.getElementById("map_canvas"));
>     map.setCenter(new google.maps.LatLng(54.1296766, -120.9375000));
>     map.setZoom(6);
>     map.setMapTypeId('satellite');
>     map.overlayMapTypes.insertAt(0, coverage);
>   }
>
> My example from v2 would have something like
> testlayer.getOpacity = function () {return 0.39;};   //of the non
> transparent part
>
> I can't seem to find the equivalent function in v3 in the reference.
>
> Thanks in advance,
>
> -Steve D

-- 
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 google-maps-js-api...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to