POST
|
I just published a map service where the data was auto copied to the server. How do I find the folder to which it was copied and designate that folder as a dynamic workspace?
... View more
09-01-2016
11:25 AM
|
0
|
0
|
1060
|
POST
|
UpdateLayer Does exactly what I want. It uses the lyr file to create 4 quantile classes and the desired symbols. reclassify Also does what I want. It bases the breaks on the data for that species but in doing so it reverts to the standard symbols. How do I get both the correct breaks and the desired symbols. [ATTACH=CONFIG]17807[/ATTACH][ATTACH=CONFIG]17808[/ATTACH][ATTACH=CONFIG]17809[/ATTACH]
... View more
09-19-2012
10:08 AM
|
0
|
0
|
503
|
POST
|
I would like to use UpdateLayer to add the symbol styles but also use reclassify to set each layer to quantiles based on its data. UpdateLayers clobbers the classifications and reclassify clobbers the symbols. Is there something that I am missing? arcpy.mapping.UpdateLayer(df,lyr,srclyr) lyr.symbology.reclassify() Thanks, agreig
... View more
09-18-2012
08:41 AM
|
0
|
5
|
3373
|
POST
|
Steve, Thanks you put me on the right track. I had been convinced that the problem was with geometry.contains statement whereas the query return was faulty. The query itself was fine. The solution lay in changing a parameter during the service creation. I increased the limit on the number of records returned and problem solved. Thanks for your help, agreig
... View more
06-09-2011
09:42 AM
|
0
|
0
|
195
|
POST
|
My code allows a user to draw a polygon to select some points. Initially everything works fine. However if I move the time slider to a different year and draw a polygon only some or none of the enclosed points are selected. Here is some of the relevant code. Thanks. function initToolbar(map) { tb = new esri.toolbars.Draw(globals.map); dojo.connect(tb, "onDrawEnd", addGraphic); } function addGraphic(poly) { var symbol = tb.fillSymbol; globals.map.graphics.add(new esri.Graphic(poly, symbol)); var queryTask = new esri.tasks.QueryTask("http://..../MapServer/0"); var query = new esri.tasks.Query(); query.where = "SPECIES_CODE = " + globals.speciesID +" and YEAR = " + globals.year; query.outSpatialReference = {wkid:102100}; query.timeExtent = globals.map.timeExtent; query.returnGeometry = true; query.outFields = ["YEAR","SPECIES_CODE"]; queryTask.execute(query, addPointsToMap); } //add points to map and set their symbology function addPointsToMap(featureSet) { var i = globals.map.graphics.graphics.length - 1; dojo.forEach(featureSet.features,function(feature){ if (globals.map.graphics.graphics.geometry.contains(feature.geometry)) { globals.map.graphics.add(feature.setSymbol(new esri.symbol.SimpleMarkerSymbol().setColor(new dojo.Color([255,0,0])))); } }); } function timeSliderChanged(timeExtent) { globals.year = timeExtent.endTime.getUTCFullYear(); globals.map.graphics.clear() showMapInfo(); }
... View more
06-08-2011
01:58 PM
|
0
|
2
|
683
|
POST
|
I figured out the solution. I needed a separate id for the div in addition to the id for the input.
... View more
02-01-2011
12:46 PM
|
0
|
0
|
137
|
POST
|
I am using a check box to control the visibility of layer 2. The following code works but does not place the check box where I want on the map. html file <div <input id='laya'></div> js file var laya = new dijit.form.CheckBox({ name: "laya", value: 2, checked: false, onChange: function(b) { visible = [0,1,laya.attr('value'),3] globals.RACELayerDynamic.setVisibleLayers(visible); } ------------------------------ This second piece of code places the check box where I want but I was unable to create functionality in the js file. html file <div <input type='checkbox' id='laya'></div> css file #laya{ position:absolute; right:10px; top:75px; } This is the first time I have used the check box so I suspect it is something simple I am not understanding. Thanks, Angie
... View more
02-01-2011
08:16 AM
|
0
|
1
|
535
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|