Git Product home page Git Product logo

mapbox's Introduction

Mapbox

Render interactive maps directly in your graph!

Usage

Type {{maps}} in a block. When the block renders, an interactive map will render in its place!

To position the map at a particular center, create a child block with text "Center". Under that block, put in the latitude and longitude coordinates of the center delimited by a comma.

To start the map at a particular zoom level, create a child block with text "Zoom". Under that block, put in the zoom level value which should be a number. A minimum value of 0 is zoomed all the way out and a maximum value of 18 is zoomed all the way in.

To add Markers to the map, create a child block with text "Markers". Under that block, add one child for every marker you want to include. In the block, write the text you'd like as the label of the block. As a child of that block, put the latitude and longitude coordinates of the marker.

For example, the following configuration will have to be set as the child of the block to produce the map below:

  • Center
    • 32.715736, -117.161087
  • Zoom
    • 12
  • Markers
    • David Vargas
      • 32.7, -117.2
    • RoamJS
      • 32.72, -117.1

If the Marker text is already a tag in your graph, clicking on the marker pin will take you to that page. Shift clicking the marker will open the tag in the sidebar.

You could also filter the markers that are displayed on your map. Clicking the wrench icon on the top right will open the settings overlay, where you could specify a tag to filter by. All markers that are pages that have a block with the entered tag will remain on the map while the rest get filtered out.

mapbox's People

Contributors

dvargas92495 avatar

Stargazers

 avatar

Watchers

 avatar

mapbox's Issues

Request: default mark in the center of the map

I have a bunch of entries en DB for the specific geographic location.

Like:
image

I want to render it's location on the map. Rn to do that I need to do something like

- {{maps}}
    - Center
        - 37.761013,-122.4216972
    - Markers
        - [[Dandelion Chocolate]]
            - 37.761013,-122.4216972

Specifying the same coordinate twice, which is kind of awkward.

I think it'd be good if you could optionally have a marker in the center of the map, maybe with syntax something like:

- {{maps}}
    - Center
        - 37.761013,-122.4216972
            - [[Dandelion Chocolate]]

(when a sub-block with the label is present - render it)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.