Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
toiletcoin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
atichat
toiletcoin
Commits
eb792120
Commit
eb792120
authored
Aug 02, 2019
by
Tonk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update map
parent
547c7701
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/components/Mapbox.js
+7
-4
No files found.
src/components/Mapbox.js
View file @
eb792120
...
...
@@ -7,15 +7,18 @@ const Map = ReactMapboxGl({
});
const
Data
=
[
{
id
:
1
,
position
:
[
100.56721
,
13.748115
],
name
:
'NEXPIE'
},
{
id
:
2
,
position
:
[
100.56987
,
13.747821
],
name
:
'AVANI'
},
{
id
:
1
,
position
:
[
100.56721
,
13.748115
],
name
:
'nexpie'
},
{
id
:
2
,
position
:
[
100.56987
,
13.747821
],
name
:
'avani'
},
{
id
:
3
,
position
:
[
100.622749
,
13.962597
],
name
:
'zeer'
},
{
id
:
4
,
position
:
[
100.535007
,
13.746648
],
name
:
'siam paragon'
},
{
id
:
5
,
position
:
[
100.679211
,
13.826122
],
name
:
'Fashion Island'
},
];
export
default
class
Mapbox
extends
React
.
Component
{
state
=
{
center
:
[
100.523186
,
13.736717
],
active
:
undefined
,
zoom
:
undefined
,
zoom
:
[
5
]
,
};
render
()
{
const
{
center
,
active
,
zoom
}
=
this
.
state
;
...
...
@@ -67,7 +70,7 @@ export default class Mapbox extends React.Component {
borderRadius
:
2
,
}}
>
{
active
.
name
}
{
active
.
name
.
toUpperCase
()
}
<
/div
>
<
/Popup
>
)}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment