
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
apostrophe-raphael
Advanced tools
Apostrophe's solution for simple vector maps. Subclasses apostrophe-snippets. Uses raphael.js.
Apostrophe's solution for simple vector maps. Subclasses apostrophe-snippets. Uses raphael.js.
Make sure you have the module installed in and required by your project:
npm install apostrophe-raphael --save
Now, in app.js when you're setting up your modules, simply add 'apostrophe-raphael' to the modules object.
modules: {
'apostrophe-ui-2': { },
'apostrophe-editor-2': { },
'apostrophe-raphael': { },
// ... and so on
}
And then make sure the 'raphael' page type is added with the others. It should look something like this:
pages: {
types: [
{ name: 'default', label: 'Default (Two Column)' },
{ name: 'blog', label: 'Blog' },
{ name: 'raphael', label: 'US Map' }
]
}
Lastly, add the menu to the Apostrophe admin bar so our content can be edited. In views/global/outerLayout.html, include aposRaphaelMenu with the other menu calls:
{{ aposPagesMenu({ page: page, edit: edit }) }}
<!-- right in here -->
{{ aposRaphaelMenu(permissions) }}
{{ aposPeopleMenu(permissions) }}
{{ aposGroupsMenu(permissions) }}
{{ aposMediaMenu({ edit: permissions.guest })}}
{{ aposTagsMenu({ edit: permissions.admin }) }}
By default, apostrophe-raphael renders a map of the United States but that's easy to change! You can pass a mapType option to the module. You'll probably also want to change the label and icon accordingly.
'apostrophe-raphael': {
mapType: 'world',
label: 'World Map',
icon: 'globe',
}
FAQs
Apostrophe's solution for simple vector maps. Subclasses apostrophe-snippets. Uses raphael.js.
The npm package apostrophe-raphael receives a total of 1 weekly downloads. As such, apostrophe-raphael popularity was classified as not popular.
We found that apostrophe-raphael 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.