Tag Info

New answers tagged

0

Your workflow will not technically be supported, so yes it is dangerous. Consider this documentation: Replication and geodatabase releases (10.2.x) http://resources.arcgis.com/en/help/main/10.2/index.html#//003n000000z3000000 Geodatabases built using previous versions of ArcGIS do not support some of the newer functions of ArcGIS. Consequently, if ...


0

I'm pretty sure you just need to turn your Map Service layer into a Feature Layer: How do you create a feature layer? Feature layers can be created by referencing a layer from either a map service or a feature service or by specifying a feature collection object. Use a map service if you just want to retrieve geometries and attributes ...


2

The problem was with the fact that my Local Government SDE Geodatabase was imported from an XML Workspace. Those *__ATTACH tables were generated from the XML. I went in, deleted the Park__ATTACH (which auto-deleted the Park_ATTACHREL table) and then went to Catalog > Local Government SDE > ReferenceData > Parks and right clicked 'Create Attachment' which ...


0

We don't support those endpoints in the API so you have to honor the REST API and parse the JSON. Secured service endpoints will require you to authenticate on the URL request not with UserCredentials. URL will be in the form of: http://domain.com/ArcGIS/rest/services/folder/service/MapServer?token=mytoken./legend You can find an example of creating a ...


3

According to your edit, you want to create a map (layers, featured services etc) using ArcGis for Desktop, which in turn will be used via the Javascript API in my application This is simply not possible. When you publish a map as MapService, it takes on the projection of the Map. In ArcGIS for Desktop, there is no out of the box way to change the ...


1

You should be able to call destroy on the current map instance then create a new esri/Map instance and load the new base map. See: https://developers.arcgis.com/javascript/jsapi/map-amd.html#destroy var map1 = new Map('map'); var basemap1 = new ArcGISTiledMapServiceLayer(url); map1.addLayer(basemap1); ... map1.destroy(); ... var map2 = new Map('map'); // ...


0

As of API 3.10, you can call setInfoWindowOnClick in esri/map and pass in true or false. See: https://developers.arcgis.com/javascript/jsapi/map-amd.html#setinfowindowonclick You can either attach that to a toggle check box or just make it when user clicks add new feature, the program disables info window automatically... Good luck!


0

Yes, you need a proxy page if the the request is not from the same domain. The proxy also needs to be under the same domain, otherwise, you'll still get this CORS error.


1

I'm adding this answer because this topic shows up as a top hit for a similar problem. When we were doing an install using Centos instead of RedHat, we had a similar problem starting. However, instead of missing a library, the error was something along the lines of /root/arcgis/server//framework/runtime/xvfb/Ubuntu/Xvfb: No such file or directory The ...


0

You may want to try adding the !important tag to your CSS. The API uses a lot of inline styles that will override anything in your stylesheets. The only way to override an inline style is to use the !important tag. For example: .esriLegendLayer { font-size: 12px !important; font-family: 'Roboto', serif !important; }


0

Hopefully you've solved your issue by now, if so, please share! Otherwise, seems that some legend symbols (perhaps particularly, feature layers) are not img but rather svg. You can try the following css to resize this: .esriLegendLayer svg { -webkit-transform: scale(2.0); -ms-transform: scale(2.0); transform: scale(2.0); } Where the 2.0 means double ...


0

I found the problem here. I've setup webadaptor according to esri's spec but soap stubs aren't seem to be handling windows (NTLM) negotiation properly. Basically arcgis stubs aren't responding to challenge therefore it remains as unauthorized response for the application. I've changed the authentication to be "Basic" and negotiation started working happily. ...


0

This is the answer posted on GeoNet by riyasdeen_b "below should do it. template.setContent("Link");"


1

You can disable a popup on a layer or layers by passing null to layer.setInfoTemplate(). Once you've got the array of feature layers that are used for displaying features from you KML (the lyrs var in your example page, around line 110), loop and clear out the info template like so: lyrs.forEach(function(l) { l.setInfoTemplate(null); });


1

I ran into a similar issue. The only way I could really see (although not exactly security safe) is to disable only secure content through HTTPS sites. This MSDN Help tells how to change your security settings. Note I only got this to partially work last time I tried it. I was trying it through Google Chrome though. If this is for internal use, you ...


1

Add the graphics to a graphicsLayer, and listen for this layer's mouse-over event to detect when the hover starts. Listen for the mouse-out event to detect when the user's mouse has left the graphic (in which case you may want to close the infoWindow). There's a sample here which demonstrates this, albeit in a slightly more complicated manner.


1

Here are a couple of possible examples. JSTS Topology Suite The JSTS Topology Suite is a JavaScript library of spatial predicates and functions for processing geometry conforming to the Simple Features Specification for SQL published by the Open Geospatial Consortium. JSTS Topology Suite is also a JavaScript port of the well established Java library JTS ...


