[OpenLayers-Users] Overview map issue when clicking - moves square
to upper right
Planet)x
andrew.stewart at reddeer.ca
Tue Apr 19 17:01:59 EDT 2011
I have an overview map that is created inside a window. It works fine and the
click/drag works to goto the right location, however if I drag the window
the overview map is in on top of my openlayers map the click functionality
becomes broken.. it basically moves the square to the top right corner of
the window and the click doesn't function properly. I am still able to drag
the square around and move it. So my question is can I fix this problem or
is there anyway to disable the click of the red rectangle and make only the
drag work? Appreciate any advice, here is my overview code -
//Function to add Overview map to Bottom West Panel (Overview Window)
function addOverview() {
var controlOptions = {
div: Ext.get('overviewmap'),
mapOptions: {maxResolution: 190,
minResolution: 190,
numZoomLevels: 1},
id: 'overview_map',
layers: [layer_Overview.clone()]
};
var overview = new OpenLayers.Control.OverviewMap(controlOptions);
overview.isSuitableOverview = function() { return true; }; //this
disables panning
map.addControl(overview);
};
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Overview-map-issue-when-clicking-moves-square-to-upper-right-tp6288676p6288676.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list