
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
alianza-elements
Advanced tools
Shared UI elements for the alianza-ceibo maps
npm install alianza-elements --save
var elements = require('alianza-elements')
style.css
Get some basic global styles for alianza maps.
var css = require('sheetify')
css('alianza-elements/style.css')
backButton([lang], onclick)
A button that returns to the full map view. Will be visible above the stop
zoom. lang
defaults to es
.
var button = elements.backButton(map, {lang: 'es', stop: 11.93}, function () {
map.fitBounds(...)
})
Updating button language uses the update
function
button.language = 'en'
button.update()
Popup(map)
A base popup that uses yo
under the hood. update
takes an HTML element and updates the dom for the popup.
var popup = elements.Popup(map)
popup.update(HTMLElement)
popup.setLngLat(lngLat)
popup.remove()
Language(updateLang, lang)
updateLang
: a function that fires when button clicked, with the chosen language as a parameter.lang
: the current language (es
or en
).var languageControl = elements.language(updateLang, lang)
document.body.appendChild(languageControl)
FAQs
Shared UI elements for the alianza-ceibo maps
The npm package alianza-elements receives a total of 2 weekly downloads. As such, alianza-elements popularity was classified as not popular.
We found that alianza-elements 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.