Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
5815417d
Commit
5815417d
authored
Aug 02, 2016
by
Matija Obreza
Browse files
Use Esri.WorldGrayCanvas tiles in custom.js
parent
79ac654a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/sourceapp/js/crophub.js
View file @
5815417d
...
...
@@ -40,11 +40,9 @@ var GenesysMaps = {
while
(
config
!==
null
&&
config
!==
undefined
)
{
var
mapOptions
=
config
.
mapOptions
;
var
map
=
L
.
map
(
config
.
element
,
mapOptions
).
setView
(
mapOptions
.
center
,
4
);
L
.
tileLayer
(
'
https://otile{s}-s.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.png
'
,
{
attribution
:
'
MapQuest
'
,
styleId
:
22677
,
subdomains
:
[
'
1
'
,
'
2
'
,
'
3
'
,
'
4
'
],
opacity
:
0.6
L
.
tileLayer
(
'
http://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x}
'
,
{
attribution
:
'
Tiles © Esri — Esri, DeLorme, NAVTEQ
'
,
maxZoom
:
16
}).
addTo
(
map
);
if
(
mapOptions
.
markerTitle
!==
null
)
{
var
marker
=
L
.
marker
(
mapOptions
.
center
).
addTo
(
map
);
...
...
Write
Preview
Supports
Markdown
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