Skip to content

Commit

Permalink
Merge pull request #702 from openlayers/cleanup
Browse files Browse the repository at this point in the history
Remove unnecessary type cast
  • Loading branch information
fredj authored Apr 15, 2019
2 parents 642e1e2 + 737d7be commit 3b5caee
Show file tree
Hide file tree
Showing 13 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions examples/bing.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ const ol2d = new olMap({
],
controls: olControlDefaults({
attribution: true,
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
attributionOptions: {
collapsible: false
})
}
}),
target: 'map',
view: new olView({
Expand Down
4 changes: 2 additions & 2 deletions examples/fillstyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ const map = new olMap({
],
target: 'map2d',
controls: olControlDefaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
attributionOptions: {
collapsible: false
})
}
}),
view: new olView({
center: [-2e6, 1e6],
Expand Down
4 changes: 2 additions & 2 deletions examples/groundvectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ const map = new olMap({
],
target: 'map2d',
controls: olControlDefaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
attributionOptions: {
collapsible: false
})
}
}),
view: new olView({
center: [16880670.33392873, -3565966.2275828626],
Expand Down
4 changes: 2 additions & 2 deletions examples/icon-position.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ const map = new olMap({
],
target: 'map2d',
controls: olControlDefaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
attributionOptions: {
collapsible: false
})
}
}),
view: new olView({
center: [850000, 200000],
Expand Down
4 changes: 2 additions & 2 deletions examples/image-static.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ const ol2d = new olMap({
})
],
controls: olControlDefaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
attributionOptions: {
collapsible: false
})
}
}),
target: 'map',
view: new olView({
Expand Down
4 changes: 2 additions & 2 deletions examples/imageWMS.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ const ol2d = new olMap({
})
],
controls: olControlDefaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
attributionOptions: {
collapsible: false
})
}
}),
target: 'map',
view: new olView({
Expand Down
4 changes: 2 additions & 2 deletions examples/kml.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ const ol2d = new olMap({
})
],
controls: olControlDefaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
attributionOptions: {
collapsible: false
})
}
}),
target: 'map',
view: new olView({
Expand Down
4 changes: 2 additions & 2 deletions examples/lazy.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ const ol2d = new olMap({
})
],
controls: olControlDefaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
attributionOptions: {
collapsible: false
})
}
}),
target: 'map',
view: new olView({
Expand Down
4 changes: 2 additions & 2 deletions examples/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ const ol2d = new olMap({
})
],
controls: olControlDefaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
attributionOptions: {
collapsible: false
})
}
}),
target: 'map',
view: new olView({
Expand Down
4 changes: 2 additions & 2 deletions examples/overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ const ol2d = new olMap({
})
],
controls: olControlDefaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
attributionOptions: {
collapsible: false
})
}
}),
target: 'map',
view: new olView({
Expand Down
4 changes: 2 additions & 2 deletions examples/rotate.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const map = new olMap({
],
target: 'map2d',
controls: olControlDefaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
attributionOptions: {
collapsible: false
})
}
}),
view: new olView({
center: [333333, 1500000],
Expand Down
4 changes: 2 additions & 2 deletions examples/tracking.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ const map = new olMap({
],
target: 'map2d',
controls: olControlDefaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
attributionOptions: {
collapsible: false
})
}
}),
view: new olView({
center: [0, 0],
Expand Down
4 changes: 2 additions & 2 deletions examples/vectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,9 @@ const map = new olMap({
],
target: 'map2d',
controls: olControlDefaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
attributionOptions: {
collapsible: false
})
}
}),
view: new olView({
center: [0, 0],
Expand Down

0 comments on commit 3b5caee

Please sign in to comment.