Hi,
I''m moving to V2. I used to create a crosshair at the center of my map
in v1.
It doesn''t work in v2.
Can somebody point me to the good way to do this.
In v1, I used :
function addcross() {
Mapstraction.prototype.removeCrosshairs=function(cross)
{
var map=this.maps[this.api];
var container=map.getContainer();
container.removeChild(crossh);
};
Mapstraction.prototype.addCrosshairs=function(Cross)
{
var map=this.maps[this.api];
var container=map.getContainer();
var crosshairs=document.createElement("img");
crosshairs.src=Cross;
crosshairs.style.border=''0'';
crosshairs.style.position=''fixed'';
crosshairs.style.zIndex=''500'';
container.appendChild(crosshairs);
this.crosshairs=crosshairs;
return crosshairs;
};
}
The problem is map.getContainer doesn''t exist anymore.
I use googlev3 and openlayers.
What is the best way to have this working in v2 ?
Serge