|
POST
|
Try messing with this .css class tag (assuming you're using the Claro Dojo style): .claro .esriGeocoder {
z-index: 800 !important;
}
... View more
12-09-2014
03:43 PM
|
0
|
0
|
2935
|
|
POST
|
Yes- you'll need to add the webMercatorUtils into your project and use those methods.
... View more
12-08-2014
11:50 AM
|
0
|
2
|
1688
|
|
POST
|
You absolutely can do that. In fact, In my application, the user draws their feature, and then initiates the query by clicking a button after they've completed their sketch. I have only worked with a single feature geometry so someone else will have to chime in about how you query based on multiple features. The API doesn't indicate if you can specify an array of features so my take away is that you can only specify a single feature geometry. If that's a case, maybe you need to union the various individual geometries together before specifying it to the Query?... CC: Kelly Hutchins
... View more
12-08-2014
11:19 AM
|
1
|
0
|
2906
|
|
POST
|
I think the answer depends on how you want things to work. Do you want the query to happen as soon as the user finishes drawing a graphic? If so, your current code is fine and you just need to create a new function for the actual query (using queryTask) and call that function from inside your addGraphic function. Assuming that what I have suggested is what you want, it would go something like this: function addGraphic(evt) {
//deactivate the toolbar and clear existing graphics
tb.deactivate();
app.map.enableMapNavigation();
// figure out which symbol to use
var symbol;
if ( evt.geometry.type === "point" || evt.geometry.type === "multipoint") {
symbol = DrawPicturemarkerSymbol;
} else if ( evt.geometry.type === "line" || evt.geometry.type === "polyline") {
symbol = DrawlineSymbol;
}
else {
symbol = DrawfillSymbol;
}
app.map.graphics.add(new Graphic(evt.geometry, symbol));
getIntersectingFeatures(evt.geometry);
}
function getIntersectingFeatures(theGeometry) {
var query = new esri.tasks.Query();
query.outFields = ["*"];
query.returnGeometry = true;
query.geometry = theGeometry;
var theQuery = new esri.tasks.QueryTask(<feature service URL>);
theQuery.execute(query);
....etc....
} Sorry I used legacy code instead of AMD but it's what I had handy.
... View more
12-08-2014
10:04 AM
|
0
|
1
|
2906
|
|
POST
|
I have done what you're trying to do but I left my panel on the lefthand side so I didn't have to deal with the issue you're experiencing. Have you considered another method of accomplishing this? You could use a Dojo ExpandoPane, specifying the location of the pane to be the right side of the screen: JS Fiddle/ You can move the ExpandoPane to either side of the map using the "leading/trailing" attribute as shown here or by using the "top/bottom/left/center/right" attribute in other dojo layout demonstrations. Steve
... View more
12-08-2014
07:53 AM
|
2
|
1
|
1329
|
|
POST
|
Most of the viewer app templates I'm aware of are tucked away within their focus community pages such as the Local Government Community or Public Safety. To my knowledge, there is not a direct equivalent to what you are familiar with within the Flex environment. Some links to check out: JS API Home Legacy JavaScript Template Boilerplate JS Template (ArcGIS Online centric) Local Government Template Gallery for JS Sometimes it might be easier starting from scratch to develop what you need (that's what I did). Along those lines, the samples section of the API reference are pretty good to provide code snippits to accomplish specific types of tasks.
... View more
12-03-2014
11:47 AM
|
0
|
2
|
2592
|
|
POST
|
Thanks, Mark. I should have done this BEFORE posing but, I logged out and logged back in inside the app and now everything is ok. I suspect my upgrade process from my old 4S to the 6+ is to blame. I made a full backup of the 4S and then restored it to my 6+ which was great for not having to re-download all my apps but maybe that broke my logged in status within the app. Anyways, all is well. Thanks!
... View more
11-20-2014
07:57 AM
|
0
|
0
|
1218
|
|
POST
|
I ask because a.) the app has not been optimized for iPhone 6/6+ and b.) I am no longer able to access my ArcGIS personal account maps through the app. It asks for authentication information but, after supplying my username & password, it returns an error dialog: Connection Failed Error loading maps: Error Domain=NSURLErrorDomainCode=-1002 "unsupported URL" UserInfo=0x145349b0 {NSErrorFailingURLStringKey=(null)/content/allItems?f=json&type=Web%20Map,NSLocalizedDescription=unsupported URL, NSUnderlyingError=0x14537d80 "unsupported URL"}" I'm using an iPhone 6+ running 8.0.2
... View more
11-19-2014
08:29 AM
|
0
|
2
|
4391
|
|
POST
|
Rather than the Geocode dijit, you could remove the graphic when the infoWindow is hidden:
map.infoWindow.on("hide", function () {
map.graphics.clear();
});
... View more
11-14-2014
03:34 PM
|
2
|
0
|
973
|
|
POST
|
Yes and no. I recognize that domain and know that the developer associated with that site is a regular here on the forum. My guess is that they are hosting the JS API (and obviously the SDK) locally on their server and, for some reason, that content got indexed by Google. Unlike Dojo, ESRI's hosted documentation only applies to the current API version. If you want to preserve the documentation for a previous version of the API, you can download it. Again, that seems to be what has happened here.
... View more
11-13-2014
09:45 AM
|
0
|
1
|
900
|
|
POST
|
So, years ago I developed a VBA tool to aid in the visualization of LIDAR data. Essentially, the user provides a "starting" elevation and then the tool quickly applies a Classified renderer to the raster based on the elevation interval the user provides (1 foot, 2 foot, etc). I developed it because doing this manually is a pain and it always requires the generation of statistics before you can even tweak the classified breaks. All of this worked fine & dandy but lately it's not quite doing what it had in the past. I use the "Temperature" color ramp with my tool and, in the past, all values BELOW the starting elevation would get lumped into the first break of the classification (that makes those rasters have a color of white from that color ramp). On the flip side, all values AFTER the last break got lumped in with the last break's values and are portrayed as dark red. More recently, this has changed.Now, all values below the starting value specified by the user and all values above the values from the last break in the classified renderer are getting the last color of the renderer (dark red). How do I set up the IRasterClassifyColorRampRenderer such that all values up to and including the starting value are included in the first break of the renderer and all values after the last break are included in the last break? Working through an example, let's say I have a DEM and I want the renderer to start at elevation 300, have 30 breaks, and use a 1 foot interval between breaks. I want all values < 300 to be white and all values > 330 to be the dark red. I've attached a screenshot for some context. You can see in the lower left of the data frame that the white color is the elevation I specified for the renderer to start at. Immediately left of the white you see dark red. Those values are BELOW my starting elevation but are portrayed by the color of the last renderer break. Here's the relevant .NET code from 10.1 (I have excluded some variable initializations for brevity):
'Create classfy renderer and QI RasterRenderer interface
pRaster = pRLayer.Raster
Dim pClassRen As ESRI.ArcGIS.Carto.IRasterClassifyColorRampRenderer
pClassRen = New ESRI.ArcGIS.Carto.RasterClassifyColorRampRenderer
Dim pRasRen As ESRI.ArcGIS.Carto.IRasterRenderer
pRasRen = pClassRen
'These simple three lines is all you need in order to change the color ramp
'that is used. They do need to exist shortly after pClassRen is initialized
'otherwise the specification is ignored..
Dim pClassProp As ESRI.ArcGIS.Carto.IRasterClassifyUIProperties
pClassProp = pClassRen
pClassProp.ColorRamp = "Temperature" 'Name of Ramp from Style Manager
'Set raster for the render and update
pRasRen.Raster = pRaster
pClassRen.ClassCount = numClasses
pRasRen.ResamplingType = ESRI.ArcGIS.Geodatabase.rstResamplingTypes.RSP_BilinearInterpolation 'Set to Bilinear Interpretation
'pRasRen.Update()
'loop through the classes and update the label
For I = 0 To pClassRen.ClassCount - 1
pClassRen.Break(I) = curElev
Select Case I
Case 0
pClassRen.Label(I) = "< " & CStr(curElev) & " Feet"
Case pClassRen.ClassCount - 1
pClassRen.Label(I) = "> " & CStr(curElev) & " Feet"
Case Else
pClassRen.Label(I) = CStr(curElev) & " - " & CStr(curElev + theInterval)
End Select
curElev = curElev + theInterval
Next I
'Update the renderer and plug into layer
pRasRen.Update()
pRLayer.Renderer = pClassRen
pMxDoc.ActiveView.Refresh()
pMxDoc.UpdateContents()
Thanks! Steve
... View more
11-07-2014
12:01 PM
|
0
|
0
|
2681
|
|
POST
|
Second result when searching for "layer-add-result" within the JS API Space- https://community.esri.com/message/93134#93134
... View more
11-06-2014
10:01 AM
|
1
|
2
|
2999
|
|
POST
|
I see a couple weird HTML issues, namely what seemed to be mis-matched DIV tags. Here's the part that caught my attention:
<body class="claro" onkeydown="if (event.keyCode==dojo.keys.TAB) { if (dijit.byId('dialogLoadMessage').open || dijit.byId('dialogAlertMessage').open) {return event.keyCode!=dojo.keys.TAB;}}">
<div id="divMainContainer" dojotype="dijit.layout.BorderContainer" design="headline" gutters="false" style="width: 100%; height:100%; position: absolute"></div>
<div id="map" class="map" region="center" dojotype="dijit.layout.ContentPane"></div>
<div id="footer" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'bottom'" style="height:100px;width:100px"></div></div>
The first thing that's odd is that I believe the div "divMainContainer" should contain everything on your page but it immediately has a closing tag behind it's initial declaration (i.e. the "</div>" appears right away). Try deleting that closing tag and see what happens. You have to closing DIV tags at the end of the declaration for the footer DIV. Also, the table of combo boxes is actually outside of the footer div so the div closing tags need to be moved to the end of the table HTML code. If I shuffle your HTML snippet around, you should end up with something like this:
<body class="claro" onkeydown="if (event.keyCode==dojo.keys.TAB) { if (dijit.byId('dialogLoadMessage').open || dijit.byId('dialogAlertMessage').open) {return event.keyCode!=dojo.keys.TAB;}}">
<div id="divMainContainer" dojotype="dijit.layout.BorderContainer" design="headline" gutters="false" style="width: 100%; height:100%; position: absolute">
<div id="map" class="map" region="center" dojotype="dijit.layout.ContentPane"></div>
<div id="footer" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'bottom'" style="height:100px;width:100px">
Make a selection from any of these combo boxes:<br/>
<table>
<tr>
<td>
<select id="Select1" dojotype="dijit.form.ComboBox" autocomplete="true" hasdownarrow="true" style="width: 175px; background-color:Black; font:black;color: white;">
</td>
<td>
<select id="Select2" dojotype="dijit.form.ComboBox" autocomplete="true" hasdownarrow="true" style="width: 175px; background-color:Black; font:black;color: white;">
</td>
<td>
<select id="Select3" dojotype="dijit.form.ComboBox" autocomplete="true" hasdownarrow="true" style="width: 175px; background-color:Black; font:black;color: white;">
</td>
<td>
<select id="Select4" dojotype="dijit.form.ComboBox" autocomplete="true" hasdownarrow="true" style="width: 175px; background-color:Black; font:black;color: white;">
</td>
<td>
<select id="Select5" dojotype="dijit.form.ComboBox" autocomplete="true" hasdownarrow="true" style="width: 175px; background-color:Black; font:black;color: white;">
</td>
<td>
<select id="Select6" dojotype="dijit.form.ComboBox" autocomplete="true" hasdownarrow="true" style="width: 175px; background-color:Black; font:black;color: white;">
</td>
</tr>
<tr>
<td>
<select id="Select7" dojotype="dijit.form.ComboBox" autocomplete="true" hasdownarrow="true" style="width: 175px; background-color:Black; font:black;color: white;">
</td></div></div>
... View more
10-23-2014
09:48 AM
|
0
|
1
|
2542
|
|
POST
|
Hate to bounce you somewhere else again but if it is a GP issue, you're best bet is posting this issue inside an ArcGIS Server forum/space. The JS API just consumes GPs; all the "coding" developed by ESRI falls back to ArcGIS Server.
... View more
10-22-2014
03:48 PM
|
0
|
0
|
1769
|
|
POST
|
ARGH. I *HATE* these new forums. Trying again:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=7,IE=9">
<!--The viewport meta tag is used to improve the presentation and behavior of the samples
on iOS devices-->
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<title></title>
<link rel="stylesheet" href="http://js.arcgis.com/3.3/js/dojo/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://js.arcgis.com/3.3/js/esri/css/esri.css">
<style>
html, body {
height: 97%;
width: 98%;
margin: 1%;
}
#mainWindow, #header, #map, #rightPane, #leftPane, #footer {border: 1px solid #606060;}
</style>
<script type="text/javascript">var dojoConfig = { parseOnLoad: true };</script>
<script src="http://js.arcgis.com/3.3/"></script>
<script>
dojo.require("dijit.layout.BorderContainer");
dojo.require("dijit.layout.ContentPane");
dojo.require("dijit.layout.AccordionContainer");
dojo.require("esri.map");
dojo.require("dijit.form.ComboBox");
var map;
function init() {
map = new esri.Map("map", {
basemap: "topo",
center: [-118.404, 34.054],
zoom: 11
});
}
dojo.ready(init);
</script>
</head>
<body class="claro">
<div id="mainWindow" data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="design:'headline', gutters:false" style="background:#EEEEEE;width:100%;height:100%;">
<div id="header" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'top'" style="height:100px">
This is the header section
</div>
<div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'left'" id="leftPane" style="width:100px;height:100%">
<div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="title:'pane 1'">
Content for pane 1
</div>
</div>
<div id="map" class="shadow" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'center'" style="width:500px;height:700px">
</div>
<div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'right'" id="rightPane" style="width:100px;height:100%;">
This is the right section
</div>
<div id="footer" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'bottom'" style="height:150px;width:100%">
Make a selection from any of these combo boxes:<br/>
<table>
<tr>
<td>
<select id="Select1" dojotype="dijit.form.ComboBox" autocomplete="true" hasdownarrow="true" style="width: 175px; background-color:Black; font:black;color: white;">
</td>
<td>
<select id="Select2" dojotype="dijit.form.ComboBox" autocomplete="true" hasdownarrow="true" style="width: 175px; background-color:Black; font:black;color: white;">
</td>
<td>
<select id="Select3" dojotype="dijit.form.ComboBox" autocomplete="true" hasdownarrow="true" style="width: 175px; background-color:Black; font:black;color: white;">
</td>
<td>
<select id="Select4" dojotype="dijit.form.ComboBox" autocomplete="true" hasdownarrow="true" style="width: 175px; background-color:Black; font:black;color: white;">
</td>
<td>
<select id="Select5" dojotype="dijit.form.ComboBox" autocomplete="true" hasdownarrow="true" style="width: 175px; background-color:Black; font:black;color: white;">
</td>
<td>
<select id="Select6" dojotype="dijit.form.ComboBox" autocomplete="true" hasdownarrow="true" style="width: 175px; background-color:Black; font:black;color: white;">
</td>
</tr>
<tr>
<td>
<select id="Select7" dojotype="dijit.form.ComboBox" autocomplete="true" hasdownarrow="true" style="width: 175px; background-color:Black; font:black;color: white;">
</td>
<td>
<select id="Select8" dojotype="dijit.form.ComboBox" autocomplete="true" hasdownarrow="true" style="width: 175px; background-color:Black; font:black;color: white;">
</td>
<td>
<select id="Select9" dojotype="dijit.form.ComboBox" autocomplete="true" hasdownarrow="true" style="width: 175px; background-color:Black; font:black;color: white;">
</td>
<td>
<select id="Select10" dojotype="dijit.form.ComboBox" autocomplete="true" hasdownarrow="true" style="width: 175px; background-color:Black; font:black;color: white;">
</td>
<td>
<select id="Select11" dojotype="dijit.form.ComboBox" autocomplete="true" hasdownarrow="true" style="width: 175px; background-color:Black; font:black;color: white;">
</td>
</tr>
</table>
</div>
</div>
</body>
</html>
... View more
10-22-2014
03:14 PM
|
0
|
1
|
2542
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 4 weeks ago | |
| 2 | 4 weeks ago | |
| 2 | 05-21-2026 01:51 PM | |
| 1 | 03-12-2026 01:43 PM | |
| 1 | 03-12-2026 08:41 AM |