Commit fdbee134 authored by Deployer's avatar Deployer

Improved lib dependencies. Changed attribution image

parent 42e20c7f
[submodule "mapbox.js"]
path = mapbox.js
url = https://github.com/mapbox/mapbox.js.git
branch = mb-pages
\ No newline at end of file
......@@ -7,9 +7,9 @@
// Paths
distFolder: 'dist/v<%= pkg.version %>',
leafletFolder: 'node_modules/leaflet/dist',
mapboxFolder: 'mapbox.js',
mapboxSourceFolder: 'mapbox.js/src',
mapboxThemeFolder: 'mapbox.js/theme',
mapboxFolder: 'node_modules/mapbox.js',
mapboxSourceFolder: 'node_modules/mapbox.js/src',
mapboxThemeFolder: 'node_modules/mapbox.js/theme',
cedarmapsSourceFolder: 'src',
cedarmapsThemeFolder: 'theme',
......@@ -27,9 +27,8 @@
copy: {
images: {
files: [
{expand: true, cwd: '<%= mapboxThemeFolder %>/images/', src: ['**', '!*.sh', '!*.svg'], dest: '<%= distFolder %>/images/'},
{expand: true, cwd: '<%= cedarmapsThemeFolder %>/images/', src: '**', dest: '<%= distFolder %>/images/'},
{expand: true, cwd: '<%= leafletFolder %>/images/', src:'**', dest: '<%= distFolder %>/images/images/'}
{expand: true, cwd: '<%= mapboxThemeFolder %>/images/', src: ['**', '!*.sh'], dest: '<%= distFolder %>/images/'},
{expand: true, cwd: '<%= cedarmapsThemeFolder %>/images/', src: '**', dest: '<%= distFolder %>/images/'}
]
},
apiDocument: {
......
......@@ -20,8 +20,8 @@ This is CedarMaps Javascript API. It's simply a wrapper for [Mapbox Javascript A
Recommended usage is via the CedarMaps CDN:
```html
<script src='http://api.cedarmaps.com/cedarmaps.js/v1.2.1/cedarmaps.js'></script>
<link href='http://api.cedarmaps.com/cedarmaps.js/v1.2.1/cedarmaps.css' rel='stylesheet' />
<script src='http://api.cedarmaps.com/cedarmaps.js/v1.4.0/cedarmaps.js'></script>
<link href='http://api.cedarmaps.com/cedarmaps.js/v1.4.0/cedarmaps.css' rel='stylesheet' />
```
The `cedarmaps.js` file includes the Leaflet library. Alternatively, you can use `cedarmaps.standalone.js`, which does not include Leaflet (you will have to provide it yourself).
......@@ -138,7 +138,6 @@ Grunt makes use of [Browserify](http://browserify.org/) under the hood to build
```sh
git clone http://gitlab.cedar.ir/cedar.studios/cedarmaps-sdk-web-public.git
cd cedarmaps-sdk-web-public
git submodule update --init
npm install
grunt build
```
......@@ -148,21 +147,6 @@ Note that every time you pull new changes from repository, you should run `grunt
# Updating SDK
## Updating mapbox.js submodule
The mapbox.js SDK is updated from time to time and obviously cedarmaps.js also needs to be synced. The submodule is residing in `/mapbox.js` folder and points to a specific mapbox.js tag (not the HEAD, of course).
In order to upgrade the submodule to a specific `<version>`, do the following:
```sh
cd mapbox.js/
git pull
git tag -l
git checkout <version>
cd ..
git add mapbox.js/
git commit -m "Updated mapbox submodule to <version>."
```
## Updating Cedarmaps.js
In case of any updates in module itself the following files must be updated:
......
......@@ -5,9 +5,9 @@
<meta charset=utf-8 />
<title>CedarMaps - Sample Geocoder Control</title>
<script src='../dist/v1.3.0/cedarmaps.js'></script>
<script src='../dist/v1.4.0/cedarmaps.js'></script>
<script src='../access-token.js'></script>
<link href='../dist/v1.3.0/cedarmaps.css' rel='stylesheet' />
<link href='../dist/v1.4.0/cedarmaps.css' rel='stylesheet' />
<link href='css/styles.css' rel='stylesheet' />
......
......@@ -5,9 +5,9 @@
<meta charset=utf-8 />
<title>CedarMaps - Simple Map Load</title>
<script src='../dist/v1.3.0/cedarmaps.uncompressed.js'></script>
<script src='../dist/v1.4.0/cedarmaps.uncompressed.js'></script>
<script src='../access-token.js'></script>
<link href='../dist/v1.3.0/cedarmaps.css' rel='stylesheet' />
<link href='../dist/v1.4.0/cedarmaps.css' rel='stylesheet' />
<style>
body {
......
......@@ -5,9 +5,9 @@
<meta charset=utf-8 />
<title>CedarMaps - Simple Map Load</title>
<script src='../dist/v1.3.0/cedarmaps.uncompressed.js'></script>
<script src='../dist/v1.4.0/cedarmaps.uncompressed.js'></script>
<script src='../access-token.js'></script>
<link href='../dist/v1.3.0/cedarmaps.css' rel='stylesheet' />
<link href='../dist/v1.4.0/cedarmaps.css' rel='stylesheet' />
<style>
body {
......
......@@ -5,9 +5,9 @@
<meta charset=utf-8 />
<title>CedarMaps - Reverse Geocoding Sample</title>
<script src='../dist/v1.3.0/cedarmaps.js'></script>
<script src='../dist/v1.4.0/cedarmaps.js'></script>
<script src='../access-token.js'></script>
<link href='../dist/v1.3.0/cedarmaps.css' rel='stylesheet' />
<link href='../dist/v1.4.0/cedarmaps.css' rel='stylesheet' />
<style>
body {
......
Subproject commit 09f45092b28d60072a37a400dc44faf04c980108
......@@ -2,7 +2,7 @@
"author": "CedarStudios",
"name": "cedarmaps.js",
"description": "CedarMaps javascript API built on top of mapbox.js",
"version": "1.3.0",
"version": "1.4.0",
"homepage": "http://www.cedarmaps.com/",
"repository": {
"type": "git",
......@@ -11,8 +11,8 @@
"main": "src/index.js",
"dependencies": {
"corslite": "0.0.6",
"isarray": "0.0.1",
"leaflet": "1.2.0",
"isarray": "0.0.1",
"mapbox.js": "^3.1.1",
"mustache": "0.7.3",
"sanitize-caja": "0.1.3"
},
......
'use strict';
var isArray = require('isarray'),
util = require('../mapbox.js/src/util'),
util = require('mapbox.js/src/util'),
format_url = require('./format_url'),
//feedback = require('./feedback'),
request = require('./request');
......
'use strict';
var geocoder = require('./geocoder'),
util = require('../mapbox.js/src/util');
util = require('mapbox.js/src/util');
var GeocoderControl = L.Control.extend({
includes: L.Mixin.Events,
......
'use strict';
require('../mapbox.js/src/index');
require('mapbox.js');
require('./cedarmaps');
'use strict';
var MMap = require('../mapbox.js/src/map'),
var MMap = require('mapbox.js/src/map'),
tileLayer = require('./tile_layer').tileLayer,
cedarmapsLogoControl = require('./cedarmaps_logo').cedarmapsLogoControl;
......
'use strict';
var corslite = require('corslite'),
strict = require('../mapbox.js/src/util').strict,
strict = require('mapbox.js/src/util').strict,
config = require('./config'),
protocol = /^(https?:)?(?=\/\/(.|api)\.cedarmaps\.com\/)/;
......
'use strict';
var util = require('../mapbox.js/src/util'),
MTileLayer = require('../mapbox.js/src/tile_layer');
var util = require('mapbox.js/src/util'),
MTileLayer = require('mapbox.js/src/tile_layer');
//urlHelper = require('./url');
var TileLayer = MTileLayer.TileLayer.extend({
......
......@@ -40,17 +40,17 @@
.cedarmaps-logo-true:before {
content: '';
display: inline-block;
width: 82px;
height: 32px;
width: 91px;
height: 25px;
vertical-align: middle;
}
.cedarmaps-logo-true {
display: block;
background-repeat: no-repeat;
background-size: 82px 32px;
width: 82px;
height: 32px;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFIAAAAgCAYAAACBxi9RAAAG1UlEQVR42u2aeUwUVxzHbSER/jJpTW3VhBhjQaoV2hpiTBStikJwQUBitVK1RWwA60kVKlK1bkQkEaFYTqsth4oQRKFyI3LICiynB9oiQqsRPABRwW/f/DLAW2DZWUCj7X6SbyZv3m92Zj775s3swCgAuoxA/vcCdCJ1InUi/4uZwRLAUsTSxlLFEiqs14mUnhAMjp9OpJSRKI2QN0nkAhY/can/ivbpDpFjRQlwilqPafJFsItwwdnKLPTB63UX6cSSif54vOT9WrEkQuREcTIyai9jc8oBvJfhiLkRtjiUGYU+5LLsY5n4OorMhBpe4sjcgD7k1ymRdVWBrhddmJjghPkFjrA8YoMLNZcwAKksslcp8l2K+v6pEKmpqYGvry+ysrLAYcdtP5xMYVnLsp/FmkUJkc7O5+h40g6eafFf4MN8J8iL7fDxT0vR9vSJGpnaiTRlCWIpFZemXN9slhMsfwlLsT2NJZgOtpc8Fh+S0n874syZM+woRpHMAbjAsozbr90A+5Wz5IuRq/Sroa5WCb+Njgj60Y0S5r8ZvwX/gEmRtph8cTkOXbHHitjFcA31QHXxedxQZjPpj8ExWarIzeiPguVrlkAMTD7Uc7zf44ZmkTzhtP0IERfhD0VWDFr/ruhJzdUcjIu3xyeXnEikf4kdpvguxqMmJaimpQkcX0oRaQj1KCCBtrY2Sn80i3z48CESExPR3NyMkSAyMhI7duwAT2yYHGW5J1VE2h11hUH2cqwvdhBEUuYctk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PAZVHNra2irGgYiICBHy4OXexHpMFTs7OxYeHt4AIlCNzZ1EJwU5AJs9e3YL5rkO87tijrEBJ2c9T6f9Xqt+8isrRydjt9QbAR9fm7r+0/VyoiRjCWsxoTgEJAEL7MTi7KOiosrgvZSY3IdUSJcrr0l/C7VC7mDCammcUVK6/hhSKDMH6N0lihaJ4/1rJB0MEMbAqX8mpbQEqIWQCRSzDOZKkfffUh2MTT6dkZHhB8hqAz10RtEGBwdTpvrPPu45SiWWRAHcVwpit0ln4W2goFV3nqV1GMDJpzD0RkvT7jx4I0cw4ZRhkerQoUPE2acN8N7kOArfunUrh6eK41JSgxJo4Tjh+/fvF/tv2rRJzFIJTlByvsXrVwckOze9VGdl+DgDseqrj6mLqK/hcZMpeiOQMGR/dNwoupQNcI7tFPyQPTJ4IkMWSkf7EDyr2MJxygEf3UuWLFEiSIu3hWBU4ry/JVsL8OBOz6Qz4XjcRadN29S0u2FVtFZCC94vjOh4DvHnywh2oVevXmWgdRrgaRiMcm2Ank2pdiI27w0EpnqlUkkpdoKRBMWcsV4nuIPclOCsHXLQUkjop5AzKqWavPYVCd5spBxDqZN1aqQ8olvnuUl6pyDYbW0ikVBjMdmTJk0KpUAEw1COmj9gdxCEGqJh34hrCUL+NzEnMzJN3WCulbJmQcew8ncuGVkWrfRNKYmd0M+99C4p0O3G4vLYd68IkhfLnq3QEWPIwHU2RRaN5Nk9/xVgABD5dia3W/ilAAAAAElFTkSuQmCC);
cursor: pointer;
}
......@@ -230,65 +230,14 @@
background: url(https://www.kikojas.com/img/popup-tip.png) no-repeat top left;
}
.tgl-flip+.tgl-btn {
padding: 2px;
-webkit-transition: all .2s ease;
transition: all .2s ease;
-webkit-perspective: 100px;
perspective: 100px;
}
.tgl-flip+.tgl-btn:after,
.tgl-flip+.tgl-btn:before {
display: inline-block;
-webkit-transition: all .4s ease;
transition: all .4s ease;
width: 100%;
text-align: center;
position: absolute;
line-height: 2em;
font-weight: bold;
color: #fff;
position: absolute;
top: 0;
left: 0;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
border-radius: 4px;
}
.tgl-flip+.tgl-btn:after {
content: attr(data-tg-on);
background: #6ba53a;
-webkit-transform: rotateY(-180deg);
transform: rotateY(-180deg);
}
.tgl-flip+.tgl-btn:before {
background: #6ba53a;
content: attr(data-tg-off);
}
.tgl-flip+.tgl-btn:active:before {
-webkit-transform: rotateY(-20deg);
transform: rotateY(-20deg);
}
.tgl-flip:checked+.tgl-btn:before {
-webkit-transform: rotateY(180deg);
transform: rotateY(180deg);
}
.tgl-flip:checked+.tgl-btn:after {
-webkit-transform: rotateY(0);
transform: rotateY(0);
left: 0;
background: #a4a3a4;
}
.tgl-flip:checked+.tgl-btn:active:after {
-webkit-transform: rotateY(20deg);
transform: rotateY(20deg);
@media (max-width: 400px) {
.kikojas-nearby-widget .leaflet-popup-content {
width: 310px;
height: 150px;
}
.kikojas-nearby-widget .leaflet-popup-content .routing {
height: 149px;
}
}
ul.tg-list,
......@@ -297,12 +246,6 @@ ul.tg-list li {
}
.tg-list {
/*display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;*/
padding: 0;
margin: 0;
text-align: center;
......@@ -383,12 +326,63 @@ ul.tg-list li {
left: 50%;
}
@media (max-width: 400px) {
.kikojas-nearby-widget .leaflet-popup-content {
width: 310px;
height: 150px;
}
.kikojas-nearby-widget .leaflet-popup-content .routing {
height: 149px;
}
.tgl-flip+.tgl-btn {
padding: 2px;
-webkit-transition: all .2s ease;
transition: all .2s ease;
-webkit-perspective: 100px;
perspective: 100px;
}
.tgl-flip+.tgl-btn:after,
.tgl-flip+.tgl-btn:before {
display: inline-block;
-webkit-transition: all .4s ease;
transition: all .4s ease;
width: 100%;
text-align: center;
position: absolute;
line-height: 2em;
font-weight: bold;
color: #fff;
position: absolute;
top: 0;
left: 0;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
border-radius: 4px;
}
.tgl-flip+.tgl-btn:after {
content: attr(data-tg-on);
background: #6ba53a;
-webkit-transform: rotateY(-180deg);
transform: rotateY(-180deg);
}
.tgl-flip+.tgl-btn:before {
background: #6ba53a;
content: attr(data-tg-off);
}
.tgl-flip+.tgl-btn:active:before {
-webkit-transform: rotateY(-20deg);
transform: rotateY(-20deg);
}
.tgl-flip:checked+.tgl-btn:before {
-webkit-transform: rotateY(180deg);
transform: rotateY(180deg);
}
.tgl-flip:checked+.tgl-btn:after {
-webkit-transform: rotateY(0);
transform: rotateY(0);
left: 0;
background: #a4a3a4;
}
.tgl-flip:checked+.tgl-btn:active:after {
-webkit-transform: rotateY(20deg);
transform: rotateY(20deg);
}
\ No newline at end of file
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