The ArcGIS API for JavaScript is web mapping API from Esri.
4
votes
2answers
388 views
Application Templates for ArcGIS Server?
Esri provide a lot of excellent template applications for us in conjunction with web maps.
These templates are specifically designed for using with your resources on ArcGIS Online as opposed to ...
1
vote
2answers
113 views
SQL Server STpointfromText comes from PHP into javascript as garbage
Sorry for the sloppy title.
Here's the scenario - I have a table in SQL Server 2008 R2
It has a geographyColumn, created thusly:
add geographyColumn as ...
0
votes
0answers
126 views
Toggle Layers from Multiple Services
I'm trying to adapt my code so that I can create a layer list of all layers in multiple services. I'd like them to be able to be turned on/off. My current code builds a dynamic layer list from one ...
1
vote
1answer
145 views
Why is the dijit.popup not working correctly?
I take the following steps:
Click 2 overlapping features from 2 different featLayers.
Popup auto-selects and highlights map.infoWindow.features[first object]
The popup content is actually from ...
0
votes
1answer
277 views
How to to print and save the map with tiled and dynamic layers in arcgis using javascript?
I want to print this map....can anyone please suggest me how to print and save the displaying pap in arcGis using java script
World Street Map
<style>
...
1
vote
1answer
225 views
How to display unique records in combo-box in ArcGIs Java Script API ver 3.0/3.1?
I am displaying almost 9000 records by four type (A,B,C & D) in which I am displaying records using combo-box.
Each record is classified by "ctype" ( A or B or C or D) so I am putting this in ...
0
votes
0answers
36 views
graphics not displayed in child window derived from parent window parameters
My webapp allows the user to zoom to a map extent, then create a new window with a new map drawn to the zoomed extent of the parent window map. The parent map contains graphics, which should also be ...
0
votes
0answers
75 views
ArcGIS JavaScript API - symbol does not appear in IE but works fine with Chrome or Firefox?
I am writing an app, the problem is same symbols works great with Firefox/Chrome but do not appear well with IE, any help will be highly appreciated. Thanks
2
votes
1answer
116 views
How to create a ClassBreakRenderer without data coming from Feature Layer?
I would like to create a ClassBreakRenderer to represent integer values. The symbols I am using are defined as PictureMarkerSymbols with JSON and they are just a filled blue circle with different ...
1
vote
1answer
250 views
deactivate editToolbar with map onClick
I have the below function to enable editing. I click on an editable feature, the infoWindow is displayed with attributeInspector and the editToolbar (move point) is activated.
I would like to call ...
2
votes
2answers
192 views
Could not load class 'dijit.layout.BorderContainer
I have developd a map with TOC, Navigation Toolbar and some other query options using Javasctipt API in .aspx page. When I run it individually, it is working perfectly, but I want to embed it into ...
3
votes
2answers
445 views
Error: Tried to register widget with id==legendDiv but that id is already registered
Getting the following error when running my app:
Error: Tried to register widget with id==legendDiv but that id is already registered
Not sure how to get rid of it. My javascript for the legend is:
...
1
vote
0answers
111 views
Any example of creating a time-aware layer (acrgis js api + ruby rails) using data from the server
I have a data set of points.
Each point has latitude, longitude, date and description
sent from the server
I already have a graphic layer which is used for represening the points in a static way with ...
2
votes
1answer
264 views
How to add item to the ArcGIS Portal with the portal API?
I'm trying to add/update an item back to the ArcGIS Portal using the portal API, in much the same way as you would when doing 'Configure Application'. I am trying to use the update item call to send ...
1
vote
1answer
120 views
Export Web Map Task for 3076 features
I am trying to use Export Web Map Task but it has a limit of 1000 records, how can I use this service or replicate this service to execute my print command.
Any suggestions? I am working on ArcServer ...
1
vote
2answers
54 views
Why is result from gp tool not being created on JavaScript API?
Ok I am really confused. I can see the output of the result from geoprocessing tool. But why am I not able to add it to the map. As you can see the result returns all the attribute values.
This is my ...
0
votes
1answer
79 views
Feature count of current features in Extent based on attribute?
I have one points layer in a cached map service, symbolised with a unique renderer on one field.
e.g. petrol stations, symbolised by the company who owns them.
I want to create a fairly basic ...
0
votes
0answers
70 views
Creating MapServer in Geoprocessing service
Is it possible to create MapServer in Geoprocessing service in ArcServer 10? I have see that we can access MapServer from Geoprocessing result,
http://<arcgis rest ...
1
vote
2answers
83 views
Upgrading custom Java script tool (ver. 1.3 to 3.1 ) for ArcGIS Java Script API and getting an error
I have found useful tool here (All US States and counties on combo-box) its using Java script API 1.3 version.
I have downloaded the tool and trying use but its gives an store error (using version ...
1
vote
1answer
167 views
Unable to see the featureLayer but it is present on the map
I have created a featureLayer from featureCollection and I am able to add it to the map and when I execute, map.graphicsLayerIds, it also returns the id of the featureLayer, ["resultLayer"]. But I am ...
3
votes
2answers
162 views
ArcGIS - How to programmatically create new dynamic layer for service?
I'm trying to create a number of widgets that will visualise different data by geographic area, e.g., the Potential Losses for Instrument X in Year Y for the Counties of State Z.
Ideally this would ...
3
votes
1answer
243 views
Basemap Gallery Error - ESRI JS API
I'm getting an error when trying to switch basemaps in my application(right now only works in IE9).
TypeError: Unable to get value of the property '_basemapGalleryLayerType': object is null or ...
2
votes
1answer
112 views
Error while placing labels within polygons using ArcGIS JS API and a external Geometry Service
I have published in my ArcGIS server a map service with a table containing the polygons of all countries on Earth. So this table contains more than 200 rows and the geometry field is of type type: ...
2
votes
1answer
352 views
ArcGIS Javascript API - Using Proxy For Specific Layers
With ESRI's Javascript API - is it possible to make only certain layers go through the proxy?
I know this is possible in the Flex API via proxyUrl property of applicable layers.
Right now i have this ...
3
votes
1answer
205 views
ArcGIS Javascript API - Return 'normal' map extents when panning around the world
ArcGIS Javascript API maps allow the user to pan around the world, which is a great feature, however I am performing some processes that rely on map extents. I have discovered that despite the ...
3
votes
1answer
137 views
Need help: Sorting elements of a combo box in ArcGIS Java script API (ver. 2.8)
I am using sorting elements in combo box in ArcGIS Java Script API (v.2.8) & for sorting I am using “ fetchProperties="{sort:[{attribute:'name', descending:false}]}".
All entries in combo box are ...
3
votes
2answers
221 views
Add Zoom Level to Map within TileLayer
I used ArcGIS javascript API 3.0 version and I use Bing map. I need to be able to zoom to 22., 23., 24., .. levels. So I was added an addNumLevels function to Map;
esri.Map.prototype.addNumLevels ...
0
votes
0answers
62 views
Flaw in JavaScript API
I have been building a Model builder which is hosted on the ArcServer to execute a geoprocessing task which then returns the result as a Map Layer which is overlaid over the basemap. I have been using ...
3
votes
0answers
59 views
How to select all remaining features after a Layer Definition filtering?
I have a map service that represents the World map with a table with population associated. I would like to filter some of the data matching a criteria and then, select ALL remaining features to work ...
3
votes
2answers
2k views
How to make heat maps?
It might beginner question regarding heat maps..I want to prepare the heat maps so what parameters are required for that??
I gone through following posts about heat map..but I did not get exact ...
1
vote
1answer
66 views
How to shade or add grey overlay to non-selected features in ArcGIS JS API?
I have an application showing cadastral parcels. When a parcel is clicked, the applications makes zoom to the extent of this feature and prepares a floating pane where it is possible to load some ...
1
vote
1answer
114 views
Zoom to link button in Popup, killing the Map
I am using the traditional Popup of JavaScript API and it seems to not work properly in my application. When you click on the map, the Popup comes fine but when you click on the Zoom to link button, ...
4
votes
3answers
839 views
Query Layer with user-defined (dynamic) parameters in ArcGIS 10.1
I have prepared and published with ArcMap 10.1 to my ArcGIS Server a Query Layer to access
some information in my database. My output map represents the European
Union states and using annotations, ...
0
votes
3answers
94 views
Accessing fields of particular layer
I am trying to access the fields which I can see in this particular layer. I am able to see that it has fields but fetching the values in those fields is something that I am unable to do. Is there ...
4
votes
1answer
270 views
Feature Service layer issues
What is the maximum number of records returned by WFS protocol? What is maximum number of records returned by a Feature Layer in ArcGIS Server 10.1? What is maximum number of records the ArcGIS ...
3
votes
3answers
451 views
How to zoom to feature when clicking on drop-down list box item with ArcGIS JS API?
I am developing a web application with ArcGIS JS Api that is similar to this smart campus: UCSB Interactive Campus Map. Here, in the Building drop down list box, you can select a building, and the ...
1
vote
1answer
65 views
“Combo-box” for ArcGIS Java script API (ver. 3.1)
I am using combo-box in ArcGIS Java script API (ver.2.8). When I update the version to 3.1 it gives an error "TypeError: _2d.store.query is not a function"
Can anybody tell me that "Combo-box" ...
3
votes
1answer
125 views
How to select several disseminate features with ArcGIS JS API?
I have a cadastral map similar to this one from an ArcGIS Javascript API example:
Cadastral map
What I would like to do is selecting several parcels clicking on them and show the information related ...
1
vote
0answers
17 views
Info from the getResultImageLayer missing
I was finally able to get the result layer overlaid on my application but now I am facing another problem.
The output of the layer url does not show any field or attribute details. I am not sure why ...
3
votes
2answers
970 views
Changing infoWindow style in ArcGIS JavaScript API (v3.2)
See below a screenshot of the infoWindow's appearance in my ArcGIS JavaScript API (v3.2) application.
As you can see the transparent title bar with the white buttons doesn't work too well against a ...
3
votes
1answer
82 views
is there an API-level error handler in the ArcGIS Server JS API?
I'm seeing an error message in FireBug:
Error: Internal kml parser error.http://serverapi.arcgisonline.com/js.../?v=3.2compact
Line 34
I'm not worried about fixing this error for the moment - I'd ...
0
votes
1answer
159 views
how do i load map service from using JavaScript API?
I created a Map Service in arc catalog.
Now How i can load this map with javascript api ?
I have this sample :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" ...
2
votes
1answer
210 views
Create dynamically multiple layers in ArcGIS Server 10.1
I am using ArcGIS Server 10.1 and Desktop 10.1 software.
I am publishing table from sqlserver to the ArcGIS server, that table (from sqlserver) is updating hourly, and the types are increasing.
I ...
1
vote
1answer
119 views
ArcGIS JS Api: Click on feature, create a particular new map?
I have a polygon layer visible from scales 0 to 8 (bigger to smaller). The thing is that I would like to click on a SINGLE feature of this polygon layer and then going to a different map (but in same ...
1
vote
1answer
108 views
Represent joined data in Info window (ArcGIS JSAPI 3.1)
Currently I am facing following problem
I have joined the SQL Server data base to my shape files (In ArcGIS Desktop using “join” option)and published on ArcGIS Server and working on REST service in ...
2
votes
3answers
309 views
How to count features in polygon using ArcGIS JS API?
I have published in my ArcGIS Server two layers: A polygon one and a point feature one. Points are contained in polygons.
I would like to know how to count the number of points belonging/contained to ...
1
vote
1answer
205 views
is it possible to obtain layerInfo from the Layer's URL
I am trying to fetch the names of the layers in the MapService, so that I can populate them in the dijit.form.select. I am able to get the layerInfo when the ArcGISDynamicMapServiceLayer is added to ...
1
vote
1answer
145 views
How do you display ArcGIS Server dates without the javascript localized date offset?
Esri recommends that databases are in UTC time. And if I’ve got this right, unless you set a time zone in your layer, you are entering a date in a date field as UTC. Mostly this is fine.You understand ...
0
votes
1answer
128 views
Integrating ArcGIS Online Web map to my Java script file(test.html)
Is it possible to integrate ArcGIS Online web map to my java script API??
I check the samples but in which only web map is added..I have few layers in .html file (Like feature,dynamic etc. and I want ...
3
votes
1answer
143 views
getResultImageLayer is not working
I am trying to obtain the shapefile output that I am receiving from the gpTool, which is hosted on the ArcServer, and placing it on the Map using,
gp.getResultImageLayer(jobInfo.jobId,"final_shp", ...


