Giter VIP home page Giter VIP logo

yodeck-map-pins's Introduction

Map Pins

Show a pin on a map in a YoDeck Layout based on the name of the current player.

This app does not provide the map itself. Instead, layer this over top of the map image when adding to the Layer, and make sure to check the "Allow transparency" option.

In order for things to line up, the app needs to be configured with width and height of the region where the map will display, including the entire window if the map will fill the screen.

The pin locations are configured as a JSON object, with properties for each player name, whre the value of the property is a nested object with "locX" and "locY" properties holding the coordinate for the pin for that item.

For example:

{
  "Player1":{"locX":464,"locY":566},
  "Player2":{"locX":475,"locY":424}
}

You can, of course, include other properties to make maintenance eaiser (say, location descriptions), but they will be ignored by the app. You may need trial and error to get the exact correct coordinate.

When adding this in YoDeck, the player location will not change so it's recommended to set this as a Static App.

yodeck-map-pins's People

Contributors

jcoehoorn avatar

Watchers

 avatar

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.