POST
|
The problem was the minimum resolution for the BING map was much lower than the ESRI. Everything else lined up fine. Now my question is, is it possible to have both BING and ESRI basemaps on the same application and be able to switch between them? I have two esri:Map nodes, one for BING and one for ESRI. It seems that whichever is placed before the other is the one that will be loaded. I have a toolbar which can be used to switch between the two, but it doesn't seem to be working. Here is the code: private void RadioButton_Click(object sender, RoutedEventArgs e) { RadioButton layerObject = sender as RadioButton; if (layerObject.GroupName == "ESRI") { //_candidateGraphicsLayer1 = null; //_candidateGraphicsLayer = MyMap.Layers["CandidateGraphicsLayer"] as GraphicsLayer; //_candidateGraphicsLayer.RendererTakesPrecedence.Equals(false); ArcGISTiledMapServiceLayer arcgisLayer = MyMap.Layers["StreetMapLayer"] as ArcGISTiledMapServiceLayer; arcgisLayer.Url = layerObject.Tag.ToString(); } else if (layerObject.GroupName == "BING") { //_candidateGraphicsLayer = null; //_candidateGraphicsLayer1 = MyMap1.Layers["CandidateGraphicsLayer1"] as GraphicsLayer; //_candidateGraphicsLayer1.RendererTakesPrecedence.Equals(false); ESRI.ArcGIS.Client.Bing.TileLayer tileLayer = MyMap1.Layers["BingLayer"] as TileLayer; string layerTypeTag = (string)((RadioButton)sender).Tag; TileLayer.LayerType newLayerType = (TileLayer.LayerType)System.Enum.Parse(typeof(TileLayer.LayerType), layerTypeTag, true); tileLayer.LayerStyle = newLayerType; } }
... View more
09-15-2011
11:07 AM
|
0
|
0
|
224
|
POST
|
Hi, I have a rather simple scenario in which I am having an especially difficult time resolving. I have a grid, I am creating a graphics layer, adding a symbol to that layer, and then adding a dynamic service layer to the grid. It seems the dynamic service layer is over top of the graphic layer. How do I reverse this?
... View more
09-02-2011
02:14 PM
|
0
|
1
|
338
|
POST
|
Hi, Currently we have a silverlight application that is using ESRI base maps. Everything works as it should. We were wondering how easy it would be to switch to use Bing base maps. Switching the code was fairly painless, but now the zoom feature doesn't work exactly right when using the Bing base maps. When finding an address, it is configured to zoom in on the result. With the Bing maps, however, it seems to zoom in way too far. Is there a required adjustment that is needed to be made to the zoom function in order for this to work properly?
... View more
08-26-2011
08:30 AM
|
0
|
3
|
633
|
POST
|
Jay, The problem isn't me wanting to filter results that are returned from the server after the find. I am already doing that. The problem that I am having is that the server will only provide me with candidates that have a score higher than what the minimum allowable score is set to. Here is my problem: 1) Go to the Geocode Server your link points to. 2) Type in Civic Sq, Carmel, IN. 3) You won't get any results. I was thinking that if there was a way to lower the minimum score and thus return more results, I may have found a way to use that same server and be able to enter addresses in without numbers. Maybe I just need to use Bing's Geocoding Service, but if there is another way to use only ESRI I would prefer that.
... View more
08-18-2011
06:20 AM
|
0
|
0
|
267
|
POST
|
Thanks for the reply. Great song and great album, if only chose that name with the band in mind... haha. The problem, is, that this isn't my geocode server. Is one of the standard ESRI geocoders. So there is no way for me to change it on the server itself. I was wondering if there was a way to programatically override the default setting in silverlight.
... View more
08-17-2011
11:07 AM
|
0
|
0
|
267
|
POST
|
Hi, The default minimum candidate score is too high for the Geocode Server I am using. I want to lower this. This seems like it should be easy, how can I accomplish this? Thanks
... View more
08-17-2011
08:34 AM
|
0
|
5
|
909
|
POST
|
Hi, I am using the following the create a callback to an error handler function whenever a query is run on an invalid server. dojo.connect(queryTask, "onError", errorHandler); This works fine, the only problem is the default timeout must be set to a minute or so. I am using it in an application where the errorHandler function will present the user with an alert, and then move on to the next task. Due to the nature of JavaScript they can't proceed until they accept the alert, which pops a minute after their initial call has been made. Any advice on how to adjust the timeout value? Thanks
... View more
08-04-2011
09:56 AM
|
0
|
1
|
938
|
POST
|
Hi, I am doing a simple locate and was wondering how to show an error (with javascript) whenever the server is unreachable. Debugging in chrome with a false URL returns the error: GET http://gis.hamiltoncounty.in.gov/ArcGIS/rest/services/UberLocator_10/GeocodeServer32432432/findAddressCandidates?SingleLine=1%20Civic%20Sq&f=json&outFields=Loc_name&callback=dojo.io.script.jsonp_dojoIoScript1._jsonpCallback 404 (Not Found) It has been difficult to isolate where this error is being generated from. Any help would be appreciated. Thanks
... View more
07-12-2011
07:56 AM
|
0
|
0
|
358
|
POST
|
Thanks guys I appreciate your help, it is running now. Apparently I needed to specify the CITY attribute as well, even though on the server itself it is listed as optional (and you don't need it to run the find directly on the geocodeServer).
... View more
07-07-2011
12:44 PM
|
0
|
0
|
370
|
POST
|
Hi, I am trying to geocode an address using the locate task, and I keep getting the error "Address or Intersection must be specified" As far as I can tell, I am using the correct model for the addressToLocations() functions. Here is what I have: function init() { locator = new esri.tasks.Locator("http://gis.hamiltoncounty.in.gov/ArcGIS/rest/services/Addresses/GeocodeServer"); dojo.connect(locator, "onAddressToLocationsComplete"); function locate() { var add = dojo.byId("address").value.split(","); var address = { Street : add[0], City : add[1], State : add[2], Zip: add[3] }; locator.addressToLocations(address, ["Loc_name"]); } dojo.addOnLoad(init); </SCRIPT> </head> <body class="claro"> Find Address by Location: <input type="text" id="address" size="40" value="1 Civic Sq, Carmel, IN, 46032" /> <i>(Street, City, State, Zip)</i> <input type="button" value="Locate" onclick="locate()" /> <div id="tbl"></div> </body> </html>
... View more
07-06-2011
07:40 AM
|
0
|
4
|
725
|
POST
|
Hi guys, I am very new to ArcGIS server (2 days!). I am trying to create a simple query based on the geometry (I am just passing coordinates) passed to a MapServer. I am just trying to return tabular results and I am not concerned about using a map. I keep running into this error message: [52 Uncaught TypeError: Cannot read property 'wkid' of undefined] When you run the query straight from the browser, you don't have to define this parameter. Here is the html: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=7" /> <title>Query State Info without Map</title> <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/1.6/js/dojo/dijit/themes/tundra/tundra.css "> <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/? v=1.6"></script> <script type="text/javascript" language="Javascript"> dojo.require("esri.tasks.query"); var queryTask, query; var sourcewkid = new esri.SpatialReference({"wkid":2965}); function init() { //build query queryTask = new esri.tasks.QueryTask("http://gis.hamiltoncounty.in.gov/ArcGIS/rest/services/Parcel-Lines/MapServer/0"); dojo.connect(queryTask, "onComplete", showResults); //build query filter query = new esri.tasks.Query(); query.returnGeometry = true; query.geometry = (geometry, sourcewkid); query.geometryType = "esriGeometryPoint"; query.spatialRel = "esriSpatialRelIntersects"; query.outSpatialReference = 2965; query.inSpatialReference = 2965; query.outFields =["OBJECTID", "FMTPRCLNO", "DEEDEDOWNR", "LOCADDRESS", "LOCHSENUMR", "LOCCITY", "LOCZIP", "SUBDIVNAME", "SUBDIVSEC", "CONDOUNIT", "PROPCLASS", "PROPUSE", "TAXDISTNAM", "PARCELNO", "COMMON_ARE", "SUBDIV_COD", "STPRCLNO", "SHAPE"]; } function execute(geometry) { debugger; //execute query queryTask.execute(query,showResults); } function showResults(results) { var s = ""; for (var i=0, il=results.features.length; i<il; i++) { var featureAttributes = results.features.attributes; for (att in featureAttributes) { s = s + "<b>" + att + ":</b> " + featureAttributes[att] + "<br />"; } } dojo.byId("info").innerHTML = s; } dojo.addOnLoad(init); </script> </head> <body> Coordinate : <input type="text" id="geometry" value="198538.360028002, 1718163.919889" /> <input type="button" value="Get Details" onclick="execute(dojo.byId('geometry').value);" /> <br /> <br /> <div id="info" style="padding:5px; margin:5px; background-color:#eee;"> </div> </body> </html> Thanks, Dave
... View more
06-24-2011
02:02 PM
|
0
|
1
|
4322
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|