Commit 09856543 authored by Deployer's avatar Deployer

Imporved README file

parent 2f1acb1a
...@@ -24,10 +24,11 @@ and put the following code in the `<body>` of your HTML file: ...@@ -24,10 +24,11 @@ and put the following code in the `<body>` of your HTML file:
<div id='map' style='width: 400px; height: 300px;'></div> <div id='map' style='width: 400px; height: 300px;'></div>
<script type="text/javascript"> <script type="text/javascript">
var accessToken = 'ACCESS TOKEN' // You can get an access token by filling out the demo account form in https://www.cedarmaps.com/#demo
var map = CedarMaps.map(accessToken, { var map = CedarMaps.map(accessToken, {
style: 'cedarmaps://styles/light', //or cedarmaps://styles/dark style: 'cedarmaps://styles/light', //or cedarmaps://styles/dark
container: <CONTAINER ID>, container: 'map',
center: <CENTER POINT>, center: [51.391827, 35.694875],
zoom: 15 zoom: 15
}); });
</script> </script>
...@@ -39,8 +40,8 @@ If you prefer to have your local version of the library you can simply build it ...@@ -39,8 +40,8 @@ If you prefer to have your local version of the library you can simply build it
**Note:** [node.js](http://nodejs.org/) must be installed on your machine. **Note:** [node.js](http://nodejs.org/) must be installed on your machine.
```sh ```sh
git clone http://gitlab.cedar.ir/cedar.studios/cedarmaps-sdk-web-vector.git git clone http://gitlab.cedar.ir/cedar.studios/cedarmaps-sdk-web-vector-public.git
cd cedarmaps-sdk-web-vector cd cedarmaps-sdk-web-vector-public
npm install npm install
npx webpack npx webpack
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment