1.1.2 • Published 8 years ago

react-pr-map v1.1.2

Weekly downloads
34
License
MIT
Repository
github
Last release
8 years ago

#PRMap

React Component Map of Puerto Rico

#Installing

npm i --save react-pr-map

#Usage

###Simple Example

import React from 'react';
import PRMap from 'react-pr-map';

React.render(<PRMap />, document.getElementById('app'));

###Example with properties

import React from 'react';
import PRMap from 'react-pr-map';

React.render(<PRMap fill='red' stroke='blue'/>, document.getElementById('app'));

###Events

import React from 'react';
import PRMap from 'react-pr-map';

var onClick = function(evt, elem) {
  console.log(elem.data('town')); // Example: San Juan
}

React.render(<PRMap handleClick={onClick}/>, document.getElementById('app'));

#Properties

###fill The fill color of the map. Default is 'lightgreen'.

###stroke The stroke color of the map. Default is 'white'.

###strokeMiterlimit stroke-miterlimit. Default is 10.

###stroke-width The width of the stroke. Default is 0.

###stroke-opacity The opacity of the stroke. Default is 1.

#Events

All of these events are from the event system in RaphaelJS.

  • handleClick
  • handleHover
  • handleMouseOver
  • handleMouseOut
  • handleMouseUp
  • handleMouseDown
  • handleMouseMove
1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago