geops / openlayers-editor Goto Github PK
View Code? Open in Web Editor NEWOpenLayers Editor
Home Page: http://openlayers-editor.geops.com
License: BSD 2-Clause "Simplified" License
OpenLayers Editor
Home Page: http://openlayers-editor.geops.com
License: BSD 2-Clause "Simplified" License
Branch | Build failing 🚨 |
---|---|
Dependency | @neutrinojs/image-loader |
Current Version | 8.2.3 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
@neutrinojs/image-loader is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Branch | Build failing 🚨 |
---|---|
Dependency | neutrino |
Current Version | 8.2.3 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
neutrino is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Testing the GUI elements and the integration with OpenLayers:
https://www.cypress.io/
As guides are generated by the edges of features registered for snapping, when map features have any complexity they can result in a large number of guides being generated. As shown in the image below, 2 features can generate a large number of lines (in the image 10). In our application we have seen in real maps 50+ lines being generated using nbClosestFeatures: 5
. In cases like this the guides are essentially meaningless.
Add a new option (limitGuidesFromFeature
) to the cad control which provides the user the ability to limit the number of features that can be generated from any given feature. For example, you might limit the number of lines that can be possibly generated from a feature to 3; we would then limit the number of lines added to the map to the 3 most proximal to the users cursor. This way, there will be a hard maximum of lines ever shown on the users screen to nbClosestFeatures
times the limitGuidesFromFeature
.
(This is the strategy I plan to implement in my companies fork of the project, we will be happy to submit the implementation if this sounds reasonable).
In #140 we upgraded to OpenLayers 6 release. This release has breaking changes in the select interaction, so we copied the old implementation to our repository.
We should try to move to the new OL6 select interaction to minimize code duplication and maximize compatibility with OL.
Implement automated unit tests using Jest.
Branch | Build failing 🚨 |
---|---|
Dependency | @neutrinojs/dev-server |
Current Version | 8.2.3 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
@neutrinojs/dev-server is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Hi,
Is there any way to show distance from snipping points on mouse? Sth like autocad or even if user types a value it draws lines in its entered distance?
Goals
Memo
For the sake of my fingers.
Thanks for this handy Spatial Editing Controls for Openlayers 4. It is just lacking the support for Mobile / Touch Devices. See example(s) at (especially the first link):
http://viglino.github.io/ol-ext/examples/map.interaction.drawtouch.html
some more:
http://viglino.github.io/ol-ext/examples/map.interaction.touchcompass.html
or
http://viglino.github.io/ol-ext/examples/map.interaction.longtouch.html
Bug: While the ModifyControl is activated, the map doubleClick zoom no longer works since the Editor listens to the doubleClick from the selectModify Interaction instead.
Currently this can be prevented by redefining the modifyCondition (doubleClick by default) in the ModifyControl options, but a permanent solution should be implemented in OLE.
Fix: The condition needs to be refactored to only apply when features are present at the pixel
To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:
.travis.yml
If you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.
Greenkeeper has checked the engines
key in any package.json
file, the .nvmrc
file, and the .travis.yml
file, if present.
engines
was only updated if it defined a single version, not a range..nvmrc
was updated to Node.js 10.travis.yml
was only changed if there was a root-level node_js
that didn’t already include Node.js 10, such as node
or lts/*
. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.For many simpler .travis.yml
configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Hi there,
Few months or so ago I saw this repository. Nice work, I liked it very much. Especially union/intersection/buffer etc. things are cool!
On the other hand, some controls are a bit confusing. Either I didn't understand how to use em or there could be some malfunction. For example I see a bit strange behavior while using snap controls. Here are the steps to reproduce the problem:
1- Put a point on a map with using "draw point" tool.
2- Snap is opened. 0 px 10 px it won't matter.
3- There are x signs at 4 side of point. The controller snaps these x signs.
4- How to exactly start a line from the exact location of point? I could find there is no way to snap on the point but 4 x marks.
This one works with lines, have strange issues with polygons (never puts a point at snap location).
I didn't get the idea behind the requirement of adding x signs around the vertices. OpenLayer's snap control works well in my opinion except not being able to snap the currently drawing geometry (or can be done that I don't know the way yet). I believe you are planning to implement snap controls like AutoCAD's. They do good job as well.
By the way, also I am working on a hobbyish thing atm if ye wanna check (can see ol snapping already):
https://onderaltintas.github.io/arz/
Have fun,
I'm trying to package my app that uses open layers using webpack.
I loaded ole from node_modules in my main.js file
import ole from 'ole';
and I provided the ol library directly in webpack.config.js
new webpack.ProvidePlugin({
"ol": "ol"
})
Webpack ran without any errors but running the bundle in chrome browser I got the following exception:
Uncaught TypeError: Cannot read property 'Control' of undefined
at Object. (main.js:24772)
at t (main.js:24510)
at Object. (main.js:24698)
at t (main.js:24510)
at Object. (main.js:24685)
at t (main.js:24510)
at Object. (main.js:24682)
at t (main.js:24510)
at main.js:24521
at main.js:24522
the line that broke looks like this
}(ol.control.Control);t.a = c;
sorry I couldn't get it un-minified
Branch | Build failing 🚨 |
---|---|
Dependency | css-loader |
Current Version | 0.28.7 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
css-loader is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 10 commits.
0fc46c7
chore(release): 0.28.8
333a2ce
chore(package): update dependencies
39773aa
ci(travis): use npm
8897d44
fix: proper URL escaping and wrapping (url()
) (#627)
0dccfa9
fix(loader): correctly check if source map is undefined
(#641)
d999f4a
docs: Update importLoaders documentation (#646)
05c36db
test: removed redundant modules
argument (#599)
c45fa66
test: add case for url
processing (#603)
7039740
docs(README): add anchor tags to options table (#609)
0840c80
Fix markdown for link to webpack resolve.alias doc (#595)
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
src/interaction/selectmodify.js uses GeometryType from 'ol/geom/GeometryType'. This does not exist in OL v6.15.0+ as it has been deprecated.
From OL release notes:
"Replacement of string enums with union types
This change only affects users that were using the non-API string enums
ol/OverlayPositioning
ol/extent/Corner
ol/format/FormatType
ol/geom/GeometryType
ol/source/State
ol/source/WMSServerType
ol/source/WMTSRequestEncoding
Instead of these, use the respective strings, which are now typesafe by means of union types."
Could OLE be updated to work with OL v6.15.0+ please?
Controls that use JSTS code should not import JSTS files by referencing the full path to the node_modules directory. Instead Webpack should import and compile JSTS files by referencing the JSTS package. Right now this will not work, because Webpack will not compile files from external packages. Maybe use and configure babel-loader.
@mhaertwig What do you think about making drawInteraction an public property and maybe renaming it to
interaction
?
Sounds good! How do we deal with controls having multiple interactions, like the CAD control. Alternatively we could implement a custom event handling for OLE to be more flexible. What do you think?
Originally posted by @mhaertwig in #85 (comment)
Branch | Build failing 🚨 |
---|---|
Dependency | uglifyjs-webpack-plugin |
Current Version | 1.1.6 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
uglifyjs-webpack-plugin is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 4 commits.
75943e1
chore(release): 1.1.7
2343274
fix(index): reduce memory consumption (cacheKey.hash
) (#215)
7d1b487
test: update snapshots (#214)
f66f6f0
docs(README): mangle.props
instead of mangle.properties
(#207)
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Hello! How can i use the drawend event with ole2?
My code:
var draw;
if (tipo === 'Point') {
draw = new ole.control.Draw({
source: source
});
} else if (tipo === 'LineString') {
draw = new ole.control.Draw({
type: 'LineString',
source: source
});
} else if (tipo === 'Polygon') {
draw = new ole.control.Draw({
type: 'Polygon',
source: source
});
}
draw.on('drawend', function (evt) {
...
});
4.29.6
to 4.30.0
.This version is covered by your current version range and after updating it in your project the build failed.
webpack is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
amd: false
to disable AMD supportCompilation.hooks.finishModules
now also allows async pluginsoutput.libraryTarget: "system"
to compile for SystemJs environmentnull
id when concatenating an entry module in a different chunkThe new version differs by 102 commits.
b72b96a
4.30.0
9ededfa
Merge pull request #9034 from webpack/dependabot/npm_and_yarn/tapable-1.1.3
e33a91f
chore(deps): bump tapable from 1.1.1 to 1.1.3
de81dd0
Merge pull request #8864 from joeldenning/issue-8833
7dfddc2
Merge pull request #8858 from webpack/dependabot/npm_and_yarn/json-schema-to-typescript-6.1.3
f7d0c25
Improve way how System is tested
39a680d
formating of output code
e2e74f5
Merge pull request #8980 from webpack/dependabot/npm_and_yarn/eslint-5.16.0
81dc70d
Merge pull request #9022 from sandersn/fix-webassembly-declaration
13aa512
Merge pull request #9023 from webpack/dependabot/npm_and_yarn/typescript-3.4.3
1566036
chore(deps-dev): bump typescript from 3.4.2 to 3.4.3
ce33ca7
Update WebAssembly declaration
5117461
Merge pull request #9006 from hiroppy/feature/fix-template-syntax
9e60850
Merge pull request #8984 from webpack/dependabot/npm_and_yarn/react-16.8.6
5f75527
Bump json-schema-to-typescript from 6.1.1 to 6.1.3
There are 102 commits in total.
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
DrawControl does not permit customisation of the toolbar icon. This is problematic given that the same icon is used for points and circles. They should be more easily distinguishable and, ideally, able to be overridden.
is there any way to delet a feature via the toolbar ?
Branch | Build failing 🚨 |
---|---|
Dependency | @neutrinojs/style-loader |
Current Version | 8.2.3 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
@neutrinojs/style-loader is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Are there any plans to do a release to a CDN, such as cdnjs and npm?
3.1.0
to 3.1.1
.This version is covered by your current version range and after updating it in your project the build failed.
cypress is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
I am unable to pan around or zoom in / out when Rotate Control is enabled.
Branch | Build failing 🚨 |
---|---|
Dependency | @neutrinojs/library |
Current Version | 8.2.3 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
@neutrinojs/library is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Hello,
we have a use case wheer we need to draw different "type of points" with the editor.
Each point will correlate to an icon of a different style.....
CAn that be done via the editor ?
CAn we custom an icon for the point draw ?
In Chrome (tested with 86.0.4240.111 on Ubuntu) the 'grab'-cursor (used for moving features and nodes in the ModifyControl) is currently not supported. Although [MDN|https://developer.mozilla.org/en-US/docs/Web/CSS/cursor] states it has support for '-webkit- grab', it doesn't work in any of the test sites like http://elektronotdienst-nuernberg.de/bugs/cursor.html or https://www.w3schools.com/cssref/tryit.asp?filename=trycss_cursor in the latest stable Chrome version.
This issue needs to be monitored and checked for Chrome updates that solve the bug.
when i try to merge two feature got Error:- Unable to process features
Also,
I created Vector layer using vector source url (geoserver).
So, how can i update changes in postgis db ?
how can i build undo, redo controls and split feature
When I have clicked on Toolbar then the error throws on the browser.
[https://ibb.co/xhVDgwG](error image)
×
TypeError: declutterLayers[i].renderDeclutter is not a function
CompositeMapRenderer.renderFrame
src/renderer/Composite.js:137
134 | }
135 | replaceChildren(this.element_, this.children_);
136 | this.dispatchRenderEvent(RenderEventType.POSTCOMPOSE, frameState);
137 | if (!this.renderedVisible_) {
| ^ 138 | this.element_.style.display = '';
139 | this.renderedVisible_ = true;
140 | }
View compiled
Map.PluggableMap.renderFrame_
src/PluggableMap.js:1418
Map.
src/PluggableMap.js:213
210 | * @Private
211 | * @type {import("./transform.js").Transform}
212 | /
213 | this.pixelToCoordinateTransform = createTransform();
| ^ 214 | /*
215 | * @Private
216 | * @type {number}
Branch | Build failing 🚨 |
---|---|
Dependency | @neutrinojs/airbnb-base |
Current Version | 8.2.3 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
@neutrinojs/airbnb-base is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Thanks for your amazing library.
Can I use this library with Openlayer V4 ?
4.32.0
to 4.32.1
.This version is covered by your current version range and after updating it in your project the build failed.
webpack is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
node: false
.There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
When SelectModify is active, nodes can be removed from polygons and lines.
When hovering along the edges of polygons and lines, while the overlay is active (the blue hover point is visible), on click it can happen that the feature is deselected and a hover style Point feature is created on the edge. The Point feature is removed on click on the map.
This bug can be easily reproduced when trying to delete nodes from lines or polygons with exactly two nodes for lines and three nodes for polygons (the minimum number nodes to classify as the geometry)
Expected: Click on edges while modifying and click on minimum number of nodes does nothing
Hello, i need help to get the project working, complete log of this run:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node',
1 verbose cli '/usr/lib/node_modules/npm/bin/npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'start',
1 verbose cli '--scripts-prepend-node-path=auto' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]prestart: [email protected]start: [email protected]
6 info lifecycle [email protected]
7 verbose lifecycle [email protected]start: unsafe-perm in lifecycle truestart: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/cesar/WebstormProjects/ole2/node_modules/.bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
8 verbose lifecycle [email protected]
9 verbose lifecycle [email protected]start: CWD: /home/cesar/WebstormProjects/ole2start: Args: [ '-c', 'webpack-dev-server --progress --watch' ]
10 silly lifecycle [email protected]
11 info lifecycle [email protected]~start: Failed to exec start script
12 verbose stack Error: [email protected] start: webpack-dev-server --progress --watch
12 verbose stack spawn ENOENT
12 verbose stack at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
12 verbose stack at emitTwo (events.js:126:13)
12 verbose stack at ChildProcess.emit (events.js:214:7)
12 verbose stack at maybeClose (internal/child_process.js:925:16)
12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
13 verbose pkgid [email protected]
14 verbose cwd /home/cesar/WebstormProjects/ole2
15 verbose Linux 4.10.0-42-generic
16 verbose argv "/usr/bin/node" "/usr/lib/node_modules/npm/bin/npm-cli.js" "run" "start" "--scripts-prepend-node-path=auto"
17 verbose node v8.9.3
18 verbose npm v5.6.0
19 error file sh
20 error code ELIFECYCLE
21 error errno ENOENT
22 error syscall spawn
23 error [email protected] start: webpack-dev-server --progress --watch
23 error spawn ENOENT
24 error Failed at the [email protected] start script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ]
The tiles in the example app don't load, instead returning a 410 (Gone)
The Tile URL needs to be updated
Hello! How can i get the "drawned" event from 2 or more feature union (JSTS)?
☝️ Greenkeeper’s updated Terms of Service will come into effect on April 6th, 2018.
Branch | Build failing 🚨 |
---|---|
Dependency | @neutrinojs/airbnb-base |
Current Version | 8.2.1 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
@neutrinojs/airbnb-base is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Demo seems to be broken. In the console I get a ReferenceError: ole is not defined
error.
Error occurs at
// ole.geops.de:73:11
var editor = new ole.Editor(map);
Hi,
Im sure its not an editor feature, but is there any snipppest we can use to quickly read the geometry that was drawn with the editor ?
It might be just an open layer feature but just asking...
☝️ Greenkeeper’s updated Terms of Service will come into effect on April 6th, 2018.
Branch | Build failing 🚨 |
---|---|
Dependency | @neutrinojs/library |
Current Version | 8.2.1 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
@neutrinojs/library is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.