POST
|
What if you have Enabled the extension and its authorized, yet it throws the same error?
... View more
05-31-2018
10:24 AM
|
0
|
0
|
786
|
POST
|
Made an update to the map on the arcgis online side of things. Now all the layers show all the time. How do i get them to show at different scales within the Javascript?
... View more
10-26-2017
08:36 AM
|
0
|
0
|
320
|
POST
|
sorry about that, i will put a new file along with the timeslider i would like implemented. I sort of have it working but no points are coming up.
... View more
04-25-2016
08:42 AM
|
0
|
0
|
468
|
POST
|
what would that look like, i have tried a few things but was unsuccessfull
... View more
04-25-2016
08:22 AM
|
0
|
0
|
468
|
POST
|
one more thing does anyone know how to get a hyperlink to open up a new page from an infotemplate window.
... View more
04-23-2016
01:57 PM
|
0
|
2
|
468
|
POST
|
If you dont want to download the HTML file let me know and i will past it as a comment
... View more
04-23-2016
10:21 AM
|
0
|
0
|
468
|
POST
|
I have a working site. But i want to included a time slider Also, currently the html has a tabcontent in it only i wan one tab to have the map and legend in it and then the next tab to have the same map and data but with the timeslider on the bottom of the screen. I will include the code i have now. Any help by tomorrow would be great.
... View more
04-23-2016
10:10 AM
|
0
|
7
|
2323
|
POST
|
I have a n update to my code: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"> <title></title> <link rel="stylesheet" href="https://js.arcgis.com/3.16/esri/css/esri.css"> <link rel="stylesheet" href="https://js.arcgis.com/3.16/dijit/themes/claro/claro.css"> <style> html,body { height:100%; width:100%; } body { overflow:hidden; } #title{ font-size: 25px; font-weight: bold; color: white; } #map{ padding: 0px; } .item{ width: 100%; height: 25px; padding:0; background-color: #775500; } .itemText{ color: white; padding:5px 0 0 5px; margin:0; vertical-align: bottom; font-size: 12; font-weight: bold; } #legendDiv { padding-left: 10px; margin:0; } .instruction { padding:1; margin-bottom:5px; } #layerList { padding-left:10px; padding-top:10px; } <!--#search { display: block; position: absolute; z-index: 3; top: 25px; left: 50px; }--> .spotlight { z-index:-1; position:absolute; left:50%; top:50%; border-radius:50%; opacity:0; box-shadow: inset rgba(0,0,0,0.25) 0px 0px 20px 20px, rgba(0,0,0,0.50) 0px 0px 0px 1000px; transition:all 1000ms; -moz-transition:all 1000ms; -webkit-transition:all 1000ms; } .spotlight-active { z-index:2; opacity:1; } </style> <script src="https://js.arcgis.com/3.16/"></script> <script> var map, layerList; require([ "esri/map", "esri/dijit/Geocoder", "esri/tasks/locator", "esri/graphic", "esri/symbols/SimpleMarkerSymbol", "esri/geometry/screenUtils", "dojo/dom", "dojo/dom-construct", "dojo/query", "dojo/_base/Color", "esri/layers/ArcGISDynamicMapServiceLayer", "esri/dijit/LayerList", "esri/layers/FeatureLayer", "esri/InfoTemplate", "esri/renderers/smartMapping", "dojo/parser", "dijit/form/Button", "dijit/registry", "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dijit/form/Select", "dojo/domReady!"], function( Map, Geocoder, Locator, Graphic, SimpleMarkerSymbol, screenUtils, dom, domConstruct, query, Color, ArcGISDynamicMapServiceLayer, LayerList, FeatureLayer, InfoTemplate, smartMapping, parser, Button, registry ){ parser.parse(); map = new Map("map", { basemap: "streets", center: [-97.6982,30.3097], zoom: 11 }); map.infoWindow.resize(200,125); var texasLayer = new FeatureLayer("http://localhost:6080/arcgis/rest/services/Austin_Texas/MapServer/0",{mode: FeatureLayer.MODE_SNAPSHOT, outFields:["*"], id:"capital", /*infoTemplate:infoTemplate*/}); texasLayer.setOpacity(.40); map.addLayers([texasLayer]); //url = "http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Locators/ESRI_Geocode_USA/GeocodeServer"; url="http://localhost:6080/arcgis/rest/services/Austin_Streets/GeocodeServer"; locator = new Locator (url); registry.byId("search2").on("click", doGeocoding) button.on("click", doGeocoding); function doGeocoding(){ //Retrive the addresses from the text area var textArea = dom.byId("search1"); var inputAddresses = textArea.value.replace(/\r\n/g, "\n").split("\n"); var addresses = []; for (i=0;i<inputaddresses.length;i++){ var address = {"OBJECTID": i, "Single Line Input": inputaddresses}; addresses.push(address); } var params = {addresses: address}; locator.addressesToLocations(params, showResults); } function showResults(response) { var candidate; var symbol = new SimpleMarkerSymbol(); var infoTemplate = new InfoTemplate( "Location", "Address: ${city}<br />Score: ${score}" ); symbol.setStyle(SimpleMarkerSymbol.STYLE_CIRCLE); symbol.setColor(new Color([153,0,51,0.75])); var geom; //The geometry of the geocoded point arrayUtils.every(response, function(candidate) { console.log(candidate.score); if (candidate.score > 80){ var attributes = { city: candidate.city, score: candidate.score, locatorName: candidate.attributes.Addr_type }; geom = candidate.location; var graphic = new Graphic(geom, symbol,attributes,infoTemplate); map.graphics.add(graphic); return false; } else { return true; } }); //Zoom to the geocoded point if ( geom !== undefined ) { map.centerAndZoom(geom, 12); } } }); </script> </head> <body class="claro"> <div id="mainWindow" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline', gutters:true" style="width:100%; height:100%; padding:0;"> <div id="header" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'top'" style="height:30px; background-color:#478;"> <div id="title">2010 Population Map of Travis County, Texas</div> </div> <div id="leftPane" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'left'" style="width:300px; padding:0; margin:0"> <div class="item"><p class="itemText">Geocoding addresses</p> <textarea id="search1" rows="25" cols="35"></textarea> <button id="search2" data-dojo-type="dijit/form/Button">Locate</button> </div> </div> <div id="map" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'"></div> </div> </body> </html>
... View more
04-16-2016
07:40 AM
|
0
|
0
|
653
|
POST
|
Oh, ok thanks for the update. I knew i had posted in the wrong place
... View more
04-13-2016
04:34 PM
|
0
|
0
|
653
|
POST
|
another thing your candidate score will need to be >80
... View more
04-13-2016
04:06 PM
|
0
|
2
|
653
|
POST
|
Sorry forgot to mention why you wont see the map. Its being done on a virtual machine, with arcgis server and adaptor. if you have either of these you might be able to see things.
... View more
04-13-2016
04:04 PM
|
0
|
0
|
653
|
POST
|
Ok so I have some working code with a geocode service in it already. Again you wont see what i have which is a map of Austin, Texas. I need to have a text area where i can place multiple addresses and then have them geocode ontop of the map when i click a button. I really just need help with this part for now. I will include two files one with the HTML code i need edited and one with HTML to be added to the other or at least somehow implemented. The result should look like this. any help will be greatly appreciated
... View more
04-13-2016
04:02 PM
|
0
|
6
|
3268
|
POST
|
Thanks, that has helped a ton, and i just figured out the drop downs, so moving along thank you.
... View more
04-11-2016
10:39 AM
|
0
|
0
|
369
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|