Created
August 7, 2014 01:32
-
-
Save MrTiggr/15c6e90b38abfb59efa0 to your computer and use it in GitHub Desktop.
designer
This file contains hidden or 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
<link rel="import" href="../core-drawer-panel/core-drawer-panel.html"> | |
<link rel="import" href="../esri-html5/esri-map.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"> | |
<link rel="import" href="../esri-html5/esri-layer.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%; | |
} | |
</style> | |
<core-drawer-panel id="core_drawer_panel" touch-action> | |
<section id="section" drawer></section> | |
<section id="section1" main> | |
<esri-map autoresize latitude="-35.28369822141109" longitude="149.10609334374243" zoom="6" id="map"> | |
<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-featurelayer url="http://sampleserver5.arcgisonline.com/arcgis/rest/services/WorldTimeZones/MapServer/0" id="worldCitiesLayer"></esri-featurelayer> | |
</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