|
POST
|
Right click one of your other layers and choose properties. There go to the Source tab and scroll down to Coordinate system.
... View more
02-17-2014
05:30 AM
|
0
|
0
|
2147
|
|
POST
|
You need to make sure that when you add your XY data to choose the same coordinate system as your other layers.
... View more
02-17-2014
05:15 AM
|
0
|
0
|
2147
|
|
POST
|
Jamal, those edits are saved on the ESRI servers. If you have an organizational account, you can download this data on the specific layers detail page. Go to "My Content"and click on the feature you would like to download . On the details page where it says "Layer", click the little triangle next to your layers name, there you can choose to download it as a shapefile. Hope this helps! Tim
... View more
02-17-2014
03:11 AM
|
0
|
0
|
1243
|
|
POST
|
Geoffrey, Add the following when you create your map slider: false Hope this helps 🙂
... View more
02-14-2014
09:50 AM
|
0
|
0
|
1093
|
|
POST
|
Thanks for the link John, guess I'll be fighting through it tomorrow 🙂
... View more
02-13-2014
11:14 AM
|
0
|
0
|
1027
|
|
POST
|
Hey everybody, I'm pretty new to the JavaScript API and still have trouble translating legacy to AMD. I try to implement the "Show find task results in a DataGrid" sample into my application, but since it is written with legacy I am having trouble implementing it into my AMD style application. Does anybody use this sample with their AMD application so I can take a look or maybe look at my application and see the mistakes I made? Thanks in advance!! Tim
... View more
02-13-2014
10:30 AM
|
0
|
4
|
1377
|
|
POST
|
Tanya, You could use a select by attributes query. It should look like the following: NAME LIKE '%EP%' This should give you all the schools that have EP in them. You might need to look over the selection to wheat out schools that have 'ep' in their name. Once you have your clean list, you can just read the number off your attribute table 🙂 I would recommend to add a field called TYPE and use the field calculator to fill in EP, with this you can do this process a lot faster next time. Hope this helps! Tim
... View more
02-13-2014
03:10 AM
|
0
|
0
|
726
|
|
POST
|
Let me know if this works for you and if it does don't forget to mark the answer 🙂
... View more
02-12-2014
04:44 AM
|
0
|
1
|
8854
|
|
POST
|
Steve, When you open your map in ArcGIS Online, you can change the symbology there. You need to upload the Symbol you would like to use to an image sharing site. Click on the content tab -> click the little triangle next to your layer and choose "Change Symbology" Then choose options -> Change Symbology. In the pop up you can choose "Add an Image". Just paste in the link which points to your image to get the symbology you would like. If you need instructions on how to import custom symbology into ArcGIS Desktop let me know, but I am not sure if the symbology stays once you upload it to ArcGIS Online, that's why I would try the Add an Image method. Tim
... View more
02-12-2014
04:34 AM
|
0
|
2
|
8854
|
|
POST
|
Steve, You will need an organizational account for this. Open the MXD in which you have prepared your layer with your symbology. Make sure only that layer is in your MXD. 1) Click on File -> Sign In... (Here you sign into your organizational account) 2) Click on File -> Share As -> Service -> Publish a service 3) As connection choose My Hosted Services (My Account) and as service name use what you want the layer to be called. 4) Under the capabilities tab uncheck "Tiled Mapping" and check "Feature Access" 5) Fill out the Item Description tab 6) Under sharing you can check who is able to see it once published 7) Click Publish in the upper right corner and it will soon show up in your "My Content" on ArcGIS Online I hope this makes sense! Tim
... View more
02-12-2014
03:14 AM
|
0
|
0
|
8854
|
|
POST
|
Jake, thanks for the reply, that did the trick! Tim
... View more
02-10-2014
08:13 AM
|
0
|
0
|
1034
|
|
POST
|
Hey everybody, I was looking at this example, that lets me toggle layers via checkboxes. I tried to implement it into my application, but I just can't get it to work. Everything works, but the checkboxes won't show up in my TOC. <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!--The viewport meta tag is used to improve the presentation and behavior of the samples on iOS devices--> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <title>Map with legend</title> <link rel="stylesheet" href="http://js.arcgis.com/3.8/js/dojo/dijit/themes/tundra/tundra.css"> <link rel="stylesheet" href="http://js.arcgis.com/3.8/js/esri/css/esri.css"> <style> html, body { height: 97%; width: 98%; margin: 1%; } #rightPane { width: 30%; } #pane1 { border: solid #97DCF2 1px; } #header{ border: solid #C0C0C0 2px; background-color:#C0C0C0 } #HomeButton { position: absolute; top: 98px; left: 26px; z-index: 50; } #legendPane { border: solid #97DCF2 1px; } </style> <script src="http://js.arcgis.com/3.8/"></script> <script> var map; require([ "dojo/parser", "esri/map", "esri/dijit/HomeButton", "esri/layers/FeatureLayer", "dojo/on", "esri/dijit/Legend", "dojo/_base/array", "dijit/form/CheckBox", "esri/dijit/BasemapGallery", "esri/dijit/Geocoder", "esri/graphic", "esri/symbols/SimpleMarkerSymbol", "esri/geometry/screenUtils", "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dijit/layout/AccordionContainer", "dojo/domReady!" ], function( parser, Map, HomeButton, FeatureLayer, on, Legend, array, CheckBox, BasemapGallery, Geocoder, Graphic, SimpleMarkerSymbol, screenUtils, Color, domConstract, BorderContainer, ContentPane, AccordionContainer ) { parser.parse(); //Create the map var map = new Map("map", { center: [-80.734, 28.297], zoom: 10, basemap: "topo" }); //Add a home button var home = new HomeButton({ map:map }, "HomeButton"); home.startup(); //Add Feature Layers var cities = new FeatureLayer( "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/0", { mode: FeatureLayer.MODE_ONDEMAND, outFields: ["*"] }); var rivers = new FeatureLayer( "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/1", { mode: FeatureLayer.MODE_ONDEMAND, outFields: ["*"] }); var states = new FeatureLayer( "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/2", { mode: FeatureLayer.MODE_ONDEMAND, opacity: 0.5, outFields: ["*"] }); //add the legend map.on("layers-add-result", function (evt) { var layerInfo = array.map(evt.layers, function (layer, index) { return { layer: layer.layer, title: layer.layer.name }; }); if (layerInfo.length > 0) { var legendDijit = new Legend({ map: map, layerInfos: layerInfo }, "legendDiv"); legendDijit.startup(); } //add check boxes array.forEach(layerInfo, function (layer) { var layerName = layer.title; var checkBox = new CheckBox({ name: "checkBox" + layer.layer.id, value: layer.layer.id, checked: layer.layer.visible, onChange: function (evt) { var clayer = map.getLayer(this.value); clayer.setVisibility(!clayer.visible); this.checked = clayer.visible; } }); //add the check box and label to the TOC domConstruct.place(checkBox.domNode, "toggle", "after"); var checkLabel = domConstruct.create('label', { 'for': checkBox.name, innerHTML: layerName }, checkBox.domNode, "after"); domConstruct.place("<br />", checkLabel, "after"); }); }); map.addLayers([states, rivers, cities]); //Create the Basemap var basemapGallery = new BasemapGallery({ showArcGISBasemaps: true, map: map }, "basemapGallery"); basemapGallery.startup(); basemapGallery.on("error", function(msg) { console.log("basemap gallery error: ", msg); }); //Create the Address Search geocoder = new Geocoder ({ arcgisGeocoder: false, geocoders: [ { url: "http://<server URL>/gissrv/rest/services/Geocode/Address_Locator_WKID2881/GeocodeServer", name: "Brevard County", placeholder: "Find a place", outfields: "*", }], map:map }, "search"); geocoder.startup(); geocoder.on("select", showLocation); // Zoom to the result and put a point function showLocation(evt) { map.graphics.clear(); var point = evt.result.feature.geometry; var symbol = new SimpleMarkerSymbol() .setStyle("square") .setColor(new Color([255,0,0,0.5])); var graphic = new Graphic(point, symbol); map.graphics.add(graphic); map.infoWindow.setTitle("Search Result"); map.infoWindow.setContent(evt.result.name); map.infoWindow.show(evt.result.feature.geometry); }; }); </script> </head> <body class="tundra"> <!--[if IE 7]> <style> html, body { margin: 0; } </style> <![endif]--> <div id="content" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline', gutters:true" style="width: 100%; height: 100%; margin: 0;"> <div id="header" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'top'"> <strong>Brevard County Test Map</strong> </div> <div id="rightPane" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'left'"> <div data-dojo-type="dijit/layout/AccordionContainer"> <div data-dojo-type="dijit/layout/ContentPane" id="pane1" data-dojo-props="title:'Base Maps', selected:false"> <div id="basemapGallery"></div> </div> <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="title:'Address Search'"> <div id="search"></div> i.e. 2725 Judge Fran Jamieson Way, Melbourne </div> <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="title:'Layers'"> <span style="padding: 10px 0;">Click to toggle each layer on or off</span> <div id="toggle" style="padding: 2px 2px;"></div> </div> <div data-dojo-type="dijit/layout/ContentPane" id="legendPane" data-dojo-props="title:'Legend', selected:true"> <div id="legendDiv"></div> </div> </div> </div> <div id="map" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'" style="overflow:hidden;"> <div id="HomeButton"></div> </div> </div> </body> </html> Any help would be greatly appreciated! Tim
... View more
02-10-2014
04:38 AM
|
0
|
2
|
1404
|
|
POST
|
Thanks for the answer Ken. I'm pretty new to the JavaScript API and I think that leads me to trying to re-invent the wheel 🙂
... View more
02-07-2014
09:06 AM
|
0
|
0
|
853
|
|
POST
|
Hey everybody! Does anybody use the Legend - toggle services example in AMD format? I tried to include it in my app, but I'm pretty new to JavaScript and this one is a head scratcher 🙂 Here is what I've got so far for that part of my code: var legendLayers = []; var county = new FeatureLayer("http://gis.brevardcounty.us/gissrv/rest/services/Base_Map/General_WKID102100/MapServer/6",{ mode: FeatureLayer.MODE_ONDEMAND, outFields:["*"] }); //Create Legend map.on("layers-add-result", function (evt) { var layerInfo = arrayUtils.map(evt.layers, function (layer, index) { return {layer:layer.layer, title:layer.layer.name}; }); if (layerInfo.length > 0) { var legendDijit = new Legend({ map: map, layerInfos: layerInfo }, "legendDiv"); legendDijit.startup(); } }); map.addLayers([county]); legendLayers.push({layer:county, title:"County"}); //Create Checkboxes map.on("layers-add-result", function (evt) { arrayUtils.map(legendLayers, function (evt) { var layerName = layer.title; var checkBox = new CheckBox ({ name:"checkBox" + layer.layer.id, checked: layer.layer.visible, onChange: function (evt) { var clayer=map.getLayer(this.value); clayer.setVisibility(!clayer.visible); this.checked = clayer.visible; } }); //Move the checkboxes to TOC domConstruct.place(checkBox.domNode, dom.byId("toggle"), "after"); var checkLable = domConstruct.create('label', {'for':checkBox.name, innerHTML:layerName}, checkBox.domNode, "after"); domConstruct.place("<br />", checkLabel, "after"); }); }); If you used that example in AMD it would be nice to see working code. Thanks Tim
... View more
02-07-2014
08:20 AM
|
0
|
2
|
1363
|
|
POST
|
Hey everybody, I am getting more and more into the JavaScript API and have been using the JavaScript Sandbox. This has been great, since you can see results immediately. But the longer my code gets the more I pray for my browser not to crash 🙂 What IDE are the heavy JavaScript users using? Are there any good free ones? What I really like about the sandbox is, that you can click run and see a result. The thing that is missing is, that I don't see when there are mistakes in my code, or a sort of autocomplete function when typing. Thanks everybody! Tim
... View more
02-07-2014
04:19 AM
|
0
|
0
|
570
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-25-2013 07:58 AM | |
| 1 | 03-06-2014 06:03 AM | |
| 4 | 12-09-2013 03:25 AM | |
| 1 | 04-16-2014 04:11 AM | |
| 1 | 04-24-2014 10:53 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|