Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.97 KB

README.md

File metadata and controls

32 lines (21 loc) · 1.97 KB

Geo-Uri Handler - Firefox

The add-on for the web-browser Mozilla Firefox has been tested with version 133.0.
This will not work with Firefox for Android since Android is handling geo-URIs internally.

Install

  • You can temporarily load the source code into Firefox as described in Mozilla's docs
  • To use the addon permanently, you have to sign it as described in Mozilla's extension workshop
    • ZIP all files in the src subdirectory (excluding src itself)
    • Open the Add-ons Developer Hub, sign in or register and submit your file
    • For private use, the distribution type "On your own" should be sufficient. Otherwise, the add-on will be listed publicly in Mozilla's Add-ons Manager

Change Map Service

  • Edit the string created after targetUrl = in line four of GeoUriHandler.js
    • You can use the string data which contains the original input (geo:10,20) without geo -> data = 10,20
    • You can use the string-array coords which contains the latitude (0), longitude (1) and, if supplied, the altitude (3)
  • This string will be opened in the current tab

Existing products

To avoid compiling your own Firefox add-on, the already existing geo-handler add-on might satisfy your needs (installable via Firefox Browser Add-ons).

Contribution

The used map icon was created by Pixel perfect and shared on Flaticon.

References