0

You can also use arcpy.env.scratchWorkspace as it returns: "e:\arcgisserver\directories\arcgisjobs\analysis\your_program\j83b20a86cc2d471cb684b4ce0aa9b81b\scratch" To isolate the job id from the string: job_id = arcpy.env.scratchWorkspace.rsplit("\\", 2)[1] >>>"j83b20a86cc2d471cb684b4ce0aa9b81b"


2

I would agree that the ideal solution would be to upgrade to ArcGIS Server so you can take advantage of replication capabilities built into ArcSDE technology. You can get more information about ArcGIS's Distributed Data capabilities at http://resources.arcgis.com/en/help/main/10.1/index.html#/Understanding_distributed_data/003n000000ts000000/ In general ...


0

If you look at the documentation for the map.centerAndZoom function, you'll find that it requires both a point and a zoom level. Because it doesn't know how far to zoom in, it can't establish a "left" bound, "right" bound, or any bound. That is why it mentions the "left" property. Try this instead setTimeout(function () { map.centerAndZoom(point, 12); ...


3

As long as the ArcGIS for Server map services have been exposed as a WMS (which is a matter of its administrator ticking a checkbox) then you will be able to add them as WMS layers to QGIS. The second service URL that you provided looks like it comes from ArcGIS for Server but neither looks like a WMS. I recommend you contact their providers and request a ...


3

The map object will take on the projection of the first layer you add to it, in the case of your code, the streets basemap is 102100 (web mercator). You have two options to solve this: Use your own basemap service that is in your 102726 projection so that the points from the web service show up in the correct place. Stick with arcgis online basemaps, ...


0

I am doing something similar but get a blank screen with Error: Code:500 on it. I can run the script in arcCatalog and see the correct output: {"AB_TRANSPORATION_DISTRICT": {"summary": "The Transportation District dataset provides users with GIS read...", "tags": ["theme:ADMINISTRATIVE_AREA", "transportation", "district", "jurisdiction", "road"]}} When i ...


1

I recommend that you review the Help page entitled Managing the performance of ArcGIS map services. In particular I think you should look at the dot point from that page below: Precompute information results when you can do so. For example, you can precompute the maps that are delivered with ArcGIS for Server and use cached map services or basemap ...


0

After enabling attachments on the input table or feature class, run the Generate Attachment Match Table tool to create a match table that will assist you in associating the records from the input table with files on disk. Input to this tool consists of an Input Folder which contains the files to be attached and a Key Field. The tool works by ...


1

JP2 images can be loaded up into ArcGIS for Desktop, and served up as a cached map service within ArcGIS for Server the rasters are purely for reference. The aerial images are merely to look at. like google satellite view Then there is no need for serving these up as Image services. This is a common mistake, as people believe that as its imagery, it ...


1

So, after consulting here and on ESRI's GeoNet, I have come to the conclusion that for some reason ArcGIS Server 9.3.1 does not pass the information to the JavaScript API that I require. A user on GeoNet compared their up-to-date server against my slightly aged one. They have the required properties while I do not. Just another reason to convince my boss ...


0

I just had the same problem and solved it as follows: var mapRestrictedExtent = new OpenLayers.Bounds( layerInfo.initialExtent.xmin, layerInfo.initialExtent.ymin, layerInfo.initialExtent.xmax, layerInfo.initialExtent.ymax ); map = new OpenLayers.Map('map', { //... restrictedExtent: mapRestrictedExtent, //... }); Source (mostly): ...


-1

At Innovate we also had a similar need for a number of our clients that have ArcServer. So we have developed a monitoring, load testing and notification tool for ArcServer. Feel free to check it out at http://servermonitor.innovateteam.com/.


1

I don't see why you couldn't, are you having specific issues with it? The File Geodatabase format supports multiple, simultaneous, view-only connections, so there shouldn't be any issue with you doing that with map services. You can see more info about comparisons between database types in ESRI at ...


1

If you don't plan on maintaining/upgrading a web application, its typically a good idea to leave the services that it utilizes alone as well. Because version 1.4 of the Esri JavaScript API was released years and years before ArcGIS Server was re-engineered/redesigned in its current native 64 bit form, there was no way for the developers to ensure that it ...


2

The best reference for this is this page on the OSM Wiki. It has Pseudo code as well as code in various languages for converting from the XYZ tilenames, to the bounding box. The Pseudocode for this is as follows n = 2 ^ zoom lon_deg = xtile / n * 360.0 - 180.0 lat_rad = arctan(sinh(π * (1 - 2 * ytile / n))) lat_deg = lat_rad * 180.0 / π Note that this ...



Top 50 recent answers are included