Skip to content

phillycommunitywireless/pcwnetworkmap

Repository files navigation

pcwnetworkmap

A screenshot of the Philly Community Wireless webmap

This map of PCW's network coverage is built with MapBox via Jekyll.

Deploy previews via Render

The live deploy of the map is availabe here - https://map.phillycommunitywireless.org

Additional functionality

URL Parameters

Setting default position/zoom level

On page load, the map shows PCW's main three coverage areas - Norris Square, Fairhill, and Kensington. The latitude, longitude, and zoom URL parameters can be used to show a specific latitude, longitude, and zoom level at page load.

e.g - https://map.phillycommunitywireless.org/?latitude=39.95239&longitude=-75.16364&zoom=16 sets the default view to a zoomed-in view of Philadelphia City Hall

A screenshot of the Philly Community Wireless webmap centered around Philadelphia City Hall

Setting menu visibility at map load

Similarly, the menu_closed URL parameter sets if the menu is open or closed at map load time - e.g, https://map.phillycommunitywireless.org/?menu_closed=true

Local Development

You can run this site locally in a container using Docker

  • Clone the repo with git clone
  • Sign up for a MapBox developer account and get a MapBox public token
  • Set MAPBOX_API in _config.yml to your MapBox public token.
  • docker compose up -d
  • jekyll will serve at localhost:4000

Editing map contents

As of 8/20/24, the map no longer uses the geosjon files in /data. It is now linked to an API that generates GeoJSON files dynamically based of the content of a spreadsheet - please contact a PCW staff member for access.

The code for the API is available here - https://github.com/phillycommunitywireless/pcwnetworkmap-api

About

PCW's public map of our network coverage

Topics

Resources

License

Stars

Watchers

Forks

Contributors 6