|
POST
|
As far as the blurring issue to which Renee Maxwell referenced when changing the map zoom level programatically, I was seeing some strange behavior there as well. I was able to resolve this issue by changing my navigationMode in my map object from 'css-transforms' to 'classic'.
... View more
01-15-2013
10:10 AM
|
0
|
0
|
452
|
|
POST
|
Thanks Kelly! Very helpful - I hadn't known about the autoNavigate switch. I guess the default is to true though. Does that also apply to the "World Geocoding Service" too if I'm using both, or is that handled separately? However, since I want to zoom as well as pan, I have tried multiple ways, including centerandZoom, centerAt then setZoom or setLevel, etc. etc. However, each time it fires, the map zooms in, but the tiles don't update (as if it's zooming in too fast). The tiles remain blurry, and my feature layer doesn't redraw. Plus, if I try to manually zoom (scroll wheel or map navigation), the map just zooms out to the previous country level extent from which I generally start. I've worked around this to some degree of success using setTimeout to zoom (after auto pan) and then to refresh the feature layer, but it doesn't always work. Maybe there is something more specific with my map going on since this isn't a common problem. UPDATE - I just tried changing my map navigation mode from "css-transforms" to "classic" and that seemed to fix my problem, even though I was testing in Chrome and FF. However, I have noticed some other interesting behavior: My map starts at CONUS, the country wide view. If I search for, say LAX, the map pans and zooms using my custom handler, the tiles update (and look fine), the feature layer works too (it really did seem to be a navigationMode problem). However, while zoomed into LAX, if I then use the locator service and search for DCA, the map pans to DCA (no zooming since finding LAX already set the zoom level to 18 per your code example), but takes about 10 seconds to update the tiles. Looking at the NET calls in Firebug, it seems as if it is making calls to every tile between LAX and DCA at that zoom level - necessarily way too many. Is that expected behavior? Thanks, and sorry for the long post... Jay
... View more
01-15-2013
10:01 AM
|
0
|
0
|
1820
|
|
POST
|
I am using v3.3 and the geocoder dijit. I've added a custom address locator, and attached a handler: dojo.connect(geocoder, "onSelect", doSomething); function doSomething(results){ console.log(results); map.setExtent(results.extent); map.setZoom(12); } However, when the map zooms, the tiles are blurry and the feature layer isn't drawn. Furthermore, if I try to manually zoom (either using my mouse scroll wheel or the zoom controls on the map itself), the map returns to the previous extent instead of the next zoom level - no matter if I try to zoom in OR out. Is anyone else experiencing this problem? Also, in the geocoder dijit, does specifying the "onSelect" handler override the default behavior for using the default Esri World geocoding service, or is that completely separate? When I geocode using the Esri World Geocoder Service, the zooming and panning seems to work find when a result is selected. Thanks! Jay
... View more
01-15-2013
05:29 AM
|
0
|
5
|
3522
|
|
POST
|
I instantiated a geocoder in my app using the new geocoder dijit (I am very excited about this). However, it doesn't work using my custom geocoder (ArcGIS for Server 10.1 SP1). //geocoder digit var geocodersArray = [{url: "http://gis.domain.com:6080/arcgis/rest/services/EON/AirportsGeocode/GeocodeServer", name:"Landing Facility Geocoder"}]; var geocoder = new esri.dijit.Geocoder({ map: map, autoComplete: true, maxLocations:10, geocoders: geocodersArray, geocoderMenu: false, arcgisGeocoder: false },"search"); geocoder.startup(); } As far as I can tell (from Firebug) the request the geocoder dijit sends is: "http://gis.domain.com:6080/arcgis/rest/services/EON/AirportsGeocode/GeocodeServer/findAddressCandidates?singleLine=Los Angeles International Airport&f=json&outSR=%7B%22wkid%22%3A102100%7D" plus a callback. No results are returned. If I run the same query directly from the REST endpoint on my server, I get "http://gis.domain.com:6080/arcgis/rest/services/EON/AirportsGeocode/GeocodeServer/findAddressCandidates?SingleKey=Los Angeles International Airport&Single+Line+Input=&outFields=&outSR=&searchExtent=&f=pjson", and results are returned. The difference seems to be that the geocoder dijit is using "singleLine" as the search parameter name, while ArcGIS for Server is using "SingleKey" or "Single Line Input" for the search parameter name. I tried replacing "SingleKey" with "singleLine" in my server query, and, as expected, no results are returned. So is this a bug in the geocoder dijit or am I missing something? Thanks, Jay
... View more
01-11-2013
05:47 AM
|
0
|
7
|
2467
|
|
POST
|
Using clip, MakeFeatureLayer, LayerToKML worked perfectly for this, in case anyone was wondering....
... View more
12-28-2012
11:08 AM
|
0
|
0
|
4712
|
|
POST
|
This this bug does affect the JS API FeatureLayer? Is there any workaround currently, or prediction of when it might be fixed? I had just recently posted this to the forums. Thanks! Jay
... View more
12-28-2012
10:20 AM
|
0
|
0
|
805
|
|
POST
|
I'm running ArcGIS for Server 10.1 SP1, and have recently been made aware of the bug that makes alternate get requests fail and the workarounds documented in this post and this one. Is this bug affecting the JS API when using a feature layer pointing to a REST service? For instance, I believe the FeatureLayer class is configured to query/redraw on map zoom. So when I zoom the map, the graphics disappear. And then when I zoom again, they reappear. This also occurs if I use a setInterval on a layer to auto-refresh on an interval. I'm hoping this is related to the bug and not caused by something else (but I'm not sure how the FeatureLayer class works, which is why I'm asking here). If it is related, is there a workaround. If no workaround, any progress on a hotfix, since this seems pretty serious.... Thanks, Jay
... View more
12-28-2012
08:02 AM
|
0
|
3
|
2179
|
|
POST
|
I spoke too soon - this was an easy fix by just not hardcoding the scratch workspace in the script! It works now...
... View more
12-27-2012
04:39 AM
|
0
|
0
|
1548
|
|
POST
|
I have a python script which when run in ArcMap works perfectly.... When creating the script tool in ArcMap, "Always run in foreground" is unchecked, "store relative path names" is checked, and "run python script in process" is checked. However, when I publish this script to an ArcGIS for Server 10.1 SP1 installation, executing the GPService fails with the following error from the logs: Traceback (most recent call last): File "E:\arcgisserver\directories\arcgissystem\arcgisinput\EON\AirportsExportPython.GPServer\extracted\v101\toolboxes\AirportsExport.py", line 38, in <module> outputFclass = arcpy.env.scratchWorkspace+"\\clipped.shp" File "c:\program files\arcgis\server\arcpy\arcpy\geoprocessing\_base.py", line 525, in get_ return self[env] File "c:\program files\arcgis\server\arcpy\arcpy\geoprocessing\_base.py", line 575, in __getitem__ return convertArcObjectToPythonObject(getattr(self._gp, item)) AttributeError: Object: Tool or environment <scratchWorkspace> not found Here is the script: import arcpy, csv, os arcpy.env.overwriteOutput = True # Script arguments Selecting_Geometry = arcpy.GetParameterAsText(0) if Selecting_Geometry == '#' or not Selecting_Geometry: Selecting_Geometry = r"E:\EON\data\templates.gdb\polygonTemplate" OutputType = arcpy.GetParameterAsText(1) if OutputType == '#' or not OutputType: OutputType = "kmz" # Local variables: arcpy.env.scratchWorkspace = r"E:\EON\temp" outputFclass = arcpy.env.scratchWorkspace+"\\clipped.shp" AirportsLayer = r"E:\EON\layers\LandingFacilitiesOrganized.lyr" Airports = r"E:\EON\data\FAA.gdb\airports" exportLayer = arcpy.env.scratchWorkspace+"\\exportLayer.lyr" # Process: Clip arcpy.Clip_analysis(Airports, Selecting_Geometry, outputFclass, "") OutputFile = arcpy.env.scratchWorkspace+"\\airportsExportResult.kmz" earthLayer = arcpy.mapping.Layer(AirportsLayer) for layer in earthLayer: if layer.isGroupLayer: continue else: layer.replaceDataSource(arcpy.env.scratchWorkspace, "SHAPEFILE_WORKSPACE", "clipped") earthLayer.saveACopy(exportLayer) arcpy.LayerToKML_conversion(exportLayer, OutputFile, "1", "false", exportLayer, "1024", "96", "CLAMPED_TO_GROUND") arcpy.SetParameterAsText(2,OutputFile) In short, this script clips a feature set to an input polygon, applies a complicated layer file to it, then exports to kmz. I got this geoprocessing tool working correctly earlier, but was using arcpy.env.workspace instead of arcpy.env.scratchWorkspace, so the process wasn't referencing the clipped file in a jobs directory, but instead in the hardcoded workspace directory in the script. Anyway, after some research I saw that I have to use scratchWorkspace for all intermediate data. But this broke the geoprocessing service. Any assistance would be greatly appreciated! Thanks, Jay
... View more
12-26-2012
11:02 AM
|
0
|
1
|
3525
|
|
POST
|
I didn't see anything about multi-named certificates in that post. Did I miss something there? Would I just separate the host names by commas?
... View more
12-23-2012
03:49 PM
|
0
|
0
|
979
|
|
POST
|
Hi - a couple questions regarding SSL certs for ArcGIS for Server 10.1 1. Does ArcGIS for Server 10.1 support CA-signed UCC SSL certs (multiple domain certs)? 2. If so, how would we generate the certificate for the CA to sign using the ArcGIS for Sever Administration utility? Can you specify two names in the "common name" field? 3. What is the recommended method for renewing our certificates when they are about to expire? Do we have to generate another cert from the admin utility and submit to the CA to sign, or just update the root cert in the server store? Thanks for your assistance! Jay
... View more
12-18-2012
07:01 AM
|
0
|
3
|
1096
|
|
POST
|
Thanks all - I got it working. The wildcard cert worked by creating a cert from the admin utility specifying the actual hostname, then submitting that to our CA and creating a duplicate using our wildcard cert order. Jay Jay, Are you using the webadaptor to expose your GIS services? If so, you should just be able to import your certificate at the web server level, enabling SSL there (if not already which i'm guessing it already is), then secure your GIS server with SSL using the self-signed certificate as shown in the links above.
... View more
12-18-2012
06:50 AM
|
0
|
0
|
3415
|
|
POST
|
I have a relatively new installation of ArcGIS for Server 10.1. My IT department has provided a wildcard SSL cert from digicert to use on the server. However, the instructions to install a CA-signed certificate on the server are different: http://resources.arcgis.com/en/help/main/10.1/index.html#/Enabling_SSL_using_a_new_CA_signed_certificate/0154000005wr000000/ The instructs say I must generate a cert using the admin interface, then get our CA to sign it. Is that true? Can I not just install a wildcard SSL cert on the server? Jay
... View more
12-10-2012
04:49 AM
|
1
|
3
|
7441
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 02-23-2026 11:00 AM | |
| 1 | 07-08-2025 11:33 AM | |
| 1 | 11-07-2023 08:32 AM | |
| 2 | 10-01-2025 06:52 AM | |
| 5 | 09-08-2025 07:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|