Giter VIP home page Giter VIP logo

basic-custom-map's People

Contributors

themakshter avatar

Watchers

 avatar  avatar

Forkers

themakshter

basic-custom-map's Issues

Generate colour for circle component

Circle component should take in a colour and then find a lighter version for it to use. This is for future maps where we might have a different colour scheme.

Pass in font size to text component

For the map title, we need a separate font size as compared to normal font size. For this, the TextCanvasComponent can be extended to take in a font size and also having a default value without.

Refactor code

All the required features for the first launch have been added, just need to clean up the code to make it easier to follow and break it up.

Switch to SVG

After continuing experimentation with the canvas API, it is apparent that Canvas is not the correct technology to use for our map. Instead, it would be better to switch to use svg, and possibly make use of the snap svg library

Add linting

Should be using tslint to follow some code standards

Add interactive demo for map

The initial demo would just use a hardcoded map data JSON, but we want a demo where users can dynamically choose and place content on the map, which renders every time they ask it to.

Add map components

Add basic components resembling the map and its content/activity components

Convert coordinate space into given width and height

We want the width and height of our svg component to be flexible. That way, it can change depending on what the length of the screen is. To handle this, we can define a co-ordinate space in our map and then scale the co-ordinates of the activities in the map accordingly to whatever height we and width we have in our space

Pre-load all images

Instead of returning promises, which seems a bit more complicated, it might be easier and better to pre-load the images at the beginning. This will mean going over the map object we receive and creating an array of promises. Once all of them have been resolved, we can then draw images without worrying about anything.

Write documentation

Need to add documentation on how to set up the project as well as how to run the demo etc.

Image animation when hovered upon

The map pin/activity component should be animated when it is hovered upon to show that is is being selected. This can be a slight scaling from the normal size.

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.