A JavaScript framework that combines the GIS functionality of OpenLayers with all features of the ExtJS library
This release updates the OpenLayers version to 6.5.0 and is the first version to use semantic versioning in GeoExt.
A step-by-step guide to update an application that uses geoext can be found here: https://github.com/terrestris/BasiGX/wiki/Update-application-to-ol-6.5.0,-geoext-4.0.0,-BasiGX-3.0.0
ol.layer.Vector
with an ol.source.Vector
with a ol.Collection
. That means, if you used it like this before, it will now throw an Error:Ext.create('GeoExt.data.store.Features', {
layer: new ol.layer.Vector({
source: new ol.source.Vector()
})
});
If you change it to the following code it will work and keep the elements of the store, and the layer in sync.
Ext.create('GeoExt.data.store.Features', {
layer: new ol.layer.Vector({
source: new ol.source.Vector({
features: new ol.Collection()
})
})
});
npm i @geoext/openlayers-legacy
and include the
ol.js
and ol.css
files from there.opt_this
arguments. This not only true for .on
and .un
but also for forEachFeatureAtPixel
and similar methods. If you do not call un
on the method
you can simply use .bind
on the call. It you want to unbind the listener, either store a bound version of the listener
or store the listenerKey returned by on
and usw ol.Observable.unByKey
.Example 1 (un
is not used):
map.on('moveend', this.doSomething, this);
becomes:
map.on('moveend', this.doSomething.bind(this));
Example 2 (un
is used):
Ext.define('SomeClass', {
method1: function () {
map.on('moveend', this.doSomething, this);
},
method2: function () {
map.un('moveend', this.doSomething, this);
}
});
becomes:
Ext.define('SomeClass', {
constructor: function () {
this.doSomething = this.doSomething.bind(this); // store a bound version of the method
this.callParent(arguments); // call parent afterwards in case the parent constructor calls method1 or method2
},
method1: function () {
map.on('moveend', this.doSomething);
},
method2: function () {
map.un('moveend', this.doSomething);
}
});
ol.Attribution
class has been removed and can be replaced by simple html textnew ol.source.Vector({
attributions: [new ol.Attribution({
html: '© notice'
}]
});
becomes:
new ol.source.Vector({
attributions: '© notice' // array is optional
});
v5.0.0
and v6.0.0
:
This is a feature release and the last release before version 4.0.0 with openlayers is released.
geoext3
to geoext
This is a bugfix release which includes a fix for the toggle mode in GeoExt.data.model.LayerTreeNode
(#666). Additionally the dev dependenciy for linting was updated to the latest version (47b52669164d94604cf67c4795df49aa05337332).
Get the release from npm
via npm install @geoext/geoext
Please see the API documentation or the API documentation including the ExtJS classes.
For a complete list of changes see v3.3.1...v3.3.2.
This is a bugfix release, mainly to fix the shown documentation on the npm page of GeoExt.
For a complete list of changes see v3.3.0...v3.3.1.
250 commits after v3.2.0, this release contains some new features & bugfixes, a bunch of enhancements and a lot of dependency updates by 10 contributors. Thanks to everyone involved in this release.
Some notable changes
GeocoderComboBox
, see #574OlObjects
store, see #595ignorePointerRestSelectors
, see #643LayerTreeNode
s are now as expected, #665For a complete list of changes see v3.2.0...v3.3.0.
This is the first official release of the GeoExt v3.2.x series and it is intended to be used with OpenLayers 4.6.5 and ExtJS 6.2.0.
Some time and over 330 commits have passed since the last minor release v3.1.0, but we are still here and things are going forward. This update contains a whole bunch of new features and bugfixes. And another nice thing, geoext is now available as npm package from npmjs.org
https://www.npmjs.com/package/@geoext/geoext
On the other hand, the publishing of geoext as sencha package has been removed.
Some major features include:
For a complete list of changes from v3.1.0, see https://github.com/geoext/geoext3/compare/v3.1.0...v3.2.0