|
POST
|
We have an application that loads a publicly available webmap from ArcGIS Online. Every once in a while, the Identity Manager pops up and challenges us to access the application. When this happens, usually there's something wrong with our account. But that's beside the point. Because the application won't be used to load private data, or data behind token security, I need to intercept the 'dialog-create' event from the IdentityManager, and automatically close the dialog to trigger the error loading event. How do I access the IdentityManager when I call arcgisUtils.createMap?
... View more
05-15-2014
08:54 AM
|
0
|
7
|
7691
|
|
POST
|
If it's any help, using Shift+mouse drag any time before calling navToolbar.activate shows the graphic on zoom-in. Once the navToolbar.activate is called, even Shift + mouse drag doesn't show the graphic.
... View more
01-15-2014
05:36 AM
|
0
|
0
|
2743
|
|
POST
|
If you're interested in a workaround until things are fixed, add the following in the head portion of your html document. [HTML]<meta http-equiv="X-UA-Compatible" content="IE=7, IE=9, IE=10"/>[/HTML] This will force IE11 to render the application as IE10.
... View more
11-27-2013
07:51 AM
|
0
|
0
|
1433
|
|
POST
|
I noticed what appears to be a bug with Internet Explorer 11 and the current version (3.7) of the JavaScript API. When I'm zooming in with the scroll wheel, the map zooms in. When I'm zooming out with the scroll wheel, the map zooms in. I've tested it on the "Create a map" example, and I get the same strange behavior. Until I can find where to report bugs, I thought I'd share my findings here.
... View more
11-27-2013
05:07 AM
|
0
|
5
|
6432
|
|
POST
|
I've seen it too. It seems to only occur with 3.7 compact. The "out of stack space" error is thrown by IE when your code has hit the browser's recursion limit. It seems to be something specific to the code in the compact edition. I haven't seen it in my applications that are running v. 3.7 regular. ** edit ** nevermind, I saw it in 3.7 regular as well. Look for code that could be causing heavy recursion. If you're able to step through code (including ESRI's), the error seems to be happening on line 111.
... View more
11-22-2013
07:52 AM
|
0
|
0
|
1893
|
|
POST
|
I'm trying to configure a popup on a polygon to add a link to another site. The other site's url requires latitude and longitude in the query parameters to show the data in that location. How can I display the popup's latitude or longitude in the popup window, if those coordinates are not fields in the data?
... View more
09-25-2013
09:34 AM
|
0
|
1
|
1073
|
|
POST
|
I'm working on a mobile tablet application that spends most of the time disconnected from the internet. When the application is connected to the internet, it's supposed to query and add data to a FeatureService. Is there a way to query/edit data in a FeatureLayer without adding the layer to a map? I'm using the 10.1 WPF SDK, and the client will not be upgrading to 10.2 servers for a while, so I can't use disconnected editing.
... View more
09-10-2013
10:48 AM
|
0
|
2
|
2334
|
|
POST
|
Nevermind. I forgot to check the service properties and set them to show the new level of detail. Everything works now.
... View more
08-05-2013
11:45 AM
|
1
|
0
|
743
|
|
POST
|
For our tiled map services, we've started adding an extra zoomed out level of detail, so that the tiled maps can be viewed on smaller screens. We ran the tiled map service through the Manage Cache Server Cache Scales tool in ArcCatalog to add the new level of detail. But when we run the Manage Map Server Cache Tiles tool, it fails to pick up the new level. We've run Manage Map Server Cache Status to help the service discover it's newest level. However, when we run Manage Map Server Cache Tiles again, it still shows the old list of tiled layers.
... View more
08-05-2013
05:51 AM
|
0
|
1
|
1016
|
|
POST
|
After mucking around, I found a way to replace the scale value passed from the web application before it is used to update the .mxd file. Here's the relevant snippets of the script, based on the High Quality Map Printing Tutorial using arcpy.mapping # Imports import arcpy import sys import os import uuid import ast # used to work with user defined extent import json # used to work with the web map json string # Snip... # Input WebMap json Web_Map_as_JSON = arcpy.GetParameterAsText(0) #Snip (insert other parameters) #Extra parameter - Extent Extent = ast.literal_eval(arcpy.GetParameterAsText(5)) _Extent = arcpy.Extent(Extent.get("xmin"), Extent.get("ymin"), Extent.get("xmax"), Extent.get("ymax")) #Extra parameter - Scale Scale = float(arcpy.GetParameterAsText(6)) # modify Web_Map_as_JSON so that the web map scale matches the scale provided. Web_Map_Dict = json.loads(Web_Map_as_JSON) Web_Map_Dict["mapOptions"]["scale"] = Scale Web_Map_as_JSON = json.dumps(Web_Map_Dict) # Snip (getting file location of templateMxd) # Convert the WebMap to a map document result = arcpy.mapping.ConvertWebMapToMapDocument(Web_Map_as_JSON, templateMxd) mxd = result.mapDocument # Snip (do other things to the map as needed) # Reference the data frame that contains the webmap # Note: ConvertWebMapToMapDocument renames the active dataframe in the template_mxd to "Webmap" df = arcpy.mapping.ListDataFrames(mxd, 'Webmap')[0] # Update the extent of the map to match the extent passed through the service. df.panToExtent(_Extent) # Snip (Do whatever else you need to the map, before serving it out.)
... View more
06-19-2013
06:50 AM
|
1
|
0
|
1313
|
|
POST
|
I'm using a modified version of the Advanced High Quality Printing script to create a custom print job for a client. They want to create PDF maps at 1:1200 or 1:4800 scale, and they have mxds formatted for that. However, the client-side flex application uses tiled map services that display at scales of 1:500, 1:1000, 1:2000, 1:4000, and so on. So, when I passed my WebMapAsJson into the script, the map scale was not what the client wanted (1" to 333.3' instead of 1" to 400'). So, I tried to pass a scale value to the dataframe, to override the webmap scale. That's when I received an error in the script that said "DataFrameObject: Error in setting scale value". According to the documentation, the dataframe's scale property is supposed to be read/write, but it wasn't the case here. I've looked through the mxd, and the dataframe's extent was set to automatic. I also tried to set the mxd's extent to a fixed scale (1:4800), and commented out the dataframe.scale setting. However, the ConvertWebMapToMapDocument overrode the fixed scale with the map scale from the web service. I can't change the tiling scales from the client web map service. Can anybody recommend a good workaround?
... View more
06-18-2013
09:21 AM
|
2
|
1
|
2397
|
|
POST
|
I've looked through the API documentation for the drawing toolbar, but I can't find an event that fires when the user starts drawing. I know there's a similar event in the Silverlight api. What I'm trying to do is, when drawing polylines or polygons from a mobile device, to activate the drawtoolbar's finishDrawing method when the user doesn't tap anything after a period of time. I can set this up when I first activate the drawing tool, but it only works on the first drawing. Subsequent drawings don't autocomplete on delay.
... View more
03-19-2013
11:25 AM
|
0
|
0
|
1463
|
|
POST
|
How do you trigger a graphicslayer's onclick event without clicking? I've got an app that adds graphics on the map's graphics layer. I know the default behavior of a clicked graphic is to show the infoWindow with it's infoTemplate. Basically, I want to show the infoTemplate of the first graphic after all the graphics have been added to the map. Is there a way to trigger the "onClick" event on either the map or graphics layer without clicking? Thanks,
... View more
02-20-2013
07:33 AM
|
0
|
1
|
1226
|
|
POST
|
Since there is a limit on the maximum number of records returned from a query, if there's more records that match the query than are returned, is there a way to query out the next batch of records? For instance, ArcGIS Server is set to return a maximum of 1000 records, but there's 8000 records that match a particular query. 1. Is there a way I can send a query to get me records 1001-2000? 2. Can I cut it down to a much smaller selection? Say I only want the top 20, and later I want the next 20, and then the next 20? Is that possible? I know how to do it server side through SQL, but I didn't know if it's available through ArcGIS Rest services, or will be in the near future. Thanks
... View more
02-15-2013
12:42 PM
|
0
|
1
|
3443
|
|
POST
|
Okay, after digging around, I finally worked it out. It turns out, database connections are stored in specific locations, based on the user profile. I just added code that replaces the Database Connections prefix with the expected location of the database connection. Dim connection as String = "Database Connections\myGIS.sde" ' ... other stuff Dim factoryType as Type = Type.GetTypeFromProgID("esriDataSourcesGDB.SdeWorkspaceFactory") Dim myWorkspaceFactory = Ctype(Activator.CreateInstance(factoryType), IWorkspaceFactory) If connection.StartsWith("Database Connections\") Then Dim userProfile as String = System.Environment.GetEnvironmentVariable("UserProfile") ' for 10.0 ' Dim fileLocation As String = userProfile & "\AppData\Roaming\ESRI\Desktop10.0\ArcCatalog\" ' for 10.1 Dim fileLocation As String = userProfile & "\AppData\Roaming\ESRI\Desktop10.1\ArcCatalog\" connection = connection.Replace("Database Connections\", fileLocation) End If Dim myWorkspace as IWorkspace = myWorkspaceFactory.OpenFromFile(connection, 0) ' no more error
... View more
09-25-2012
11:41 AM
|
0
|
0
|
603
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-05-2013 11:45 AM | |
| 1 | 05-20-2015 08:05 AM | |
| 2 | 03-24-2017 07:11 AM | |
| 2 | 03-28-2018 07:45 PM | |
| 1 | 07-03-2018 07:29 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|