Skip to content

Instantly share code, notes, and snippets.

@MrTiggr
Created August 11, 2014 06:51
Show Gist options
  • Save MrTiggr/3623accb7edeb2dae5a6 to your computer and use it in GitHub Desktop.
Save MrTiggr/3623accb7edeb2dae5a6 to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="../esri-html5/esri-pivotmapscontroller.html">
<link rel="import" href="../esri-html5/esri-pivotmaps-donut.html">
<link rel="import" href="../esri-html5/esri-map.html">
<link rel="import" href="../esri-html5/esri-jsonlayer.html">
<link rel="import" href="../esri-html5/esri-geocoder.html">
<link rel="import" href="../esri-html5/esri-scalebar.html">
<link rel="import" href="../esri-html5/esri-pivotmaps-genderpanel.html">
<link rel="import" href="../esri-html5/esri-pivotmaps-popmetric.html">
<link rel="import" href="../esri-html5/esri-home.html">
<link rel="import" href="../esri-html5/esri-locate.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_drawer_panel {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#section {
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
background-color: rgb(250, 250, 250);
}
#section1 {
height: 100%;
box-sizing: border-box;
background-color: rgb(221, 221, 221);
}
#map {
height: 100%;
width: 100%;
}
#section2 {
height: 275px;
overflow: hidden;
}
#controller_panel {
height: 270px;
}
#section3 {
overflow: hidden;
}
#section4 {
overflow: hidden;
}
#esri_pivotmaps_gender {
width: 260px;
height: 160px;
z-index: 9999;
position: absolute;
right: 10px;
top: 170px;
}
#esri_pivotmaps_popmetric {
width: 250px;
height: 150px;
z-index: 9999;
position: absolute;
right: 10px;
margin: 10px;
padding: 10px;
}
</style>
<core-drawer-panel id="core_drawer_panel" touch-action>
<section id="section" drawer>
<section id="section3" layout vertical>
<section id="section2" flex>
<esri-pivotmapscontroller map="{{ $.map.map }}" filter_feature="{{ $.jsonLayer.selected }}" id="controller_panel">
<esri-pivotmaps-geoaxis join_id="LGA_CODE11" layer="{{ $.jsonLayer.layer }}" name="LGA" id="geoaxis">
<esri-pivotmaps-datasource geo_id="LGA_CODE11" url="/data/SEIA.csv" name="Socio-Economic Indexes" id="SEIA">
</esri-pivotmaps-datasource>
<esri-pivotmaps-datasource geo_id="LGA_CODE11" url="/data/LGA/AUST/2011Census_B06_AUST_LGA_long.csv" name="2011 Census - B06" id="censusB06">
</esri-pivotmaps-datasource>
<esri-pivotmaps-datasource geo_id="LGA_CODE11" url="/data/LGA/AUST/2011Census_B07_AUST_LGA_long.csv" name="2011 Census - B07" id="censusB07">
</esri-pivotmaps-datasource>
<esri-pivotmaps-datasource geo_id="LGA_CODE11" url="/data/LGA/AUST/2011Census_B17A_AUST_LGA_long.csv" name="2011 Census - B17A" id="censusB17A">
</esri-pivotmaps-datasource>
<esri-pivotmaps-datasource geo_id="LGA_CODE11" url="/data/LGA/AUST/2011Census_B25_AUST_LGA_long.csv" name="2011 Census - B25" id="censusB25">
</esri-pivotmaps-datasource>
<esri-pivotmaps-datasource geo_id="LGA_CODE11" url="/data/LGA/AUST/2011Census_B33_AUST_LGA_long.csv" name="2011 Census - B33" id="censusB33">
</esri-pivotmaps-datasource>
<esri-pivotmaps-datasource geo_id="LGA_CODE11" url="/data/LGA/AUST/2011Census_B45A_AUST_LGA_long.csv" name="2011 Census - 45A" id="censusB45A">
</esri-pivotmaps-datasource>
<esri-pivotmaps-datasource geo_id="LGA_CODE11" url="/data/LGA/AUST/2011Census_B45B_AUST_LGA_long.csv" name="2011 Census - 45B" id="censusB45B">
</esri-pivotmaps-datasource>
<esri-pivotmaps-datasource geo_id="LGA_CODE11" url="/data/LGA/AUST/2011Census_B01_AUST_LGA_long.csv" name="2011 Census - B01" id="censusB01">
</esri-pivotmaps-datasource>
</esri-pivotmaps-geoaxis>
</esri-pivotmapscontroller>
</section>
<section id="section4" flex two>
<hr id="hr"></hr>
<esri-pivotmaps-donut min="{{ $.censusB01.aggregates.Total_Persons_Persons.min }}" max="{{ $.censusB01.aggregates.Total_Persons_Persons.max }}" gauge_value="{{ $.censusB01.values.Total_Persons_Persons.value }}" colorstart="#000000" colorstop="#fa1d33" id="donutgauge"></esri-pivotmaps-donut>
</section>
</section>
</section>
<section id="section1" main>
<esri-map basemap="gray" autoresize latitude="-28.685720971767307" longitude="134.46131795309134" zoom="4" id="map">
<esri-jsonlayer url="/LGA11aAust.js" id="jsonLayer"></esri-jsonlayer>
<esri-geocoder id="esri_geocoder"></esri-geocoder>
<esri-scalebar id="esri_scalebar"></esri-scalebar>
<esri-pivotmaps-genderpanel male_value="{{ $.censusB01.values.Total_Persons_Males.value }}" female_value="{{ $.censusB01.values.Total_Persons_Females.value }}" id="esri_pivotmaps_gender">
</esri-pivotmaps-genderpanel>
<esri-pivotmaps-popmetric pop_value="{{ $.censusB01.values.Total_Persons_Persons.value }}" total_value="{{ $.censusB01.aggregates.Total_Persons_Persons.max }}" id="esri_pivotmaps_popmetric">
</esri-pivotmaps-popmetric>
<esri-home map="{{ $.map.map }}" id="esri_home"></esri-home>
<esri-locate map="{{ $.map.map }}" id="esri_locate"></esri-locate>
</esri-map>
</section>
</core-drawer-panel>
</template>
<script>
Polymer('my-element', {
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment