|
POST
|
I don't use this but took a quick look at it in Firefox with Firebug. Looks like the reference to the broadband service is located in the config.js file at line 135. Outside of this, search the various JS files for references to "PopulateBroadBandInformation" (Utils.js line 1289) and then comment out any call to it. That appears to be the function that queries the service for information and then populates the tab. Good luck! Steve
... View more
10-10-2013
01:12 PM
|
0
|
0
|
2237
|
|
POST
|
With a single point returned, try expanding the extent that you extract from the point. Something like this: var theExtent = features[0].geometry.getExtent().expand(1.5); map.setExtent(theExtent); In my own apps, this is how I expand the extent of a point feature: var thePoint = features[0].geometry; var theExtent = pointToExtent(map,thePoint,15); map.setExtent(theExtent); //============================================================================= // Utility routine to convert a point's geographic location into a rectangle. // Used to provide a zoom extent for point features //============================================================================= function pointToExtent(map, point, toleranceInPixel) { //Function to convert a point coordinate into a rectangle area var pixelWidth = map.extent.getWidth() / map.width; var toleraceInMapCoords = toleranceInPixel * pixelWidth; return new esri.geometry.Extent( point.x - toleraceInMapCoords, point.y - toleraceInMapCoords, point.x + toleraceInMapCoords, point.y + toleraceInMapCoords, map.spatialReference ); } Good luck! Steve
... View more
10-10-2013
12:41 PM
|
0
|
0
|
1629
|
|
POST
|
My organization is currently at the 10.1 license level for desktop ArcGIS as well as ArcGIS Server. We're having a ton of stability issues with our internal 10.1 development server instance of ArcGIS Server so we're considering updating it to 10.2 to see if this corrects our problems. One question that came up was whether or not desktop 10.1 would still be able to publish to a 10.2 instance of ArcGIS Server (our desktop installs will still remain on 10.1 for the forseeable future). Can anyone confirm whether or not we might have any issues publishing services from desktop 10.1 if we upgrade ArcGIS Server to 10.2? Thanks! Steve
... View more
10-10-2013
08:14 AM
|
0
|
2
|
893
|
|
POST
|
So recently I began getting a weird error in an application I've been developing when using the Export Web Map Task. My application will reside within our network but here's a link to a public facing version: http://gismaps.snoco.org/ej_explorer/ So, in the application, the various points and lines represent projects. When the user clicks on one, a popup appears and within the popup is an option to run a summary report. The code for the summary report by census tract also includes a section which creates a JPEG "vicinity map" and inserts the output JPEG into the report generated (this is created on the fly with HTML in a new browser window). [Note: Most of the report is generated immediately but the JPEG map & the section immediately preceeding it might have a slight day before appearing] If I run the summary report by census tract on a line based project, everything works fine. If I run it on a point based project, the Export Web Map Task throws an error: {"error":{"code":400,"message":"Unable to complete operation.","details":["Error executing tool.: Layer \"map_graphics\": �?\nFailed to execute (Export Web Map).\nFailed to execute (Export Web Map Task)."]}} By playing around, I've figured out that the selected feature graphic for point features is what's choking the export. If I type "map.graphics.clear()" in the console before clicking the report button in my popup, the report (and export process) works correctly. I'm mystified as to why this is happening, especially since this was working fine a few months ago (I haven't touched the code in the linked version since the ESRI UC). Steve
... View more
10-09-2013
10:13 AM
|
0
|
2
|
1427
|
|
POST
|
Ok, I suddenly feel stupid and can't figure this out.. In my web app, I have both census tracts and block groups available as layers that my users can turn on or off. The layers are added to my app as DynamicMapServiceLayers. Up until this point, I published the census tract and block group datasets as seperate services and that all works just fine. I decided to change this recently and package both datasets into ONE service primarily because the auto generated labels within the service would overlay on top of each other and look crappy. I figured that if they were in the same MXD when published, the labeling mess wouldn't happen. I published them together and add them to my map like this: // Define the census tract map layer theTractLayer = new esri.layers.ArcGISDynamicMapServiceLayer(SERVERPATH + "/demography/censusBoundaries/MapServer/0", { visible: false }); // Define the census block group layer theBlockgroupLayer = new esri.layers.ArcGISDynamicMapServiceLayer(SERVERPATH + "/demography/censusBoundaries/MapServer/1", { visible: false }); After making this change, I now get a 400 Bad Request Error whenever I try to display either layer. Apparently the URL can't dive down into the service deeper than the "/MapServer" level. So how can I accomplish my goal of bundling the two datasets as one service but add them to my map as separate layers as far as JS is concerned? Thanks! Steve
... View more
10-09-2013
07:42 AM
|
0
|
3
|
2835
|
|
POST
|
I have not yet headed down this path but probably will have to sooner than later. Based on my own searches, it looks like you can either modify some of the existing templates located in a subfolder of your ArcGIS Server installation or create additional ones and then reference them during your PrintTask coding. Some example threads: This and this.
... View more
09-30-2013
02:16 PM
|
0
|
0
|
600
|
|
POST
|
I'm still trying to avoid the migration to AMD myself but I think you might need to focus on the API versions 3.4, 3.5, or 3.6. A good place to start is the "What's New" section of the Concepts site (link for the What's New for v3.4). I don't know about the custom module side of things but a few gotchas to pay attention to when moving from 2.8 to the 3.x series of APIs: 1. djConfig in your HTML header changes to dojoConfig 2. Remove any "lang=EN" from your <HTML> tag! For some darn reason, this breaks your app so, if you have it, remove it. 3. Any code that references the esri namespace can't run until after all the modules have loaded. In the 2.8 days, I might have a global variable for the initial extent declared outside of my initMap function like this: var initExtent = new esri.geometry.Extent({
"xmin": -13592500,
"ymin": 6060280,
"xmax": -13506825,
"ymax": 6166129,
"spatialReference": {"wkid": 3857}
}); This chokes in the 3.x APIs because of the esri.* reference. The solution is like this: var initExtent;
function initMap() {
initExtent = new esri.geometry.Extent({
"xmin": -13592500,
"ymin": 6060280,
"xmax": -13506825,
"ymax": 6166129,
"spatialReference": {"wkid": 3857}
});
}
dojo.Ready(initMap); I now also use dojo.Ready() instead of dojo.OnLoad() to call the map setup function at page load. I think these are the biggest issues in general when updating from v2.8. Hopefully someone else can provide some wisdom about your situation with the custom modules. Good luck! Steve
... View more
09-27-2013
12:12 PM
|
0
|
0
|
690
|
|
POST
|
You don't elaborate on the error that gets thrown. Is it a type mismatch? I ask because maybe the symbol you're passing for the graphic creation isn't compatible (point vs line, line vs polygon, etc). Perhaps in your highlightResults function, you can do something like this: markerSymbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_DIAMOND, 28,
new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,
new dojo.Color([255,255,255]), 2),
new dojo.Color([255,0,0,0.85]));
lineSymbol = new esri.symbol.CartographicLineSymbol(esri.symbol.CartographicLineSymbol.STYLE_SOLID,
new dojo.Color([255,0,0]), 10, esri.symbol.CartographicLineSymbol.CAP_ROUND,
esri.symbol.CartographicLineSymbol.JOIN_MITER, 5);
fillSymbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,
new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,
new dojo.Color([255,0,0]), 2),new dojo.Color([255,255,0,0.85]));
// figure out which symbol to use
var symbol, g;
if ( feature.geometry.type === "point" || feature.geometry.type === "multipoint") {
symbol = markerSymbol;
} else if ( feature.geometry.type === "line" || feature.geometry.type === "polyline") {
symbol = lineSymbol;
}
else {
symbol = fillSymbol;
}
g = new esri.Graphic(evt, symbol, null, null);
selGraphicsLayer.add(g);
... View more
09-27-2013
08:22 AM
|
0
|
0
|
1416
|
|
POST
|
ARGH!! I totally forgot about that part of the migration to the 3.x APIs. I removed the reference and all is well. THANK YOU!
... View more
09-26-2013
01:53 PM
|
0
|
3
|
4394
|
|
POST
|
The latest API version doesn't necessarily mean things will work in IE-8. All versions of IE before v9 are notorious for being NON-standards compliant which makes life a living hell for web developers. In my organization, IE-8 is still the default browser so I did have to ensure my application would work under IE-8. I ultimately switched my charting from a Dojo solution to another solution 3rd party solution because I could not get it to work under IE-8. Everything else worked fine- just not my charting. So- will v3.6 work? Probably, even most likely. You asked why someone would avoid IE-8 mode and this was one reason from my experience.
... View more
09-26-2013
01:19 PM
|
0
|
0
|
1649
|
|
POST
|
The header is a bit of a mess (this is one of my first webmap app efforts) because it tries to apply some responsive design to the page. EDIT: Forgot the actual error: dojo/parser:parse() error TypeError {} serverapi.arcgisonline.com/jsapi/arcgis/3.4/:34
... View more
09-26-2013
11:04 AM
|
0
|
0
|
4394
|
|
POST
|
Here's the rest: [HTML] <div id="content"> <figure class="post-image"> <div id="closureHeader" style="width=500px; height=400px"> <h4 class="widgettitle">Emergency Road Closure Information as of <SPAN id="todaysDate">today</SPAN>:</h4> <p>Please be advised that all state routes and highways are maintained and reported on by the Washington State Department of Transportation (WSDOT) and are <SPAN style="font-weight:bold">NOT</SPAN> reflected in the list below. They are, however, available as an additional overlay that can be turned on at your convenience. Please call the WSDOT automated information line at 511 or visit their website at <a href="http://www.wsdot.wa.gov" target="_blank">www.wsdot.wa.gov</a> for information related to Washington State DOT maintained state routes and highways.</p> </div> </figure> <article class="post clearfix"> <figure class="post-image"> <div dojotype="dijit.layout.BorderContainer" design="headline" gutters="false" style="width: 100%; height:400px; margin: 0;"> <div id="map" dojotype="dijit.layout.ContentPane" region="center" style="width:100%; height:400px;overflow:hidden;border:1px solid #000"> <div style="position:absolute; right:5px; top:5px;z-index:99"> <button id="dropdownButton" iconClass="bingIcon" label="Switch Basemap" dojoType="dijit.form.DropDownButton"> <div dojoType="dijit.Menu" id="basemapMenu"> <!--The menu items are dynamically created using the basemap gallery layers--> </div> </button> </div> </div> </div> </figure> <p style="font-size:80%;text-align:right;font-style:italic;color:#666666">Map not big enough? <a href="http://dmc-arcgis/spwscc/rdClosures/rdClosuresFull.html" target="_blank">View a full screen version</a></p> </article> <figure class="post-image"> <div id="closureList" style="width:100%"> <h5>There are currently <SPAN id="numRdClosures">0</SPAN> road closures:</h5> <div dojotype="dijit.layout.ContentPane" id="dGridContentPane" region="center" style="width:100%;height:350px"> <table dojotype="dojox.grid.DataGrid" jsid="grid" id="grid" selectionMode="none"> <thead> <tr> <th field="OBJECTID" width="0%">OBJECTID</th> <th field="rdName" formatter="makeHtmlTable" width="100%">rdName</th> <th field="dateCl" width="0%">dateCL</th> <th field="dateOp" width="0%">dateOp</th> </tr> </thead> </table> </div> <hr> <div align="right"> <label>Sort Road List by</label> <select id="dgridSortOrder" class="select" align="right" title="Sort Road List by" onchange="changeSortOrder()" /> <option selected="true">Name <option>Closure Date (newest first) <option>Closure Date (newest last) <option>Re-Open Date (newest first) <option>Re-Open Date (newest last) </select></div> </div> </figure> <!-- /.post --> </div> <!-- /#content --> <aside id="sidebar"> <section class="widget"> <h4 class="widgettitle"><SPAN>Show Me..<a href="#" rel="toggle[layerList]" data-openimage="http://publicworks.snoco.org/RdClosures/images/chevron_up.png" data-closedimage="http://publicworks.snoco.org/RdClosures/images/chevron_down.png"><img id="layerImg" src="http://publicworks.snoco.org/RdClosures/images/chevron_down.png" align="right" style="margin-top:5px"/></a></SPAN></h4> <hr> <div id="layerList"> <table style="font-size:95%;margin-left:15px;"> <tbody> <tr> <td ALIGN="RIGHT"><b>Emergency Road Closures</b></td> <td><input id="closureBtn" type="checkbox" onclick="showRoadClosures()" name="roadClosures"></td> </tr> <tr> <td ALIGN="RIGHT"><b>Traffic Cameras</b></td> <td><input id="camBtn" type="checkbox" onclick="showWsdotWebcams()" name="trafficCams"></td> </tr> <tr> <td ALIGN="RIGHT"><b>Snow Removal Routes</b></td> <td><input id="removalBtn" type="checkbox" onclick="showSnowRemovalRoutes()" name="SnowRemoval"></td> </tr> <tr> <td ALIGN="RIGHT"><b>Anti-Icing Treatment Routes</b></td> <td><input id="icingBtn" type="checkbox" onclick="showAntiIcingRoutes()" name="AntiIcing"></td> </tr> <tr> <td ALIGN="RIGHT"><b>WSDOT Travel Alerts</b></td> <td><input id="wsdotBtn" type="checkbox" onclick="showWsdotAlerts()" name="wsdotAlerts"></td> </tr> <tr> <td ALIGN="RIGHT"><b>Stream Gages</b></td> <td><input id="gageBtn" type="checkbox" name="streamGages"></td> </tr> </tbody> </table> </div> </section> <!-- /.widget --> <section class="widget clearfix"> <h4 class="widgettitle"><SPAN>Map Legend<a href="#" rel="toggle[mapLegend]" data-openimage="http://publicworks.snoco.org/RdClosures/images/chevron_up.png" data-closedimage="http://publicworks.snoco.org/RdClosures/images/chevron_down.png"><img id="legendImg" src="http://publicworks.snoco.org/RdClosures/images/chevron_down.png" align="right" style="margin-top:5px"/></a></SPAN></h4> <hr> <div id="mapLegend"> <table style="font-size:80%;margin-left:15px;"> <tbody> <tr> <td ALIGN="CENTER"><img src="http://publicworks.snoco.org/RdClosures/roadClosed.png" width="24" height="24" style="height:24px;width:24px"></td> <td ALIGN="LEFT"><b>Closed Road Section</b></td> </tr> <tr> <td ALIGN="CENTER"><img src="http://publicworks.snoco.org/RdClosures/roadOpen.png" width="24" height="24" style="height:24px;width:24px"></td> <td ALIGN="LEFT"><b>Open Road Section</b></td> </tr> <tr> <td ALIGN="CENTER"><img src="http://publicworks.snoco.org/RdClosures/RdAdvisory.png" width="24" height="24" style="height:24px;width:24px"></td> <td ALIGN="LEFT"><b>Road Advisory</b></td> </tr> <tr> <td ALIGN="CENTER"><img src="http://maps.google.com/mapfiles/kml/shapes/webcam.png" width="24" height="24" style="height:24px;width:24px"></td> <td ALIGN="LEFT"><b>Traffic Camera Location</b></td> </tr> <tr> <td ALIGN="CENTER"><img src="http://publicworks.snoco.org/SWM/riverGageIcon01.png" width="24" height="24" style="height:24px;width:24px"></td> <td ALIGN="LEFT"><b>County Stream Gage</b></td> </tr> <tr> <td ALIGN="CENTER"><img src="http://publicworks.snoco.org/SWM/riverGageIcon02.png" width="24" height="24" style="height:24px;width:24px"></td> <td ALIGN="LEFT"><b>USGS Stream Gage</b></td> </tr> <tr> <td ALIGN="LEFT" COLSPAN="2" style="font-weight:bold;font-size:115%">Snow Removal/Anti-Icing:</td> </tr> <tr> <td ALIGN="CENTER"><hr style="width:20px;height:10px; color: #FF0000; background-color: #FF0000"></td> <td ALIGN="LEFT"><b>Priority Route</b></td> </tr> <tr> <td ALIGN="CENTER"><hr style="width:20px;height:10px;color: #FFFF00; background-color: #FFFF00"></td> <td ALIGN="LEFT"><b>Secondary Route</b></td> </tr> <tr> <td ALIGN="CENTER"><hr style="width:20px;height:10px;color: #33CCFF; background-color: #33CCFF"></td> <td ALIGN="LEFT"><b>Tertiary Route</b></td> </tr> </tbody> </table> </div> </section> <!-- /.widget --> </aside> <!-- /#sidebar --> <footer id="footer"> <table cellSpacing="0" cellPadding="0" width="100%" border="0"> <tr> <td class="SWMDAT_header1">Snohomish County Road Information</td></tr> <tr> <td align="left" valign="top"><div class="SWMDAT_text_pad"> <ul> <li><a href="http://www1.co.snohomish.wa.us/Departments/Public_Works/Services/Roads/roadsupdate.htm">Road Construction Updates</a></li> <li><a href="http://www1.co.snohomish.wa.us/Departments/Public_Works/Divisions/Road_Maint/Road_Closures.htm">Long Term, Weight-Restricted, and Seasonal Road Closures</a></li> <li><a href="http://www.co.snohomish.wa.us/PWApp/SWM/floodwarn/index.html">Real-Time Flood Warning Information</a></li> </ul> </div></td></tr> <tr> <td align="left" valign="top"><div class="SWMDAT_text_pad"> <b>DISCLAIMER:</b> This data is accurate at the time entered and does not necessarily represent current "up to the minute" conditions. Conditions can change rapidly during storms and flooding. Drivers are encouraged to exercise extreme caution and allow extra time. Road flooding or closures may occur between the time you view this data and you arrive at a particular road. Never drive through a road with standing water. Do not get out of your vehicle and approach downed trees or power lines. </div></td></tr> </table> </footer> <!-- /#footer --> </div> <!-- /#pagewrap --> </body> </html>[/HTML]
... View more
09-26-2013
11:01 AM
|
0
|
0
|
4394
|
|
POST
|
Here's the HTML header and part of the HTML body: [HTML]<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta content="Snohomish County Road Maintenance" name="Author"> <meta id="MetaKeywords" content="snohomish county road map closure closures conditions puget sound information" name="Keywords"> <meta id="MetaDescription" content="Snohomish County Emergency Road Closures Map. View road closures in Snohomish County on a map." name="Description"> <meta content="County" name="govType"> <!-- disable iPhone inital scale --> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Snohomish County Emergency Road Closures</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <!-- Pre-Internet Explorer Version 9 browsers require some hacks to display CSS3 content --> <!-- correctly so detect for that and load a seperate CSS style sheet if discovered. --> <!--[if lt IE 9]> <script type="text/javascript" src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <!--<![endif]--> <!--[if lt IE 9]> <link href="css/style-preIE9.css" rel="stylesheet" type="text/css"> <!--<![endif]--> <!--[if lt IE 9]> <script type="text/javascript" src="js/modernizr.js"></script> <!--<![endif]--> <!-- Load the normal CSS style file for non IE browsers and IE version 9 and above --> <!--[if gt IE 8]> <link href="css/style.css" rel="stylesheet" type="text/css"> <!--<![endif]--> <link href="css/style.css" rel="stylesheet" type="text/css"> <!-- Main CSS and Media Queries CSS --> <link href="css/media-queries.css" rel="stylesheet" type="text/css"> <link rel="stylesheet" type="text/css" media="screen" href="http://www.devslide.com/public/labs/browser-detection/browser-detection.css" /> <script type="text/javascript" src="js/browser-detection.js"></script> <link href="http://www.co.snohomish.wa.us/PWApp/SWM/toolbar/swm_datatoolbar.css" type="text/css" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/js/dojo/dijit/themes/claro/claro.css"> <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/js/esri/dijit/css/Popup.css"> <link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/js/esri/css/esri.css" /> <link rel="stylesheet" type="text/css" href="css/Grid.css"> <script type="text/javascript"> var dojoConfig = { parseOnLoad: true }; </script> <script src="http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/"></script> <script type="text/javascript" src="js/moment_min.js"></script> <script type="text/javascript" src="js/animatedcollapse.js"> /*********************************************** * Animated Collapsible DIV v2.4- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more ***********************************************/ </script> <script type="text/javascript" src="js/wsdotImportFunction.js"></script> <script type="text/javascript" src="js/mapFunctions.js"></script> <script type="text/javascript"> animatedcollapse.addDiv('layerList', 'fade=1,hide=1'); animatedcollapse.addDiv('mapLegend', 'fade=1,hide=1'); animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV is expanded/contracted //$: Access to jQuery //divobj: DOM reference to DIV being expanded/ collapsed. Use "divobj.id" to get its ID //state: "block" or "none", depending on state }; animatedcollapse.init(); dojo.ready(initMap); </script> </head> <body class="claro"> <div id="pagewrap"> <header id="header"> <!-- ------------ START PAGE DIV AND TABLE FRAME ------------ --> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="SWMDAT_page_frame" align="center" border="0"> <!-- --------------- START SNOCO SWM BANNER ----------------- --> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td valign="top" colspan="2"> <img src="http://www.co.snohomish.wa.us/PWApp/SWM/toolbar/banner_homepage_02.gif" width="100%" alt="black_wave.gif" /> </td> </tr> <tr> <td valign="top" align="left"> <img src="http://www.co.snohomish.wa.us/PWApp/SWM/toolbar/appl_banner_w_logline_SnoCoTitleOnly.gif" alt="Snohomish County Online Government Information & Services" /> </td> <td valign="top" align="center" width="538"> <span id="SWMDAT_snocolinks"> <a href="http://www1.co.snohomish.wa.us/">Snohomish County</a> > <a href="http://www1.co.snohomish.wa.us/Departments/Public_Works/">Public Works</a> > <a href="http://www1.co.snohomish.wa.us/Departments/Public_Works/Services/Roads/">Roads</a></span> <br /> <div id="SWMDAT_title">Emergency Road Closure Information</div> Updated every 15 minutes </td> </tr> </table> <!-- ---------------- END SNOCO SWM BANNER ------------------ --> <!-- --------------- START SWM APPS TOOL BAR ---------------- --> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="SWMDAT_secondbar" align="left" style="width: 250px"> <strong>Report Changes to: 425-388-7500</strong> </td> <td class="SWMDAT_secondbar" align="right"> <a href="mailto:[email protected]">Contact Road Maintenance</a> </td> </tr> </table> <!-- ---------------- END SWM APPS TOOL BAR ----------------- --> </td> </tr> </table> </header> <!-- /#header -->[/HTML]
... View more
09-26-2013
11:00 AM
|
0
|
0
|
4394
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a week ago | |
| 2 | a week ago | |
| 2 | 05-21-2026 01:51 PM | |
| 1 | 03-12-2026 01:43 PM | |
| 1 | 03-12-2026 08:41 AM |