forked from idera/mapa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils.js
37 lines (36 loc) · 1.12 KB
/
utils.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
addOverview = function() {
var mapOptions = {
//maxExtent: new OpenLayers.Bounds(-111, -62, -16, -7),
//numZoomLevels: 1,
projection: new OpenLayers.Projection("EPSG:3857"),
units: "m"
};
var controlOptions = {
size: new OpenLayers.Size(196, 153),
div: Ext.get('overviewmap'),
mapOptions: mapOptions,
destroy: function() {},
layers: [
new OpenLayers.Layer.WMS(
"overview",
"http://wms.ign.gob.ar/geoserver/wms?version=1.1.1",
{
layers: 'capabaseargenmap'
}, {
buffer: 0,
ratio: 1,
singleTile: true
}
)
]
};
var overview = new OpenLayers.Control.OverviewMap(controlOptions);
app.mapPanel.map.addControl(overview);
}
permalinkProvider = new GeoExt.state.PermalinkProvider({encodeType: false});
Ext.state.Manager.setProvider(permalinkProvider);
permalinkProvider.on({
statechange: function(provider) {
permalink = provider.getLink();
}
});