-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16533 from highcharts/feature/topojson
Maps: native TopoJSON support
- Loading branch information
Showing
48 changed files
with
778 additions
and
351 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
#demo-wrapper { | ||
max-width: 1000px; | ||
margin: 0 auto; | ||
height: 560px; | ||
background: white; | ||
} | ||
|
||
#map-box { | ||
width: 80%; | ||
float: left; | ||
} | ||
|
||
#container { | ||
height: 500px; | ||
} | ||
|
||
#side-box { | ||
float: right; | ||
width: 16%; | ||
margin: 100px 1% 0; | ||
padding-left: 1%; | ||
border-left: 1px solid silver; | ||
display: none; | ||
} | ||
|
||
#info-box { | ||
margin-top: 10px; | ||
} | ||
|
||
.or-view-as { | ||
margin: 0.5em 0; | ||
} | ||
|
||
#up { | ||
line-height: 30px; | ||
height: 30px; | ||
max-width: 400px; | ||
margin: 0 auto; | ||
} | ||
|
||
#up a { | ||
cursor: pointer; | ||
padding-left: 40px; | ||
} | ||
|
||
.selector { | ||
height: 40px; | ||
max-width: 400px; | ||
margin: 0 auto; | ||
position: relative; | ||
} | ||
|
||
.selector .prev-next { | ||
position: absolute; | ||
padding: 0 10px; | ||
font-size: 30px; | ||
line-height: 20px; | ||
background: white; | ||
font-weight: bold; | ||
color: #999; | ||
top: -2px; | ||
display: none; | ||
border: none; | ||
} | ||
|
||
.selector .custom-combobox { | ||
display: block; | ||
position: absolute; | ||
left: 40px; | ||
right: 65px; | ||
} | ||
|
||
.selector .custom-combobox .custom-combobox-input { | ||
position: absolute; | ||
font-size: 14px; | ||
color: silver; | ||
border-radius: 3px 0 0 3px; | ||
height: 32px; | ||
display: block; | ||
background: url("https://www.highcharts.com/samples/graphics/search.png") 5px 8px no-repeat white; | ||
padding: 1px 5px 1px 30px; | ||
width: 100%; | ||
box-sizing: border-box; | ||
} | ||
|
||
.selector .custom-combobox .ui-autocomplete-input:focus { | ||
color: black; | ||
} | ||
|
||
.selector .custom-combobox .ui-autocomplete-input.valid { | ||
color: black; | ||
} | ||
|
||
.selector .custom-combobox-toggle { | ||
position: absolute; | ||
display: block; | ||
right: -32px; | ||
border-radius: 0 3px 3px 0; | ||
height: 32px; | ||
width: 32px; | ||
} | ||
|
||
.selector #btn-next-map { | ||
right: -12px; | ||
} | ||
|
||
.ui-autocomplete { | ||
max-height: 500px; | ||
overflow: auto; | ||
} | ||
|
||
.ui-autocomplete .option-header { | ||
font-style: italic; | ||
font-weight: bold; | ||
margin: 5px 0; | ||
font-size: 1.2em; | ||
color: gray; | ||
} | ||
|
||
.loading { | ||
margin-top: 10em; | ||
text-align: center; | ||
color: gray; | ||
} | ||
|
||
.ui-button-icon-only .ui-button-text { | ||
height: 26px; | ||
padding: 0 !important; | ||
background: white; | ||
} | ||
|
||
#info-box .button { | ||
border: none; | ||
border-radius: 3px; | ||
background: #a4edba; | ||
padding: 5px; | ||
color: black; | ||
text-decoration: none; | ||
font-size: 12px; | ||
white-space: nowrap; | ||
cursor: pointer; | ||
margin: 0 3px; | ||
line-height: 30px; | ||
} | ||
|
||
@media (max-width: 768px) { | ||
#demo-wrapper { | ||
width: auto; | ||
height: auto; | ||
} | ||
|
||
#map-box { | ||
width: auto; | ||
float: none; | ||
} | ||
|
||
#container { | ||
height: 310px; | ||
} | ||
|
||
#side-box { | ||
float: none; | ||
width: auto; | ||
margin-top: 0; | ||
border-left: none; | ||
border-top: 1px solid silver; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
name: Overview | ||
authors: | ||
- Torstein Hønsi | ||
js_wrap: b | ||
requiresManualTesting: true | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> | ||
<script src="https://code.highcharts.com/maps/highmaps.js"></script> | ||
<script src="https://code.highcharts.com/mapdata/index.js"></script> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.js"></script> | ||
<script src="https://www.highcharts.com/samples/static/jquery.combobox.js"></script> | ||
|
||
<link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/base/jquery-ui.css" rel="stylesheet"> | ||
<link href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet"> | ||
|
||
<div id="demo-wrapper"> | ||
<div id="map-box"> | ||
<div id="up"></div> | ||
<div class="selector"> | ||
<button id="btn-prev-map" class="prev-next"><i class="fa fa-angle-left"></i></button> | ||
<select id="mapDropdown" class="ui-widget combobox"></select> | ||
<button id="btn-next-map" class="prev-next"><i class="fa fa-angle-right"></i></button> | ||
</div> | ||
<div id="container"></div> | ||
</div> | ||
<div id="side-box"> | ||
|
||
<input type="checkbox" id="chkDataLabels" checked='checked' /> | ||
<label for="chkDataLabels" style="display: inline">Data labels</label> | ||
<div id="info-box"> | ||
<h4>This map</h4> | ||
<div id="download"></div> | ||
</div> | ||
</div> | ||
</div> |
Oops, something went wrong.