how i order it. use
insertAt
first i create layer in object like this.
layer = {};
layer.nrcs_soils= new google.maps.ImageMapType({
getTileUrl: function (coord, zoom) {
return getTileWmsUrl(coord, zoom, "nrcs_soils");
},
tileSize: new google.maps.Size(256, 256),
opacity: 1,
name:'nrcs_soils',
alt:{
layer_name:'nrcs_soils'
,order : 0
},
isPng: true
});
after that i create simple function add layer to map.
add_layer = function(layer_name){
//-- get order from object layer
var order_layer =layer[layer_name].alt.order;
map.overlayMapTypes.insertAt(order_layer ,layer[layer_name]);
}
just call this function for add and order layer from your setting on your object layer.
add_layer("nrcs_soils");
or use splice
concept like this.
array = [ 'My', 'name', 'Ruthe' ];
array.splice(1,0,"sur");
console.log('array : '+array); //array : My,sur,name,Ruthe
Best Answer
Geometries especially polygons will be are to place in Streetview mode (Earth API would be better).
But Images can be overlayed into streetview
This simple demo shows how to display an image overlay over a streetview and sync its movement (approximately) as the street view POV (point of view) changes
This source is available from 'http://teammaps.com/'
http://projects.teammaps.com/projects/streetviewoverlay/streetviewoverlay.htm