Skip to content

fnesveda/MapSwitcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo of the project

MapSwitcher


A browser extension to switch between map websites.


Screenshot of the extension

About

MapSwitcher is a small browser extension which adds buttons to various map services for opening the displayed location in a different service.

Currently supported is switching between Google Maps, Mapy.cz and OpenStreetMap.

This is a small summer project which I did to get some practice with developing browser extensions. There are a few similar projects available, but I didn't like their user experience, so I wanted to make a free, simple, open source alternative which would suit my needs and would integrate well with the supported services.

Installation

MapSwitcher currently supports Google Chrome, Mozilla Firefox and Opera.

To install, download the extension either from the Chrome Web Store or the Firefox Add-Ons portal.

Usage

MapSwitcher adds buttons to the tools sections of Google Maps and Mapy.cz, clicking on which opens the currently displayed location in Google Maps or Mapy.cz. In the extension options you can decide which buttons will be shown, as well as whether the new map will open in a new tab.

Developing

MapSwitcher is a fairly standard WebExtension, prepared to work in all the major browsers supporting WebExtensions. Currently it is tested to work in Google Chrome, Mozilla Firefox and Opera, and it probably supports Edge as well.

The extension injects content scripts to the supported services, which on load of the page insert the desired buttons to the DOM. When clicking those buttons, the currently displayed location gets extracted from the page URL and gets converted to the coordinate system used by the target service, from which the target URL is assembled and then opened.

Links

Licensing

The code in this project is licensed under the MIT license. Everybody is welcome to use, change and modify the project as they see fit.

The Google Maps, Mapy.cz and OpenStreetMap logos are registered trademarks of their respective owners, and are used within this project only for identification purposes.