Skip to content

Instantly share code, notes, and snippets.

View abdul-hamid-achik's full-sized avatar
Hoy juegan los charros!

Abdul Hamid Achik López abdul-hamid-achik

Hoy juegan los charros!
View GitHub Profile
@abdul-hamid-achik
abdul-hamid-achik / map-style-basic-v8.json
Last active April 3, 2019 17:00
this is the component that is not working
{
"version": 8,
"name": "Basic",
"metadata": {
"mapbox:autocomposite": true
},
"sources": {
"mapbox": {
"url": "mapbox://mapbox.mapbox-streets-v7",
"type": "vector"
@abdul-hamid-achik
abdul-hamid-achik / map.js
Created April 3, 2019 16:38
this is the component that is not working
import { featureCollection, center, point, polygon } from '@turf/turf'
import React, { useCallback, useEffect, useState } from 'react'
import MapGL, { NavigationControl } from 'react-map-gl'
import { defaultMapStyle, dataLayer } from '../map-style.js'
import { fromJS } from 'immutable'
import { useMappedState } from 'redux-react-hook'
const MAPBOX_TOKEN = "xxxx"
const navStyle = {
position: 'absolute',