Commit ade82a7c authored by Deployer's avatar Deployer

Fixe tileLayer option check and minor CSS issue regarding disabled leaflet buttons.

parent 1a99905a
...@@ -18,7 +18,8 @@ var CMap = MMap.Map.extend({ ...@@ -18,7 +18,8 @@ var CMap = MMap.Map.extend({
MMap.Map.prototype.initialize.call(this, element, _, MMap.Map.prototype.initialize.call(this, element, _,
L.extend({}, MMap.Map.prototype.options, options)); L.extend({}, MMap.Map.prototype.options, options));
if (this.options.tileLayer) {
if (this.options.tileLayer && Object.keys(this.options.tileLayer).length !== 0) {
this.tileLayer = tileLayer(undefined, this.tileLayer = tileLayer(undefined,
withAccessToken(this.options.tileLayer, this.options.accessToken)); withAccessToken(this.options.tileLayer, this.options.accessToken));
this.addLayer(this.tileLayer); this.addLayer(this.tileLayer);
......
...@@ -34,6 +34,11 @@ ...@@ -34,6 +34,11 @@
color: #ccc; color: #ccc;
display: inline-block; display: inline-block;
} }
.leaflet-bar .leaflet-disabled {
cursor:default;
opacity:0.25;
}
/* CedarMaps Logo /* CedarMaps Logo
------------------------------------------------------- */ ------------------------------------------------------- */
......
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