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

Commit 7897515

Browse files
fix: Added support for newer Lightning Maps features
1 parent 0d25c5e commit 7897515

File tree

11 files changed

+198
-11029
lines changed

11 files changed

+198
-11029
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Heavily inspired by [Pigeon Maps](https://github.com/mariusandra/pigeon-maps) an
1616
## Installation & Usage
1717

1818
```bash
19-
npm install --save lightning-maps-react
19+
yarn add lightning-maps-react
2020
```
2121

2222
### Include the Component

dist/build.js

Lines changed: 44 additions & 380 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/App.css

Lines changed: 0 additions & 33 deletions
This file was deleted.

examples/App.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, { Component } from 'react'
2-
import './App.css'
32

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

@@ -18,7 +17,12 @@ class App extends Component {
1817
<Marker position={[34.91, -84.24]} color='rgba(200, 0, 0, 0.7)' />
1918
<Marker position={[35.1, -77.19]} color='rgba(0, 0, 0, 0.7)' type='circle' />
2019
<Marker position={[38.86, -89.16]} color='rgba(0, 200, 200, 0.7)' type='donut' />
21-
<Polygon sourceUrl='https://raw.githubusercontent.com/deldersveld/topojson/master/continents/north-america.json' color='red' />
20+
<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' />
21+
<Polygon
22+
sourceUrl='https://raw.githubusercontent.com/deldersveld/topojson/master/continents/north-america.json'
23+
objectName='continent_North_America_subunits'
24+
options={{ fillStyle: 'rgba(255, 0, 0, 0.25)' }}
25+
/>
2226
</Map>
2327
</div>
2428
)

examples/index.css

Lines changed: 0 additions & 14 deletions
This file was deleted.

examples/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react'
22
import ReactDOM from 'react-dom'
3-
import './index.css'
43
import App from './App'
54

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

0 commit comments

Comments
 (0)