Skip to content

Instantly share code, notes, and snippets.

View dbouwman's full-sized avatar
😎
Hubbin it up @ Esri

Dave Bouwman dbouwman

😎
Hubbin it up @ Esri
View GitHub Profile
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
toggleValue() {
this.toggleProperty('value');
},
inputChanged(value) {
if (typeof this.onchange === 'function') {
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="MapService Layer as Feature Layer w/ min/max scale hack" />
<title>Create a Map</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<link rel="stylesheet" href="http://js.arcgis.com/3.8/js/dojo/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://js.arcgis.com/3.8/js/esri/css/esri.css">
<style>
@dbouwman
dbouwman / FeatureLayerScaleHack.html
Last active January 2, 2016 18:59 — forked from anonymous/jsbin.EXEwADO.html
How to get a feature layer with min/max scales to draw at any scale
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Feature Layer w/ min/max scale hack" />
<title>Create a Map</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<link rel="stylesheet" href="http://js.arcgis.com/3.8/js/dojo/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://js.arcgis.com/3.8/js/esri/css/esri.css">
<style>
@dbouwman
dbouwman / MapServiceLayerAsFeatureLayer.html
Last active January 2, 2016 18:59 — forked from anonymous/jsbin.ONIBUtI.html
Example showing how to use a map service layer as a Feature Layer
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="MapService Layer as Feature Layer" />
<title>Create a Map</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<link rel="stylesheet" href="http://js.arcgis.com/3.8/js/dojo/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://js.arcgis.com/3.8/js/esri/css/esri.css">
<style>
.container{
position:absolute;
width:100%;
/*overflow:hidden; */
}
.layout {
position:absolute;
width:90%;
height:100%;