Make your penpot designs more impressive by adding hand-crafted 2D maps!
The map editor plugin allows designers to search for places, to adjust the width, height and zoom of the map and to export it as image directly into your document.
By default, this plugin uses OSM tile layers and Nominatim for searching places. More themes can be picked after adding a (free) thunderforest API key.
This plugin was set up with Penpot Plugin Starter Template.
To enable this plugin in your penpot instance:
-
Open the Plugin Manager: Use the shortcut
Ctrl + Alt + P
in any file to open the Plugin Manager modal. -
Enter the manifest URL: In the Plugin Manager, provide the plugin URL: https://penpot-maps-editor.netlify.app/manifest.json
-
Click "Install"
-
Access the plugin: Once installed, you can open and use the plugin directly from within Penpot whenever you need it.
Enjoy :)
(Taken from Penpot Plugin Starter Template:)
After cloning the repository, navigate into the project directory and install the necessary dependencies by running:
npm install
This command installs all the required packages listed in the package.json
file.
To start the development server, run the following command in your terminal:
npm run dev
Once the server is running, open your web browser and go to http://localhost:4400
to view your plugin in action. Now it is ready to be loaded in Penpot with the url http://localhost:4400/manifest.json
.
To load and test your local plugin running on http://localhost:4400
, follow these steps:
-
Open the Plugin Manager: Use the shortcut
Ctrl + Alt + P
in any file to open the Plugin Manager modal. -
Enter the manifest URL: In the Plugin Manager, provide the URL for your local plugin's manifest file. For a local setup, this URL will be:
http://localhost:4400/manifest.json
. -
Install the plugin: After entering the URL, Penpot will attempt to install the plugin. If there are no issues, the plugin will be successfully installed.
-
Access the plugin: Once installed, you can open and use the plugin directly from within Penpot whenever you need it.
This plugin template uses several key technologies:
- TypeScript
- Vite
- Web Components
The template includes two Penpot libraries to assist in your development:
@penpot/plugin-styles
: This library provides utility functions and resources to help you style your components consistently with Penpot's design system.@penpot/plugin-types
: This library includes types and API descriptions for interacting with the Penpot plugin API, facilitating the development of plugins that can communicate effectively with the Penpot app.
npm run build
After successfully building your plugin, now you're ready to use your chosen platform to deploy it.
Check our Deployment guide for more information about how to deploy your plugin in multiple platforms.