Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
mapnik-reference
Advanced tools
mapnik-reference
is a spec of what Mapnik styling and datasource properties are supported for each version.
It is useful for building parsers, tests, compilers, and syntax highlighting/checking for languages.
Default branch is gh-pages
which is displayed at http://mapnik.org/mapnik-reference
The version of this repository indicates the schema of the reference.json file. Schema changes of any type are expected to change the implementation requirements of a parser, so they will increment the major version of this repository in semver style.
The directories in this repository directly correspond to released versions of Mapnik and the next targeted release of Mapnik.
The structure of the file is as such:
version
: the version of Mapnik targeted. Same as the containing directory.style
: properties of the Style
XML elementlayer
: properties of the Layer
XML elementsymbolizers/*
: properties that apply to all symbolizerssymbolizers/symbolizer
: properties that apply to each type of symbolizercolors
: named colors supported by Mapnik. see include/mapnik/css_color_grammar.hpp
The status
key may be used to define the stability of a property. When the key is not specified,
then the status
is stable
. Possible values are:
property
is here to stay and its behavior is not anticipated to changeproperty
is here to stay but its behavior/meaning of property
may changeproperty
should not be used and will be removed in upcoming major version of Mapnikproperty
should not be used and may change, be re-named, or disappear at any timeThis is a valid npm module and therefore can easily be used with node.js.
npm install mapnik-reference
Install it as a dependency of your application. Then use that API to get a reference instance for a specific version of Mapnik:
var mapnik_reference = require('mapnik-reference');
var ref = mapnik_reference.load('3.0.0');
You can also get access to an array of all known versions:
var mapnik_reference = require('mapnik-reference');
mapnik_reference.versions;
[ '2.0.0',
'2.0.1',
'2.0.2',
'2.1.0',
'2.1.1',
'2.2.0',
'2.3.0',
'3.0.0' ]
Other implementations will want to simply copy the JSON file
from the desired implementation, like 2.0.1/reference.json
.
The file can then be parsed with any of the many json parsers.
Tests require python and node.js:
make test
8.10.0
line-pattern-type
, line-pattern-alignment
, line-pattern-width
, line-pattern-cap
, line-pattern-join
, line-pattern-miterlimit
, line-pattern-dasharray
shield-min-distance
FAQs
Reference for Mapnik Styling Options
The npm package mapnik-reference receives a total of 487 weekly downloads. As such, mapnik-reference popularity was classified as not popular.
We found that mapnik-reference demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 29 open source maintainers 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.