From 19ab850a0f61af2acd4b5f7b056d2921dd193f14 Mon Sep 17 00:00:00 2001 From: Pkpedram Date: Wed, 9 Feb 2022 15:26:43 +0330 Subject: [PATCH] Map Component Completed --- src/components/Map/index.js | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/components/Map/index.js diff --git a/src/components/Map/index.js b/src/components/Map/index.js new file mode 100644 index 0000000..3dd254a --- /dev/null +++ b/src/components/Map/index.js @@ -0,0 +1,39 @@ +import Mapir from "mapir-react-component"; + +// import blueMark from '../../../assets/icons/marker-blue.png'; + +// import './index.scss'; + +const Map = Mapir.setToken({ + transformRequest: (url) => { + return { + url: url, + headers: { + "x-api-key": + "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjliNzIxYmZhZDZlMGI3MzYxMzFiMTMyNjEyZDQ1M2E3ZDg4YTEzMjc2ZDUyYTA5ZDNmOThiNWFjZTM1NDZlMmMwZDU2M2Y5YzY3N2U0NGFhIn0.eyJhdWQiOiIxNDc1OSIsImp0aSI6IjliNzIxYmZhZDZlMGI3MzYxMzFiMTMyNjEyZDQ1M2E3ZDg4YTEzMjc2ZDUyYTA5ZDNmOThiNWFjZTM1NDZlMmMwZDU2M2Y5YzY3N2U0NGFhIiwiaWF0IjoxNjI1NjY2NzI2LCJuYmYiOjE2MjU2NjY3MjYsImV4cCI6MTYyODI1ODcyNiwic3ViIjoiIiwic2NvcGVzIjpbImJhc2ljIl19.OIjSLWyNCGALY2C0EFDGPEEUbPqOxL6GxCDkeX1B5C218eTk0qkmlGs8z4E87Y-qL7_PG814UZwcngjdRybVwabMtgfHsJj7DRDtrdBzCW7HRlJXqrSRG7xOuJmFhcn4-HtXRQUOEUn8quQukXPek8zvMtRBoMNsefS5s6es2oAg7Fmv0o5T2uZyDzMnRAfrTb1SKtv52Q_yXWYPtQNZdZcwe9Ed-ZkGeAXuTY2tafow92Oq8mmRxrzaq9Ne3gtu98UqXA3rwzRaQ1ToXU_Tcjh5UCVS6hZAzhI-GQk7KfrLbOOyDCxfd9v7_qXnIkRR6dd3bZ69H-jvlytaxMl51Q", //Mapir api key + "Mapir-SDK": "reactjs", + }, + }; + }, +}); + +export default function location() { + return ( + + + + ); +} \ No newline at end of file