Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
fix: Added support for newer Lightning Maps features
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniCodeMonkey committed Feb 13, 2019
1 parent 0d25c5e commit 7897515
Show file tree
Hide file tree
Showing 11 changed files with 198 additions and 11,029 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Heavily inspired by [Pigeon Maps](https://github.com/mariusandra/pigeon-maps) an
## Installation & Usage

```bash
npm install --save lightning-maps-react
yarn add lightning-maps-react
```

### Include the Component
Expand Down
424 changes: 44 additions & 380 deletions dist/build.js

Large diffs are not rendered by default.

33 changes: 0 additions & 33 deletions examples/App.css

This file was deleted.

8 changes: 6 additions & 2 deletions examples/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { Component } from 'react'
import './App.css'

import { Map, Marker, Polygon } from '@src'

Expand All @@ -18,7 +17,12 @@ class App extends Component {
<Marker position={[34.91, -84.24]} color='rgba(200, 0, 0, 0.7)' />
<Marker position={[35.1, -77.19]} color='rgba(0, 0, 0, 0.7)' type='circle' />
<Marker position={[38.86, -89.16]} color='rgba(0, 200, 200, 0.7)' type='donut' />
<Polygon sourceUrl='https://raw.githubusercontent.com/deldersveld/topojson/master/continents/north-america.json' color='red' />
<Marker position={[38.22, -86.25]} imageUrl='https://unpkg.com/svg-icon@0.8.2/dist/trimmed-svg/metro/camera.svg' width={16} height={13} type='image' />
<Polygon
sourceUrl='https://raw.githubusercontent.com/deldersveld/topojson/master/continents/north-america.json'
objectName='continent_North_America_subunits'
options={{ fillStyle: 'rgba(255, 0, 0, 0.25)' }}
/>
</Map>
</div>
)
Expand Down
14 changes: 0 additions & 14 deletions examples/index.css

This file was deleted.

1 change: 0 additions & 1 deletion examples/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './App'

ReactDOM.render(<App />, document.getElementById('root'))
Loading

0 comments on commit 7897515

Please sign in to comment.