Skip to content

Plugin for Openstreetmap ID to let the user choose from multiple custom background layers (Chrome Extension)

License

Notifications You must be signed in to change notification settings

dp7x/iD-multilayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSM iD: Custom Background Layers

Overview

OSM iD: Custom Background Layers is a lightweight Chrome extension designed to enhance your mapping experience in the OpenStreetMap iD editor. It allows you to easily add and switch between your frequently used custom map background layers, streamlining your workflow without needing to manually paste URLs every time.

Features

  • Quick Access: Add your favorite custom background map layers directly from a dedicated popup panel within the iD editor.
  • Seamless Integration: Designed to blend visually with the iD editor's interface, providing a native feel.
  • One-Click Application: Apply any of your defined custom layers with a single click – the extension automatically handles the URL input and confirms the selection in iD.
  • Customizable Layers: Define a name and URL template for each layer.

Installation

Please note that this extension is currently released in developer mode and is not yet packaged. To install it, you will need to load it as an "unpacked" extension in Chrome. To install OSM iD: Custom Background Layers, follow these steps:

  1. Download the Extension:
    • Create a folder on your computer and download all the files from this repo.
  2. Open Chrome Extensions Page:
    • Open Chrome.
    • Type chrome://extensions in the address bar and press Enter.
    • Alternatively, go to Menu (⋮) > More tools > Extensions.
  3. Enable Developer Mode:
    • On the Extensions page, toggle the "Developer mode" switch to the ON position (usually in the top right corner).
  4. Load the Extension:
    • Click the "Load unpacked" button that appears.
    • Navigate to the folder where you unzipped/cloned the extension (the folder containing manifest.json).
    • Select that folder and click "Select Folder".
  5. Pin the Extension (Optional but Recommended):
    • Click the puzzle piece icon (Extensions icon) in your Chrome toolbar.
    • Find "OSM iD: Custom Layer Settings" and click the pin icon next to it to make it visible in your toolbar for easy access.

Usage

  1. Configure Your Custom Layers:
    • Click on the OSM iD: Custom Layer Settings icon in your Chrome toolbar (the extension's popup).
    • Use the "Add New Layer" button to create new entries.
    • For each layer, enter a Button Text (what you want to see on the button, e.g., "OpenTopoMap") and the URL Template for your map service (e.g., [https://tile.opentopomap.org/{z}/{x}/{y}.png]).
    • Click "Save Settings".
  2. Access Layers in iD Editor:
    • Open the OpenStreetMap iD editor (e.g., https://www.openstreetmap.org/edit).
    • In the iD editor, click on the "Background Settings" button (looks like an icon with multiple layers, typically on the right side).
    • In the "Background Settings" panel, click on "Edit custom background" (represented by a three dots icon ...).
    • A new pop-up panel from this extension will appear.
  3. Select Your Layer:
    • Simply click on the button corresponding to the custom background layer you wish to apply. The extension will automatically fill the URL and confirm your choice in iD.

Contributing

Contributions are welcome! If you have suggestions for improvements, bug reports, or would like to contribute code, please open an issue or submit a pull request on the GitHub repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Credits

© 2024 dp7@OpenStreetMap

About

Plugin for Openstreetmap ID to let the user choose from multiple custom background layers (Chrome Extension)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published