|
POST
|
After speaking to Esri support I finally got it going. I had to go into admin settings (localserver:6080/arcgis/rest/admin). Click on data in the ArcGIS Server Administrator Directory under resources. Then config in the Data Items page. Under Datastore Configuration I went to update and changed true to false. This will allow a copy of the composite locator to be loaded and published to your server. Just remember to change it back when you get done. I was told this was a known issue with version 10.2.X and should be fixed in 10.3. Good luck.
... View more
07-22-2014
05:19 AM
|
0
|
3
|
2921
|
|
POST
|
Robert, Could you post an example of how you set this up? Thanks
... View more
07-21-2014
06:26 AM
|
0
|
1
|
837
|
|
POST
|
After a little digging I have confirmed that yes, I was delusional. On the flip side that link was just what I needed. I take it that I will have to include the loadCredentials(); to the linked web map?
... View more
06-17-2014
07:48 AM
|
0
|
0
|
572
|
|
POST
|
I thought the same thing but document.getElementById('open06').onclick = function() {
window.open('url to web map');
}; must start a new one. I checked that link, it seems like more than I would have been able to do 2 months ago, yet (and I could be wrong) it was producing this wanted effect. I think it was https://developers.arcgis.com/javascript/jssamples/widget_identitymanager.html , because around that time I was experimenting the editor functions. Then again who knows what I was doing at that time.
... View more
06-17-2014
07:01 AM
|
0
|
0
|
572
|
|
POST
|
Greetings, I have a dashboard that contains links to a series of secure service web maps(that open in a new tab). Ideally, I would like the user to be able to log into a secured service on the dashboard then access the links without having to re-enter their credentials. Call me insane or delusional, but early in my JS experience(2 months ago) I could swear I achieved this by accident. I've checked a number of the posts on the forums but I haven't seen anything that looks familiar. Any ideas, links, comments on how to achieve this are definitely appreciated. Thanks.
... View more
06-17-2014
06:35 AM
|
0
|
3
|
929
|
|
POST
|
Greetings, I'm working on a public application to show the location of water utility boil orders and hydrant flushing to it's users. I wish to include a zoom function to the query so that when a polygon is created it will be display and have a button/link/object(preferably the field describing the location) to click on that will zoom to the polygon feature. Best I can figure, I need to add the accordion panein the script in order to add these additional abilities to the query. Here is my query: panther ();
function panther() {
query1.where = " active boil orders only";
console.log(query1.where);
queryTask1.execute(query1, showResults1);
}
function showResults1 (results) {
console.log("Q1");
var resultItems = [];
var resultCount = results.features.length;
for (var i = 0; i < resultCount; i++) {
var featureAttributes = results.features.attributes;
for (var attr in featureAttributes) {
resultItems.push("<b>" + attr + ":</b> " + featureAttributes[attr] + "<br>");
}
resultItems.push("<br>");
}
dom.byId("info1").innerHTML = resultItems.join("");
dom.byId("info1c").innerHTML = resultCount;
} And this is the accordion container to display the query(pardon the otter based lorem ipsum: var aContainer = new AccordionContainer({style:"height: 300px"}, "markup");
aContainer.addChild(new ContentPane({
title: "About Boil Orders",
content: "Boil orders is what we do when someone put a river otter in our lines."
}));
aContainer.addChild(new ContentPane({
title:"About Hydrant Flushing",
content:"This is how we flush out the otters."
}));
aContainer.addChild(new ContentPane({
title:"Current Boil Orders",
content:"mmmmm... boiled otter"
}));
aContainer.addChild(new ContentPane({
title:"Current Flushes",
content:"Like a toilet, otter style."
}));
aContainer.startup(); This is where I'm not sure where to go. I'm not dead set on this concept, so if anyone has a better idea one how to make this happen. Any help, links, advice would be most appreciated. Thanks
... View more
06-12-2014
06:11 AM
|
0
|
0
|
815
|
|
POST
|
Was anything modified in the past week? I've had difficulty in the past showing query results, but I have had some luck once I modified the parameters.You might want to try: myQueryTask.execute(myQuery, showResults(featureset));
... View more
06-12-2014
05:52 AM
|
0
|
0
|
853
|
|
POST
|
First off, thanks for your help. I really appreciate it. Your sample works as needed, but I'm getting some weird actions from it. The template only appears about half the time in your map, not at all in mine with the changes, and not in your map with my layers(have to server log in btw). I'm getting the impression that there is an underlying issue. I don't want to burn too much of your time, but should the function be called somewhere else? Deferred after the login?
... View more
05-20-2014
07:17 AM
|
0
|
0
|
1097
|
|
POST
|
Now it is throwing the whole array of all layers. var layers = arrayUtils.map(evt.layers, function(result) {
return { featureLayer: result.layer }; Should this selection be modified for the single layer?
... View more
05-20-2014
06:12 AM
|
0
|
0
|
1097
|
|
POST
|
It's secured so I can't post it. The layer is showing up, but again the template is blank. function initSelectToolbar(evt) {
var templateLayers = arrayUtils.map(evt.layers, function(result){
return result.layer.id =='postit';
console.log(result.layer.id);
});
var templatePicker = new TemplatePicker({
featureLayers: templateLayers,
grouping: true,
rows: "auto",
columns: 3
}, "templateDiv");
templatePicker.startup();
var layers = arrayUtils.map(evt.layers, function(result) {
return { featureLayer: result.layer };
});
var settings = {
map: map,
templatePicker: templatePicker,
layerInfos: layers,
toolbarVisible: true,
createOptions: {
polylineDrawTools:[ Editor.CREATE_TOOL_FREEHAND_POLYLINE ],
polygonDrawTools: [ Editor.CREATE_TOOL_FREEHAND_POLYGON,
Editor.CREATE_TOOL_CIRCLE,
Editor.CREATE_TOOL_TRIANGLE,
Editor.CREATE_TOOL_RECTANGLE
]
},
toolbarOptions: {
reshapeVisible: true
}
};
var params = {settings: settings};
var myEditor = new Editor(params,'editorDiv');
//define snapping options
var symbol = new SimpleMarkerSymbol(
SimpleMarkerSymbol.STYLE_CROSS,
15,
new SimpleLineSymbol(
SimpleLineSymbol.STYLE_SOLID,
new Color([255, 0, 0, 0.5]),
5
),
null
);
map.enableSnapping({
snapPointSymbol: symbol,
tolerance: 20,
snapKey: keys.ALT
});
myEditor.startup();
} Thanks for taking a look.
... View more
05-20-2014
05:44 AM
|
0
|
0
|
1097
|
|
POST
|
I checked out that fiddle and it appears to be what I'm looking for, but whenever I hit run it restarts without populating the template. This is regardless of whether changes were made or not. I tried loading my point layers in, but it came back empty as well. Am I doing something wrong?
... View more
05-20-2014
05:08 AM
|
0
|
0
|
1097
|
|
POST
|
I'm trying to figure out how to get the editor template to load only one layer into a content pane. It was suggest that I change the array to filter: var templateLayers = arrayUtils.map(evt.layers, function(result){
return result.layer; to: var templateLayers = arrayUtils.filter(evt.layers, function(result){
return result.layer.id == "id of layer you want";
}); I have had no luck thus far getting it to pull any layers... Any ideas?
... View more
05-19-2014
11:03 AM
|
0
|
8
|
1643
|
|
POST
|
Pow! 4 gold stars, Jeff! Also, I removed the ready and it work all the same. Really appreciate your help.
... View more
05-16-2014
11:00 AM
|
0
|
0
|
374
|
|
POST
|
Correction, I did have optionValue in my IF when I got it to work on it's own(not sure why I changed it). I tried the registrybyId and it threw the same console error "option.selectedIndex is undefined". var option= dom.byId("selectfield");
var optionValue = option.options[option.selectedIndex].value;
console.log(optionValue);
if (optionValue == "ON"){map.centerAndZoom(pt, 12);}
else {} I'm not sure why this conflicted with the parser, but I'm wondering now if it doesn't have something to do with <select data-dojo-type="dijit/form/Select" class="field" name="selectfield" id="selectfield">
<option value="ON">TRACKING ON</option>
<option value="OFF">TRACKING OFF</option>
</select> I'm at a loss. Can you think of a work around?
... View more
05-16-2014
10:13 AM
|
0
|
0
|
1643
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-25-2015 09:25 AM | |
| 1 | 08-26-2015 05:13 AM | |
| 1 | 08-27-2015 08:59 AM | |
| 1 | 04-13-2015 12:06 PM | |
| 1 | 02-03-2015 07:29 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-05-2023
04:48 PM
|