![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
maptalks.glowlayer
Advanced tools
A plugin used for mouse point to adsorb geometries, based on snap interaction.
npm install maptalks.GlowLayer
.https://unpkg.com/maptalks.GlowLayer/dist/maptalks.GlowLayer.min.js
As a plugin, maptalks.GlowLayer
must be loaded after maptalks.js
in browsers. You can also use 'import { GlowLayerol } from "maptalks.GlowLayer"
when develope with webpack.
<script type="text/javascript" src="https://unpkg.com/maptalks/dist/maptalks.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/maptalks.GlowLayer/dist/maptalks.GlowLayer.min.js"></script>
<script>
var layer = new maptalks.GlowLayer({
color: [255, 0, 0, 0.2],
lineJoin : 'round'
}).addTo(map);
</script>
IE 9-11, Chrome, Firefox, other modern and mobile browsers.
setLayer(layer||maptalks.VectorLayer)
specify a layer which has geometries to snap to.
setGeometries(geometries||Array<maptalks.Geometry>)
specify a geometry collection to snap to.
enable()
start snap to.
disable()
end snap to.
setMode(mode||String)
set the snap strategy, when mode is 'point', it will snap to geometries's end points.When it set to 'line',it will snap a point which is mearest to mouse on a LineString.
...
## Contributing
We welcome any kind of contributions including issue reportings, pull requests, documentation corrections, feature requests and any other helps.
## Develop
The only source file is ```index.js```.
It is written in ES6, transpiled by [babel](https://babeljs.io/) and tested with [mocha](https://mochajs.org) and [expect.js](https://github.com/Automattic/expect.js).
### Scripts
* Install dependencies
```shell
$ npm install
$ gulp watch
$ npm test
$ gulp tdd
$ gulp minify
$ npm run lint
FAQs
A snap tool used for mouse point to adsorb geometries on map
We found that maptalks.glowlayer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.