POST
|
Its difficult to debug without access to the service that you're working with. Is it possible to access this service from outside your office? http://129.138.12.83:6080/arcgis/rest/services/index_24k_web_w_urls/MapServer/0 Generally, it is a very good idea to keep your conditionals simple. Right now you have some complex concatenation of "is it null?" checks, which can often be confusing. It looks to me like you simply want to check:
if (f.attributes.Topo_URL !== "") {
content += "<a target='_blank' href='${Topo_URL}'>Topo Map Information</a><br/>";
}
if (f.attributes.Web_URL !== "") {
content += "<a target='_blank' href='${Web_URL}'>Geologic Map Information</a>";
}
Reading further through the post, it appears that perhaps you are not getting any query results. That is what you need to verify first. Can you access the URL that I pasted above in your web browser? If so, you need to look at your web browser's developer tools and inspect the HTTP requests that are being sent on the "Net" or "Network" tabs. When you click a point, there should be a request sent to that URL. You need to see if that request returns anything, or if there are any other errors that appear in the console. If you cannot access the data, it is likely that you're encountering a cross-domain access restriction. If you can confirm that you are not receiving any results, then you'll need to look into solving those issues. Read this post to get started: http://blogs.esri.com/esri/arcgis/2011/09/29/cross-origin-resource-sharing-cors-with-the-arcgis-api-for-javascript/.
... View more
09-24-2013
08:21 AM
|
0
|
0
|
317
|
POST
|
I'm still getting confused, conflicting answers from multiple sources. From the FAQ you just linked: Can I access the basemaps and services from my own API or a different API?Yes you can access our APIs from any other API if you have a paid plan or while you are testing or developing an application with the Free Development and Testing plan ... so that sounds like the answer is no. I am not allowed to use ESRI base layers in an OpenLayers or Leaflet application without a paid subscription to ArcGIS Online. In this case it would be a good idea to prominently display a disclaimer here: https://github.com/Esri/esri-leaflet that informs us that using this tool is only legal if we pay for a subscription to ArcGIS Online. However in the Github thread I linked above, this comment suggests that it is okay for me to do this, as long as I am not monetizing my application and I am properly attributing ESRI. So, I'm still confused.
... View more
07-31-2013
03:22 PM
|
0
|
0
|
406
|
POST
|
There is some on-going discussion of this issue going on here: https://github.com/leaflet-extras/leaflet-providers/issues/22#issuecomment-21882390
... View more
07-31-2013
10:22 AM
|
0
|
0
|
406
|
POST
|
I'm looking for a clear answer to the question: Is it in violation of any Terms of Service for me to access the image cache for services at http://services.arcgisonline.com/ArcGIS/rest/services if I do not pay for any services or software from ESRI, I use a non-ESRI API to access those images (i.e. Leaflet or OpenLayers), I do not "scrape" the service or cache tiles for offline use, and I properly attribute the map with the "Copyright Text" exposed by the ESRI data service? If such use is in violation of the TOS, would wrapping ESRI JavaScript API calls under other APIs also violate TOS? In that case the data access would be through an ESRI API, but the visualization would utilize another API. If either or both uses are against TOS, can someone show me where I can find the TOS? http://www.esri.com/legal is difficult to navigate without being a lawyer, and a document that I was once pointed to no longer exists. Thanks! Ryan
... View more
07-11-2013
11:26 AM
|
0
|
4
|
1508
|
POST
|
Can you point me at the documentation where I can find this command to determine the library location? I haven't found that in my search. The OS is 64-bit, and PostgreSQL was installed via "apt-get install postgresql-9.1-postgis". I'll look into whether or not that would be a 64-bit version of PostgreSQL. Thanks!
... View more
01-19-2013
08:41 AM
|
0
|
0
|
454
|
POST
|
I run PostgreSQL on an Ubuntu server. Through ArcCatalog 10.1 I can connect to the database (although it is empty right now). When trying to "Enable Geodatabase" I get the following error: You must copy the latest ST_GEOMETRY and dependent libraries to the PostgreSQL software location. Refer to the ArcGIS help topics for more details. I've copied st_geometry.so from the ArcGIS install location on my Windows machine to the Ubuntu server. I placed the file in /usr/lib/postgresql/9.1/lib/, alongside a set of other .so files (including postgis.so). Still, I get the same error message. Is there something else I have to do in order to have the ST_GEOMETRY library "installed"? I don't even want to use that geometry type -- I want PostGIS in my database. An option to disable ST_GEOMETRY would be fabulous.
... View more
01-19-2013
06:20 AM
|
0
|
3
|
1064
|
POST
|
I have PostgreSQL running on an Ubuntu server. PostgreSQL and PostGIS were installed via "apt-get install postgresql-9.1-postgis". Where to I need to put st_geometry.so in order for the "Enable Geodatabase" link to work? I've already been able to connect to the database in ArcCatalog, and I put st_geometry.so in /usr/lib/postgresql/9.1/lib/, but still the same error message.
... View more
01-18-2013
12:30 PM
|
1
|
0
|
7092
|
POST
|
Hi - Using ArcObjects and C#.NET, I've written a function that, given the URL for a WMS, returns a layer file pointing at that WMS. I'm interested in exposing that functionality through a geoproccessing service on ArcGIS Server, and I'm trying to find out if that's even possible. Ideally then, the tool would work in such a way that an AJAX request (which includes the WMS URL) could be sent to the geoprocessing service, and the response would be a layer file to download. Does that make sense and seem feasible? Has anyone done something similar? Any suggestions how to get started wrapping existing ArcObjects into geoproccessing tools would be appreciated. Thanks, Ryan
... View more
06-12-2012
08:39 AM
|
0
|
0
|
559
|
POST
|
From what I was told, however, CORS is not required for this. You should be able to use jsonp. Yep, I was able to make it work with jsonp, but it is somewhat clumsier to code in this situation. Good to hear that CORS will be supported in the not-too-distant future.
... View more
03-20-2012
03:39 PM
|
0
|
0
|
435
|
POST
|
I often have javascript web applications that want to use tiled services from http://services.arcgisonline.com, but before using them I would like to get some tiling and copyright information. Generally, I would do that by first issuing a request like http://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer?f=json, and parsing the response to find the tiling information. The trouble is that because my web application is on one server, and the services are on another, the web browser viewing my application will not make the request: GET http://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServerf=json 404 (Not Found)
XMLHttpRequest cannot load http://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServerf=json. Origin http://bukovite is not allowed by Access-Control-Allow-Origin.
leaflet-custom.js:6Uncaught TypeError: Cannot call method 'replace' of undefined This is a cross-origin request issue, and modern web browsers will allow such requests if the server the request is sent to returns the following header: Access-Control-Allow-Origin: * . See http://enable-cors.org/ for more information. Is there any chance that at some point in the future, the servers at http://services.arcgisonline.com might allow CORS requests? Thanks, Ryan
... View more
03-13-2012
03:16 PM
|
0
|
3
|
2869
|
POST
|
When I make a connection to a particular WFS (http://services.azgs.az.gov/geoserver/ows?service=wfs&version=1.1.0&request=GetCapabilities), the features come through with a couple of problems. The one I wanted to ask about, though, is that the features have lots of extra attributes. For each attribute, there is an extra, null-valued attribute with the suffix .xsi_nil (e.g. "source" and "source.xsi_nil"). Why? Has anyone else encountered this? The WFS is being served from Geoserver v 2.1.2 and I'm using ArcGIS Desktop v 10 SP2.
... View more
11-30-2011
10:41 AM
|
0
|
1
|
3331
|
POST
|
From a featureclass with about 30 attributes I built a .mxd, and used this to publish a map service, with WMS and WFS enabled. The WFS response is supposed to conform to an established schema, and so it is not okay for some of those 30 fields to be missing. Null values are okay, but absent is not okay. How come ArcGIS Server sometimes hides the elements that are null in the dataset? I noticed that the DescribeFeature request sets minOccurs=0 for all the fields except ObjectID and Shape. Can I change that somehow? While I'm at it, is there any way to hide the ObjectID field in the WFS response? My data has its own, independently maintained identifiers. Thanks, Ryan
... View more
01-03-2011
11:09 AM
|
0
|
0
|
2338
|
POST
|
Just another voice complaining about this. I desperately need the Load Objects functionality back.
... View more
12-03-2010
01:14 PM
|
0
|
0
|
522
|
POST
|
I'm trying to build a separate button to use to toggle the editor extension on/off. In the button's OnClick(), I've tried the following two methods to get a reference to the extension itself: protected override void OnClick()
{
//UID theUID = new UIDClass();
//theUID.Value = ThisAddIn.IDs.ncgmpEditorExtension;
//ncgmpEditorExtension theExt = ArcMap.Application.FindExtensionByCLSID(theUID) as ncgmpEditorExtension;
var theExt = ESRI.ArcGIS.Desktop.AddIns.AddIn.FromID<ncgmpEditorExtension>(ThisAddIn.IDs.ncgmpEditorExtension);
try
{
if (theExt.Enabled == true) { theExt.Enabled = false; }
else { theExt.Enabled = true; }
}
catch (Exception ex)
{
System.Windows.Forms.MessageBox.Show(ex.Message);
}
} In both cases (the commented section and the un-commented section...), theExt object is Null -- it isn't getting a reference to my editor extension. Any idea why? It doesn't matter if I'm currently editing or not - either way, null object. Thanks, Ryan
... View more
11-08-2010
12:47 PM
|
0
|
0
|
420
|
POST
|
The setup is an ATI FirePro V4800 graphics card pushing three HP LP3065 30-inch Widescreen LCD Monitors. One is connected via DVI-D and two by DisplayPort. However, I can see the same effect on other smaller, dual screen setups. It is clear on just two 1600x1200 monitors that when the explorer window is dragged across both monitors, the image quality is degraded. I noticed that as you change the size of the Explorer window, the view's altitude remains constant, although the size of the image increases. I'm going to guess that Explorer decides which level of tile cache to render based on the altitude of the view. What that amounts to is a larger rendering of the same tile cache when you've expanded the view. I've talked to ESRI support about this and they tell me they've logged a bug/enhacement request. It was interesting to notice that the behavior is not the same in ArcGlobe. NIM062366 - When displaying ArcGIS Explorer over multiple screens, 3D mode stretches the map and degrades the resolution of the map. Thanks, Ryan
... View more
11-03-2010
07:53 AM
|
0
|
0
|
165
|
Title | Kudos | Posted |
---|---|---|
1 | 01-18-2013 12:30 PM | |
1 | 09-05-2010 05:38 PM | |
1 | 09-04-2010 02:07 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|