Skip to content

Instantly share code, notes, and snippets.

@MrTiggr
Created August 2, 2014 14:21
Show Gist options
  • Save MrTiggr/17e131bb72d7fef6752a to your computer and use it in GitHub Desktop.
Save MrTiggr/17e131bb72d7fef6752a to your computer and use it in GitHub Desktop.
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../paper-item/paper-item.html">
<link rel="import" href="../paper-slider/paper-slider.html">
<link rel="import" href="../core-splitter/core-splitter.html">
<link rel="import" href="../esri-html5/esri-featurelist.html">
<link rel="import" href="../esri-html5/esri-featurepanel.html">
<link rel="import" href="../esri-html5/esri-pivotmaps-gauge.html">
<link rel="import" href="../esri-html5/esri-map.html">
<link rel="import" href="../esri-html5/esri-layer.html">
<link rel="import" href="../esri-html5/esri-infotemplate.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-home.html">
<link rel="import" href="../esri-html5/esri-locate.html">
<polymer-element name="esri-kitchensink">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
box-sizing: border-box;
}
#core_scaffold {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
width: 100%;
height: 100%;
}
#core_header_panel {
overflow: hidden;
width: 100%;
height: 100%;
background-color: rgb(255, 255, 255);
}
#core_toolbar {
color: rgb(255, 255, 255);
background-color: rgb(79, 125, 201);
}
#map {
width: 100%;
height: 100%;
position: absolute;
top: 0px;
left: 0px;
}
#feature_list {
height: 350px;
}
#paper_item2 {
min-height: 0px;
overflow: hidden;
height: 69px;
}
#feature_panel {
overflow: hidden;
}
</style>
<core-scaffold id="core_scaffold">
<core-header-panel mode="standard" id="core_header_panel" navigation layout vertical>
<core-toolbar id="core_toolbar"></core-toolbar>
<section id="section" class="content" fit>
<paper-item label="lat:" icon="maps:my-location" id="paper_item" center horizontal layout>{{ $.map.latitude }}</paper-item>
<paper-item label="lon:" icon="maps:my-location" id="paper_item1" center horizontal layout>{{ $.map.longitude }}</paper-item>
<paper-item label="Zoom" icon="sort" id="paper_item2" center horizontal layout>
<paper-slider immediatevalue="6" value="{{ $.map.zoom }}" max="19" id="paper_slider"></paper-slider>
</paper-item>
<core-splitter direction="up" id="core_splitter1" class="horizontal"></core-splitter>
<esri-featurelist features="{{ $.worldCitiesLayer.graphics }}" label_field="CITY_NAME" id="feature_list">
</esri-featurelist>
<core-splitter direction="up" id="core_splitter" class="horizontal"></core-splitter>
<esri-featurepanel title_text="World Cities" id="feature_panel" bindings="[]" feature="{{$.feature_list.selected}}">
</esri-featurepanel>
<esri-pivotmaps-gauge id="esri_pivotmaps_gauge" feature="{{$.feature_list.selected}}" ></esri-pivotmaps-gauge>
</section>
</core-header-panel>
<div id="div" tool>ESRI-HTML5 Demo</div>
<section id="section1" class="content">
<esri-map basemap="satellite" autoresize latitude="-38.787799808268815" longitude="152.17764579136232" zoom="6" id="map" fit center>
<esri-featurelayer url="http://sampleserver5.arcgisonline.com/arcgis/rest/services/WorldTimeZones/MapServer/0" id="worldCitiesLayer">
<esri-infotemplate title="World Cities" id="cityTemplate">${*}</esri-infotemplate>
</esri-featurelayer>
<esri-geocoder id="esri_geocoder"></esri-geocoder>
<esri-scalebar id="esri_scalebar"></esri-scalebar>
<esri-home map="{{ $.map.map }}" id="esri_home"></esri-home>
<esri-locate map="{{ $.map.map }}" id="esri_locate"></esri-locate>
</esri-map>
</section>
</core-scaffold>
</template>
<script>
Polymer('esri-kitchensink', {
});
</script>
</polymer-element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment