|
POST
|
Hi Ryan, Two corrections in your code. You did't wire the map load event to MapReady function. Add below line before your map.addLayers([orthos]);
map.on("load", mapReady);
In your map ready function id of your checkbox is wrong.It should be gvmCheckbox not popupCheckbox
... View more
08-28-2014
05:08 PM
|
1
|
1
|
1693
|
|
POST
|
Hi Franky, Select by location using javascript api. Edit fiddle - JSFiddle
... View more
08-27-2014
11:18 PM
|
1
|
0
|
1529
|
|
POST
|
After thought May be is this what you want? Format Popup Content | Guide | ArcGIS API for JavaScript (look for Template that references a related field and uses it in a chart: at the end)
... View more
08-27-2014
10:31 PM
|
2
|
2
|
2545
|
|
POST
|
Hi Franky, Yes. Assuming you are referring to ArcMap here. what you need is select by line. ArcGIS Desktop
... View more
08-27-2014
10:13 PM
|
1
|
2
|
1529
|
|
POST
|
Hi Chris, Is this what you are after? Edit fiddle - JSFiddle
... View more
08-27-2014
07:14 PM
|
2
|
1
|
1194
|
|
POST
|
Hi Mathew, The elevation profile chart in the template is a dijit widget. You can get this widget by extracting this folder elevation-profile-template/js/ElevationsProfile at master · Esri/elevation-profile-template · GitHub from git hub and placing it in your js folder. Call the widget in you application similar to how it's done in elevation-profile-template/main.js at master · Esri/elevation-profile-template · GitHub , below region which does the work. Note: namespace application is resolved to js folder in elevation-profile-template/index.html at master · Esri/elevation-profile-template · GitHub
// ===========================================================================================//
// ELEVATIONS PROFILE PARAMETERS //
var profileParams = {
map: this.map,
profileTaskUrl: this.config.helperServices.elevationSync.url, // Place your GP task url here.
scalebarUnits: this.config.scalebarUnits
};
// ELEVATIONS PROFILE //
var elevationsProfile = new ElevationsProfile(profileParams, dom.byId('profileChartNode'));
// SEND ERRORS TO THE CONSOLE //
elevationsProfile.on("error", console.warn);
// ENABLE/DISABLE MAP EVENTS WHEN USER IS DRAWING WITH MEASUREMENT DISTANCE TOOL //
elevationsProfile.on("measure-distance-checked", lang.hitch(this, function (evt) {
if (evt.checked) {
connect.disconnect(this.clickEventHandle);
this.clickEventHandle = null;
} else {
this.clickEventHandle = connect.connect(this.map, "onClick", this.clickEventListener);
}
}));
// STARTUP THE DIJIT //
elevationsProfile.startup();
// ===========================================================================================//
As long as your GP task response is similar to response mentioned here Profile—ArcGIS REST API: Elevation Analysis services | ArcGIS for Developers you should be good. Hope this helps.
... View more
08-27-2014
05:14 PM
|
2
|
4
|
2545
|
|
POST
|
Hi ALex, My knowledge on JQuery Layout is limited. If you look at my code. Below span tag
<span id="shadow" style="height: 100%; width: 100%;"></span>
And below CSS style are the one's which is creating the map shadow.
#shadow {
-moz-box-shadow: inset 0 0 10px #000000;
-webkit-box-shadow: inset 0 0 10px #000000;
box-shadow: inset 0 0 10px #000000;
z-index: 10000;
background: transparent;
position: absolute;
left: 0px;
top: 0px;
}
The span tag is placed within the map container, as long as you place the span tag inside your map container div and have the CSS class you should get the shadow.
... View more
08-27-2014
09:00 AM
|
0
|
1
|
2548
|
|
POST
|
Hi Robert, Your's is the better way of doing it. Frankly din't occur to me then
... View more
08-27-2014
08:52 AM
|
0
|
5
|
3081
|
|
POST
|
Hi Michael, You will have to override esri.layers.KMLLayer with your own custom class. set your service url for serviceUrl property. your class will look something like below.
var myKmlLayer = declare(esri.layers.KMLLayer,{
serviceUrl: "https://myserver/arcgis/sharing/kml"
});
var kmlLayer = new myKmlLayer();
map.addLayer(kmlLayer)
Reference: Classy JavaScript with dojo/_base/declare - The Dojo Toolkit might help further.
... View more
08-27-2014
08:37 AM
|
0
|
1
|
2761
|
|
POST
|
Hi Ken, Thanks for highlighting that. Since i was zooming in on mouse over (which is what click does), click event seems to be doing nothing. Below Update. Edit fiddle - JSFiddle Jeff, Since map.graphics always sits on top, i have moved your search results to selectionLayer and highligths to map.graphics, in the above fiddle.
... View more
08-27-2014
08:09 AM
|
1
|
7
|
3081
|
|
POST
|
Hi Jeff, I have updated the fiddle to highlight on mouse over and out. I have changed your symbol color and style. Edit fiddle - JSFiddle
... View more
08-27-2014
07:47 AM
|
0
|
9
|
3081
|
|
POST
|
Hi Michael, What happens when you replace http://dl.dropbox.com/u/2654618/kml/Wyoming.kml with your URL? If your kml is a public url please share. One thing I noticed is your sample url has https, if it is secured then you should use credential.
... View more
08-27-2014
07:17 AM
|
0
|
3
|
2761
|
|
POST
|
Hi Ryan, In your fiddle move line 92 to after line 89. Like below: gsvc.project([point], outSR, function (projectedPoints) { pt = projectedPoints[0]; window.open("http://fiscalims.summitoh.net/GVViewer/ViewerAX.htm?res=2&lat=" + pt.y.toFixed(5) + "&lon=" + pt.x.toFixed(5)); }); What's happening is, your window.open will always get executed before project is completed. For the first time it'll fail because pt would be null, from next time on it'll use the X and Y from your previous project operation.
... View more
08-27-2014
07:01 AM
|
2
|
4
|
1693
|
|
POST
|
Hi Jeff, I have removed on from your line 127 and 128. grid.on("MouseOver", onMouseOverHandler); grid.on("MouseOut", onMouseOutHandler); Is this what you are after? Edit fiddle - JSFiddle
... View more
08-27-2014
06:51 AM
|
0
|
12
|
3081
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-31-2014 06:04 AM | |
| 1 | 09-25-2014 06:03 PM | |
| 1 | 09-16-2014 06:15 PM | |
| 1 | 10-08-2014 03:50 AM | |
| 1 | 08-25-2014 08:33 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|