|
POST
|
The easy way is to use the center of the extent for the polygon, for example var p:MapPoint = new MapPoint(YourPolygon.geometry.extent.center.x, YourPolygon.geometry.extent.center.y); or using YourPolygon.geometry.extent.center which is a MapPoint... This is of course the center of the extent so it's not the "real" center of the polygon, and for some polygons the point might be placed outside the polygon. If someone else has a solution to really get the center of the polygon, or at least some way to make sure it will always fall inside the polygon, I'm also interested...
... View more
10-23-2013
11:15 PM
|
0
|
0
|
1822
|
|
POST
|
Just commenting out that line fix the issue of unwanted error messages, but will also hide all kind of error messages when a layer fails to load. I'd like to just hide the error message when it's caused by the user not being authorized. Unfortunately I haven't found a real solution to this. I've asked about this in this thread http://forums.arcgis.com/threads/88942-Check-if-a-user-is-authorized-to-a-specific-secured-map-service where I've also described my "not-so-good-solution" to check for a specific error message, the "not-so-good" part is that I assume the specific error message isn't that specific and could be caused by a number of reasons...
... View more
10-23-2013
11:03 PM
|
0
|
0
|
1556
|
|
POST
|
I still haven't found a better solution. It would be really nice if the API could provide some functionality to just ask a service if the current user is authorized to see it or not. But one thought that crossed my mind is that when you look at the services in the service directory, you don't see any information about service that your not authorized to see, they're just not there. So maybe you can't check if your authorized when the service, to that unauthorized user, doesn't seems to exist.
... View more
10-23-2013
10:48 PM
|
0
|
0
|
648
|
|
POST
|
Did anyone found a solution to this problem? Recently the same problem occurred to us, using QueryTask from ArcGIS Viewer for flex / ArcGIS API for Flex. The strange thing is that this used to work fine, but recently we noticed that the features that was return was the features intersecting the envelope and not the actual geometry. Querying data that comes from a shapefile works fine, it's when were querying data from a Query Layer from an Oracle 10g database that we see this problem. I also noticed that the same thing applies to the selection tool in ArcMap. Any ideas how to solve this?
... View more
10-04-2013
05:54 AM
|
0
|
0
|
3406
|
|
POST
|
I'm developing a widget that will make different queries to a specific secured map service. We have set up our ArcGIS server 10.1 to use Integrated Windows Authentication. I don't want the users that are unauthorized to see this service to think they can use the widget but then receive an error message (that they probably don't understand). So I want the widget to check if the user are authorized to see the map service and if not just display a message in the widget explaining that this widget only works for users that are authorized. What I've come up with so far is to make a simple query to the map service, and if the query doesn't work and the faultString that is returned is equal to "Unable to get token service url from (http://servername/arcgis/rest/info) Version 10.01+ required." Then the user is not authorized otherwise the user is authorized. (Because that's the faultString that is returned when an unauthorized user try to query the service, doesn't even get a faultCode or something like that). This actually works but I'm thinking there should be a better way to do this. For example, I guess this faultString I'm using could be caused by something else. Any thoughts? Hopefully I've missed something useful in the API...
... View more
07-22-2013
06:25 AM
|
0
|
2
|
1317
|
|
POST
|
To turn of layers by default you can just turn them of in the MXD and republish the map service. You can also set visibility in the layer-tag in the main config-file. Use 'visible' for the map service and 'visiblelayers' for sublayers. See http://resources.arcgis.com/en/help/flex-viewer/concepts/index.html#/Layer_tag_overview/01m30000000p000000/. I assume you can make these settings in the Application Builder as well, but I'm not sure since I don't use it. If your labels appear in the REST service they should appear in the Flexviewer as well. Is it labels you have created in the MXD before publishing the service? How do you look at the REST service when they appear? Through ArcGIS REST Services Directory and "View In: ArcGIS JavaScript "??
... View more
07-18-2013
11:23 PM
|
0
|
0
|
1396
|
|
POST
|
Hi Lloyd! The result of the weighted heat map looks like what I'm looking for, but doesn't it require an attribute to base the weight on? I don't have such an attribute in my data source. Or would it be possible to use the featureIndexCalculator and somehow calculate a new value based on number of overlapping/nearby points? Otherwise I guess I have to see if I can modify the data and create a weight attribute.
... View more
07-18-2013
10:51 PM
|
0
|
0
|
2926
|
|
POST
|
When for example using the rainbow colors with the heat map, one single point is displayed with a gradient with all colors from blue to white. And some overlapping points is displayed with the same colors but the gradient is different (more white in the middle) so you can tell the difference. But I wonder if it would be possible to make this difference clearer, if one point for example was displayed with a gradient between the first two colors (blue and green) and it would require another point in the same area for the next color to be included in the gradient. This way the difference between a single point and a few overlapping points would be even clearer than it is now. Is there a setting for this that I've missed, or would it be possible to achieve this with some minor changes to the code?
... View more
07-04-2013
12:52 AM
|
0
|
0
|
2929
|
|
POST
|
I had this error last week and I realized that for one of the layers in the service, I had added global IDs a few weeks ago so there was a change in the schema.. I tried deleting the cache and that failed.. then I tried resharing the service, overwriting the existing and that failed... then I deleted the service and its cache, and reshared the MXD. then the cache ran successfully. has there been any even minor change in the schema of any of your datasets? There might have been a minor change in the schema, depending on what a minor change in schema could be... We do have a strange problem where some shapefiles occasionally lose their spatial index. Nothing has changed in the shape file for the Area of interest, but a dataset in the mapservice I'm trying to cache might have lost its spatial index. Could that make the caching fail completely?
... View more
07-01-2013
11:05 PM
|
0
|
0
|
2191
|
|
POST
|
I'm picking up this old unanswered thread since I have almost the same problem. I'm getting this error: Error executing tool.: Failed to cache extent: 153555,381636 6369419,262764 157889,000720 6373752,881847 at scale 500 The index was either too large or too small. Failed to execute (Manage Map Cache Tiles). I'm also using a shapefile for cache extent that worked before.
... View more
07-01-2013
01:15 AM
|
0
|
0
|
2191
|
|
POST
|
Thank you Bjorn! The translation is not wrong or bad, but there are a few strings where I just prefer a different translation/different words, so it's good to have the possibility to change them. But the main reasons for this request is under the the category of specific use cases.
... View more
05-01-2013
11:14 PM
|
0
|
0
|
547
|
|
POST
|
Thank you Robert and Dasa for making it clear for me. It works perfectly.
... View more
05-01-2013
11:02 PM
|
0
|
0
|
509
|
|
POST
|
Maybe it's a bad idea to pick up an old thread that's already marked as answered, but I'm trying to use my own modified version of the SignInWindow.mxml, but don't know how I should point it out in the default.css file. Roberts suggestion does not work for me. I've been able to do this with some other skins, for example the PopUpRenderer.
... View more
04-25-2013
11:10 PM
|
0
|
0
|
1721
|
|
POST
|
I know it's possible to download the English version of ESRIMessages.properties here: http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/Localization/017p00000007000000/ and translate it if you want some other languages than the 22 already supported laguages. But I'm using a Swedish language that are supported and would like to change just a few strings, without having to translate all the stings. Like I've done with the ViewerStrings.properties. Is it possible to download ESRIMessages.properties in the other languages somewhere?? If not, it would be great if the ESRI FlexTeam would make that possible.
... View more
04-25-2013
11:00 PM
|
0
|
3
|
1142
|
|
POST
|
I'm trying to use a WMTS service in ArcGIS Viewer for Flex 3.1. I assume the server hosting the WMTS does not have a crossdomain-file so I guess I have to use a proxy page. This proxy page I have to use, is it supposed to work with a proxy page like the one described here: http://resources.arcgis.com/en/help/flex-api/concepts/index.html#//017p0000000v000000 ? I've set up the ASP.NET version which seems to work with my ArcGIS Server services, but doesn't make the WMTS work. Is this proxy made for ArcGIS Server Services only? so I have to customize it or make a new one for the WMTS? And if that's the case, how do I do that?
... View more
03-26-2013
02:22 AM
|
0
|
0
|
872
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-29-2025 02:59 AM | |
| 1 | 01-13-2025 02:57 AM | |
| 2 | 04-14-2025 04:49 AM | |
| 2 | 09-18-2025 05:51 AM | |
| 1 | 08-28-2025 12:21 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-23-2026
05:14 AM
|