0.0.11 • Published 1 year ago

vue-turkey-map v0.0.11

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

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

PropTypeDefaultDescription
viewbox Object{top: 0, left: 80, width: 1050, height: 585 }Map viewbox.
hoverable BooleantrueCity hover state.
opacityNumber1Hover state '0' to '1'.
tooltipContentFunction city => city.nameTooltip content when city hovered.
tooltipOffsetObject{top: -26, left: 16}Tooltip location by given pixels.
clickToSelectBooleantrueSelect city when it clicked.
toggleUnselectBoolean trueUnselect city when it clicked after select.
isSelectedCityFunctioncity => falseSelect cities by given function, return 'true' if it's selected.
defaultColorString#fffDefault city color, not hovered or not selected.
hoverHexColorString#aaaCity color when it hovered.
selectedColorString#7a7a7aCity color when it selected.
selectCitiesFunction-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

EmitDescription
HoverHovered city object.
SelectFirst argument; selected city, second argument; all selected cities.
0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago