Git Product home page Git Product logo

vue-turkey-map's Introduction

Vue Turkey Map

📚 Introduction

This repo contains SVG Turkey Map created with Vue.js. You can customize the map, you can interact with it.

⚒️ Used Technologies

  • Vue.js
  • Sass
  • Vite

Getting Started

For using the project follow the steps below

Prequisities

  • npm
  • vite

Installation

You can clone the project with the following URL.

git clone https://github.com/trombonist76/vue-turkey-map
npm install

Props

Prop Type Default Description
viewbox  Object {top: 0, left: 80, width: 1050, height: 585 } Map viewbox.
hoverable  Boolean true City hover state.
opacity Number 1 Hover state '0' to '1'.
tooltipContent Function  city => city.name Tooltip content when city hovered.
tooltipOffset Object {top: -26, left: 16} Tooltip location by given pixels.
clickToSelect Boolean true Select city when it clicked.
toggleUnselect Boolean  true Unselect city when it clicked after select.
isSelectedCity Function city => false Select cities by given function, return 'true' if it's selected.
defaultColor String #fff Default city color, not hovered or not selected.
hoverHexColor String #aaa City color when it hovered.
selectedColor String #7a7a7a City color when it selected.
selectCities Function - When you want to use custom select condition or define different selected city color each city, you can use the prop. If you want to select city/cities you can change the 'isSelected' or 'color' property of city in given array. After that return the changed array.

Emits

Emit Description
Hover Hovered city object.
Select First argument; selected city, second argument; all selected cities.

vue-turkey-map's People

Contributors

mahmuth avatar trombonist76 avatar

Stargazers

 avatar  avatar  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.