Skip to content

doneill/MapPreview

Repository files navigation

Map Preview

CodeQL

Preview map layer files in your web browser using Sublime Text 3.

Map Preview image

Features

  • Interactive Map preview powered by LeafletJS

Supported Formats

Installation

Install MapPreview via Package Control

  • Open Package Control: Preferences > Package Control
  • Select Package Control: Install Package
  • Type MapPreview into the search box and select the package to install it.

Manual Install

  • Clone the MapPreview repo into the Sublime Text packages location:
# move to default Mac location
$ cd ~/Libary/Application Support/Sublime Text 3/Packages
# clone directly into the pakcages directory
$ git clone git@github.com:doneill/MapPreview.git

Preview Map in Browser

With an open valid GeoJSON or TopoJSON file in Sublime Text 3:

  • Right click and select Map Preview > Preview in Browser
  • Select Map Preview: Preview in Browser from the command palette.

Troubleshooting

  • If your files are being alerted as not valid, please try to load with another source, e.g. geojson.io to confirm. If you feel like your json file is valid and should be shown please create an issue for us to take a look.

Contributors

Licensing

A copy of the license is available in the repository's LICENSE file.