Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
cedarmaps-sdk-web-public
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Cedar Studios
cedarmaps-sdk-web-public
Commits
397d2754
Commit
397d2754
authored
Jan 22, 2018
by
Deployer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed legend control
parent
251d09e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
map.js
src/map.js
+13
-6
No files found.
src/map.js
View file @
397d2754
...
@@ -7,11 +7,13 @@ var MMap = require('mapbox.js/src/map'),
...
@@ -7,11 +7,13 @@ var MMap = require('mapbox.js/src/map'),
function
withAccessToken
(
options
,
accessToken
)
{
function
withAccessToken
(
options
,
accessToken
)
{
if
(
!
accessToken
||
options
.
accessToken
)
if
(
!
accessToken
||
options
.
accessToken
)
return
options
;
return
options
;
return
L
.
extend
({
accessToken
:
accessToken
},
options
);
return
L
.
extend
({
accessToken
:
accessToken
},
options
);
}
}
var
CMap
=
MMap
.
Map
.
extend
({
var
CMap
=
MMap
.
Map
.
extend
({
initialize
:
function
(
element
,
_
,
options
)
{
initialize
:
function
(
element
,
_
,
options
)
{
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
));
...
@@ -26,15 +28,19 @@ var CMap = MMap.Map.extend({
...
@@ -26,15 +28,19 @@ var CMap = MMap.Map.extend({
this
.
addControl
(
this
.
_cedarmapsLogoControl
);
this
.
addControl
(
this
.
_cedarmapsLogoControl
);
},
},
_initialize
:
function
(
json
)
{
_initialize
:
function
(
json
)
{
MMap
.
Map
.
prototype
.
_initialize
.
call
(
this
,
json
);
MMap
.
Map
.
prototype
.
_initialize
.
call
(
this
,
json
);
this
.
_cedarmapsLogoControl
.
_setTileJSON
(
json
);
this
.
_cedarmapsLogoControl
.
_setTileJSON
(
json
);
}
}
});
});
module
.
exports
.
Map
=
CMap
;
module
.
exports
.
Map
=
CMap
;
module
.
exports
.
map
=
function
(
element
,
_
,
options
)
{
module
.
exports
.
map
=
function
(
element
,
_
,
options
)
{
if
(
options
)
{
options
.
legendControl
=
false
options
.
attributionControl
=
false
}
return
new
CMap
(
element
,
_
,
options
);
return
new
CMap
(
element
,
_
,
options
);
};
};
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment