Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ember-leaflet-pm
Advanced tools
Changelog
[2.0.3] - 2020-08-03
Readme
Use leaflet-geoman (used to be leaflet.pm) in Ember with ember-leaflet to create and edit geometry layers.
ember install ember-leaflet-pm
<LeafletMap … as |layers|>
…
<layers.pm-control />
</LeafletMap>
LeafletPmControl
exposes all options of the leaflet-geoman toolbar. In addition the pm map events pm:drawstart
, pm:drawend
and pm:create
are available on this component in the ususal ember-leaflet fashion (@onPm:drawstart={{action "someAction"}}
). Language can be set with the lang
property (@lang="de"
).
If you want to be able to edit existing layers and work with the modified geometries (i.e. store them in your backend), use the PmEnabledLayer
mixin on the required layer type. This brings support for the pm layer events like pm:edit
or pm:vertexadded
as well as the pmIgnore
option.
For example:
import MarkerLayer from 'ember-leaflet/components/marker-layer';
import PmEnabledLayer from 'ember-leaflet-pm/mixins/pm-enabled-layer';
export default MarkerLayer.extend(PmEnabledLayer);
<LeafletMap … as |layers|>
<layers.marker-layer-pm @location={{coordinates}} @onPm:edit={{action "featuredEdited"}} />
<layers.pm-control />
</LeafletMap>
Directly interacting with leaflet-geoman is not supported, yet.
See the Contributing guide for details.
This project is licensed under the MIT License.
FAQs
Use leaflet-geoman in Ember with ember-leaflet.
The npm package ember-leaflet-pm receives a total of 13 weekly downloads. As such, ember-leaflet-pm popularity was classified as not popular.
We found that ember-leaflet-pm 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.