Giter Site home page Giter Site logo

bav4's People

Contributors

alsturm avatar dependabot-preview[bot] avatar dependabot[bot] avatar enbakir avatar evgenitum avatar norbertk avatar taulinger avatar thevoiceofthruth avatar thiloschlemmer avatar tschlemmer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

urfavdr evgenitum

bav4's Issues

Layer Manager...

should update the name of a layer when label property changed ( observes changes on layer.label)

Flacky DndImportPanel tests

reproducible by running all tests e.g. npm run test --browsers=FirefoxHeadless

 An error was thrown in afterAll
  Expected EventLike({ _payload: Object({ content: 'dndImport_import_no_file_found', level: Symbol(warn) }), _id: 1379875718204 }) to be undefined.
  <Jasmine>
  ./test/modules/dndImport/components/DndImportPanel.test.js/</</</</<@/tmp/_karma_webpack_727583/commons.js:233703:52

Not closing Polygon

While digitizing a measurement-polygon, the snap&click on the first point (to automaticly finish) seems not be acknowlegded and results in a Linestring-geometry.

split SearchResult class into sub classes


/**
 * @enum
 */
 export const SearchResultTypes = Object.freeze({
	LOCATION: Symbol.for('location'),
	GEORESOURCE: Symbol.for('georesource'),
	CADASTRAL_PARCEL: Symbol.for('cadastral_parcel')
});

/**
 * Represents a single search result.
 * @class
 * @abstract
 * @author taulinger
 */
export class SearchResult {

	constructor(id, label, labelFormated) {
		this._id = id;
		this._label = label;
		this._labelFormated = labelFormated;
	}

	get id() {
		return this._id;
	}

	get label() {
		return this._label;
	}

	get labelFormated() {
		return this._labelFormated;
	}

	/**
	 * @abstract
	 */
	getType() {
		// The child has not implemented this method.
		throw new TypeError('Please implement abstract method #getType or do not call super.getType from child.');
	}

}

export class LocationSearchResult extends SearchResult {

	constructor(id, label, labelFormated, center = null, extent = null) {
		super(id, label, labelFormated);
		this._center = center;
		this._extent = extent;
	}

	get center() {
		return this._center;
	}

	get extent() {
		return this._extent;
	}

	getType() {
		return SearchResultTypes.LOCATION;
	}
}
export class CadastralParcelSearchResult extends SearchResult {

	constructor(id, label, labelFormated, center = null, extent = null) {
		super(id, label, labelFormated);
		this._center = center;
		this._extent = extent;
	}

	get center() {
		return this._center;
	}

	get extent() {
		return this._extent;
	}

	getType() {
		return SearchResultTypes.CADASTRAL_PARCEL;
	}

}

export class GeoResourceSearchResult extends SearchResult {

	constructor(id, layerId, label, labelFormated) {
		super(id, label, labelFormated);
		this._layerId = layerId;
	}

	get layerId() {
		return this._layerId;
	}

	getType() {
		return SearchResultTypes.GEORESOURCE;
	}
}

Flaky test(s) in OlMeasurementHandler.test.js

absoluteOlMeasurementHandler.test.1703910062.js OlMeasurementHandler when activated over olMap looks for measurement-layer and adds the feature for copy on save FAILED
[INFO] 	Expected null to equal Object({ adminId: null, fileId: 'f_lastId' }).

karma-webkit-launcher does not close browser

... after tests are run. On the next run, test execution is confused.

Detect running Webkit instances:
ps -ef | grep webkit

Possible workarounds:

  • kill Webkit manually after each test run with something like pkill -f "webkit"
    or
  • run tests only with FF and Chrome npm run test --browsers=FirefoxHeadless,ChromeHeadless

Fix drag&drop in LayerManager

the capability to drag&drop a layer to reorder the layer-list isn't working anymore.
A DraggedItem (Layer) finds no space where dropping is allowed. This is only allowed on placeholder-elements, which obviously have no space.

Adding a padding: 2px would fix the issue.

header layout

The coat of arms overlaps the toolbox-content, but the opposite should be true.
image

Draw-Interaction still active after abort&close DrawTool

if the user opens the DrawTool, activates one of the DrawTypes (Symbol,Text, Line,Polygon) and immediatly closes the DrawTool,
the selected DrawType (OpenLayers Draw-Interaction) is still active (the corresponding drawStyle is rendered).

Incorrect layer label

After loading a measurement geometry from the backend, the created layer is labeled with a fallback name but should retrieve its label from the KML file.

translation is missing

No value found for de.toolbox_toolbar_measure_button TranslationService.js:59
No value found for de.toolbox_toolbar_draw_button TranslationService.js:59
No value found for de.toolbox_toolbar_share_button TranslationService.js:59

Flickering Overlay on Measurement-Geometry

if a measure-feature is drawn, the first partition-overlay (e.g. 100m) is flicker and switches between tow states (0.1km <> 100m), while moving the pointer over the map

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.