bayer-group / ol-kit Goto Github PK
View Code? Open in Web Editor NEWEasy to use, open source React/Openlayers geospatial component toolkit.
Home Page: https://ol-kit.com
License: Other
Easy to use, open source React/Openlayers geospatial component toolkit.
Home Page: https://ol-kit.com
License: Other
Get full demo site up and working
Making the sidebar dynamic so each page is not changed when components are added or removed
VectorLayer
currently overrides any style
prop passed in at initialization. This should be fixed so that it more closely resembles ol/layer/vector
GeoserverLayer
class from internalcheckout migration path here:
(this will have to be a new major version for ol-kit)
Appears to happen when sidebar is longer than the body of the page, which, as more features get added, will become more and more common.
Our JSdoc template has taffydb info in it. We need to look at how other doc sites enable search.
Hi,
After installing ol-kit, i've got 3 high vulnerabilities related to loadah dependency. npm audit says it's patched in version >=4.17.12. So, i installed latest version ie : 4.17.15 but vulnerabilities are still there.
Any help appreciated !
thx,
Fred.
Take #14 to completion and add export to PDF
We have support for overriding translations and adding other languages, but localization of numbers, dates and other such things is not in place. This issue captures the need to address this.
This will be a component that is always mounted and handles creating context for the <Map>
(and all other ol-kit components) to consume via connectToMap
...also deprecate connectToMap
in favor of contectToContext
that is more universal and pulls from this <Provider>
context
In the documents, it says translations
is optional, but when I try:
<BingMaps map={m} sourceOpts={bingOptions} ><Controls /><Popup /></BingMaps>
it gives
TypeError: Cannot read property '_ol_kit.BingMaps.title' of undefined
BingMaps.render
C:/dev/temp/populationConvert/ol-kit-map/node_modules/@bayer/ol-kit/core/Basemaps/BingMaps.js:137
134 | onClick: this.onClick
135 | }, /*#__PURE__*/_react["default"].createElement(_styled.BasemapThumbnail, {
136 | thumbnail: thumbnail
> 137 | }), /*#__PURE__*/_react["default"].createElement(_styled.Label, null, translations['_ol_kit.BingMaps.title']));
| ^ 138 | }
139 | }]);
140 | return BingMaps;
Once I add translations={t} with const t={title:'hi'} it goes away.
Add GH actions to run the following on every branch:
npm test
npm run lint
Our current design is not very well suited to multi-map support which will probably make its way from internal source to ol-kit. We generally had trouble solving this since we didn't have a central store of any kind. One solution would be to use localStorage
APIs. We could add a prop so people could disable this if they would rather not haver ol-kit "polluting" localStorage
, however it's fairly reasonable to assume most implementors will have a store of their own and thus wouldn't use localStorage
for much if anything.
it would be awesome to store map/layer style/state via an encoded url param that is parsed on page load and hydrates the map
Some people might want import and export somewhere other than where it is marked as required
. I'm thinking - what if we would pull the handleImport
and handleExport
functionality into utils, and should an IA choose to, they could import in the layer panel or the side bar, or anywhere.
Add TS support
ol-kit will be supporting the MIT Covid-19 Challenge hackathon April 3-5. There's a few cleanup items we need address for the potential influx of external users:
@bayer/ol-kit
instead of ol-kit
in the examplenpm i ol-kit --save
this needs @bayer
preprendedPopup
from the example since it's not yet available?README.md
to the landing page0.1.0
to npm ๐The snapshots will keep failing until we get jest-styled-components
to work with the @testing-library
outputs
The doc build is missing files in the template /lib
directory and also does not include the build tools as dev deps of the package.
This should be a github action that allows you to choose major
/minor
/patch
that bumps the version on master before running
Provide a default home for the ol-kit components, but not a required component for ol-kit map implementers.
It would be valuable to support layer management out of the box. We already have this capability internally and should make an effort to add it here
This should be a github action that allows you to choose major
/minor
/patch
that bumps the package.json
version on master, releases release
doc on gh (which should create tag) and runs npm run ship
to deploy new version to npm
To help the users identify which basemap would be best for the current view, we could try to show mini maps with the basemap picker at the current extent.
This would be a URL-based implementation of a project
=== npm audit security report ===
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Manual Review โ
โ Some vulnerabilities require your attention to resolve โ
โ โ
โ Visit https://go.npm.me/audit-guide for additional guidance โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Moderate โ Denial of Service โ
โโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Package โ js-yaml โ
โโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Patched in โ >=3.13.0 โ
โโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Dependency of โ babel-plugin-inline-react-svg [dev] โ
โโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Path โ babel-plugin-inline-react-svg > svgo > js-yaml โ
โโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ More info โ https://npmjs.com/advisories/788 โ
โโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ High โ Code Injection โ
โโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Package โ js-yaml โ
โโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Patched in โ >=3.13.1 โ
โโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Dependency of โ babel-plugin-inline-react-svg [dev] โ
โโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Path โ babel-plugin-inline-react-svg > svgo > js-yaml โ
โโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ More info โ https://npmjs.com/advisories/813 โ
โโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
found 2 vulnerabilities (1 moderate, 1 high) in 888865 scanned packages
2 vulnerabilities require manual review. See the full report for details.
The zoom control buttons are onmousedown
and should also add support for touch devices so you can hold to continuously zoom just like desktop
Ahead of ol-kit v1, we will move to latest OpenLayers 5 dependency
^5.3.0
We also support this internally. Make this part of the public project
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.