|
POST
|
Ben, Is there any way to making the floating pane behave like a dialog box as far as it resizing on the fly? there is an example of my dialog box here: WyoBio :: Map When you click on a point on the map it populates the dialog box. if you click on other features with more data the box resizes automatically. I have went to a floating pane because the dialog is modal and disables some of the maps functionality. I have tried to get the floating pane to behave in a similar fashion but its not working.
... View more
05-22-2015
02:08 PM
|
0
|
1
|
997
|
|
POST
|
Jake, Thanks for the information. The checkout/check-in works fine even though that error occurs.
... View more
05-20-2015
11:54 AM
|
0
|
0
|
527
|
|
POST
|
I am getting this error: I get this error when opening the .apm file in ArcPad. Any suggestions?
... View more
05-20-2015
11:44 AM
|
0
|
2
|
3293
|
|
POST
|
I made the Banner "fixed" position in the CSS and that corrected the problem
... View more
05-19-2015
09:51 AM
|
0
|
0
|
942
|
|
POST
|
when the application is viewed at 1024 x 600 for example, the dropdown menus and check boxes (when selected) cause the map to shift up. here is a link to the application: WyWCW Atlas I know this has something to do with CSS but cannot figure out why ow what is causing the problem. Anyone have any ideas? Thanks ahead of time!
... View more
05-15-2015
01:30 PM
|
0
|
2
|
4281
|
|
POST
|
I have some dropdown menus that are on the right side of my application used for queries. the dialog box is used for some zoom tools i use. so they are two separate features. i have the dialog box set to nonModal. I would like to be able for the users to use the dropdown menus while the dialog box is open Is there any way to override this? Thanks!
... View more
04-23-2015
06:39 AM
|
0
|
0
|
3540
|
|
POST
|
Can you post the <HEAD> information like style sheet links you are using for the code?
... View more
04-17-2015
08:40 AM
|
0
|
3
|
7073
|
|
POST
|
The attachments do not show up in that info window. The template is being created by this code: var featureLayerInfoTemplate = new InfoTemplate();
featureLayerInfoTemplate.setTitle("<b>Secies Type: ${SpeciesType:speciesDomainLookup}</b>");
var infoTemplateContent =
"<span class=\"infoTemplateContentRowLabel\">Date: </span><span class=\"infoTemplateContentRowItem\">${sampDate:DateFormat}</span><br>" +
"<span class=\"infoTemplateContentRowLabel\">Species Type: </span><span class=\"infoTemplateContentRowItem\">${SpeciesType:speciesDomainLookup}</span><br>" +
"<span class=\"infoTemplateContentRowLabel\">Common Name: </span><span class=\"infoTemplateContentRowItem\">${commonName:commonNameDomainLookup}</span><br>" +
"<span class=\"infoTemplateContentRowLabel\">Phenology: </span><span class=\"infoTemplateContentRowItem\">${plantPhenology:phenologyDomainLookup}</span><br>" +\
"<span class=\"infoTemplateContentRowLabel\">Habitat: </span><span class=\"infoTemplateContentRowItem\">${Habitat:habitatDomainLookup}</span><br>" +
"<span class=\"infoTemplateContentRowLabel\">Weather: </span><span class=\"infoTemplateContentRowItem\">${Weather:weatherTypeDomainLookup}</span><br>" +
"<span class=\"infoTemplateContentRowLabel\">Is Sensitive?: </span><span class=\"infoTemplateContentRowItem\">${IsSensitive:sensitiveTypeDomainLookup}</span>";
featureLayerInfoTemplate.setContent(infoTemplateContent); That code does not specify whether or not attachments are visible. I want to be able to see the attachment manager in that window.
... View more
03-31-2015
07:55 AM
|
0
|
0
|
800
|
|
POST
|
How do you get the attachments to show in the InfoWindow for this example? I can see them when you create a point, but when you identify the point it is not there. https://developers.arcgis.com/javascript/jssamples/mobile_citizenrequest.html If the code is modified on line 693 to "showAttachments": true, then the window when collecting a point looks like this: I would like the Attachments to show up in the identify window as well. The template is being created by this code: var featureLayerInfoTemplate = new InfoTemplate();
featureLayerInfoTemplate.setTitle("<b>Secies Type: ${SpeciesType:speciesDomainLookup}</b>");
var infoTemplateContent =
"<span class=\"infoTemplateContentRowLabel\">Date: </span><span class=\"infoTemplateContentRowItem\">${sampDate:DateFormat}</span><br>" +
"<span class=\"infoTemplateContentRowLabel\">Species Type: </span><span class=\"infoTemplateContentRowItem\">${SpeciesType:speciesDomainLookup}</span><br>" +
"<span class=\"infoTemplateContentRowLabel\">Common Name: </span><span class=\"infoTemplateContentRowItem\">${commonName:commonNameDomainLookup}</span><br>" +
"<span class=\"infoTemplateContentRowLabel\">Phenology: </span><span class=\"infoTemplateContentRowItem\">${plantPhenology:phenologyDomainLookup}</span><br>" +\
"<span class=\"infoTemplateContentRowLabel\">Habitat: </span><span class=\"infoTemplateContentRowItem\">${Habitat:habitatDomainLookup}</span><br>" +
"<span class=\"infoTemplateContentRowLabel\">Weather: </span><span class=\"infoTemplateContentRowItem\">${Weather:weatherTypeDomainLookup}</span><br>" +
"<span class=\"infoTemplateContentRowLabel\">Is Sensitive?: </span><span class=\"infoTemplateContentRowItem\">${IsSensitive:sensitiveTypeDomainLookup}</span>";
featureLayerInfoTemplate.setContent(infoTemplateContent); That code does not specify whether or not attachments are visible. I want to be able to see the attachment manager in that window.
... View more
03-31-2015
06:54 AM
|
0
|
2
|
3443
|
|
POST
|
solution: i solved this problem by creating a unique id (line 23): if (map.getLayer("waterResources").visibleLayers.length > 0) {
//Water
var idWaterTask = new IdentifyTask(urlWaterResources);
var idWaterParams = new IdentifyParameters();
idWaterParams.tolerance = 1.2;
idWaterParams.returnGeometry = true;
//idWaterParams.spatialReference = map.spatialReference;
idWaterParams.layerIds = map.getLayer("waterResources").visibleLayers;
idWaterParams.layerOption = IdentifyParameters.LAYER_OPTION_ALL;
idWaterParams.mapExtent = map.extent;
idWaterParams.geometry = inPnt;
waterResources = idWaterTask.execute(idWaterParams, function (result) {
if (result.length > 0) {
var LayerNameMain = "Water layers";
myData.push({id: LayerNameMain, name: LayerNameMain, parent: 'All', children: true});
for (var i = 0; i < result.length; i++) {
if (result.layerName === "SEO Wells (zoom in for points)") {
var layerTitle = result.layerName;
var layerName1 = result.layerName + result.value; //unique ID so no duplicates
var layerName2 = result.value;
if (document.getElementById(layerTitle + 'CB').checked === true) {
myData.push({id: layerName1, name: "SEO Well - " + layerName2, parent: LayerNameMain, children: true});
//Convert features object into array to pass to for each to process
for (var key in result.feature.attributes) {
if (result.feature.attributes.hasOwnProperty(key)) {
if (key === "OBJECTID" || key === "Shape_Leng" || key === "OBJECTID_1" || key === "Shape") {
} else {
var k = key;
var v = result.feature.attributes[key];
if (k === "Hyperlink" || k === "URL") {
myData.push({id: k + v, name: k + " - " + "<i><u>Click here for more information</u></i>", url: v, children: false, parent: layerName1});
}
else {
myData.push({id: k + v, name: k + " - " + "<i>" + v + "</i>", children: false, parent: layerName1});
}
}
}
}
}
changeTab();
}
}
}
});
}
... View more
03-20-2015
08:44 AM
|
0
|
0
|
695
|
|
POST
|
solution: in the map.js we replaced all of the myLayer.on('update-end', buildLayerList); with on(map, "update-end", buildLayerList); here is the updated code: function buildLayerList() {
require(["dojo/on",
"dojo/dom",
"dijit/form/CheckBox",
"dojo/_base/array"], function (on, dom, CheckBox, arrayUtils) {
var mapLayer = map.layerIds;
var myItems = [];
var selectedLayers = [];
arrayUtils.map(mapLayer, function (layerName) {
var myLayer = map.getLayer(layerName);
if (myLayer.id !== "basinLayer" && myLayer.id !== "NAIP2012" && myLayer.id !== "NAIP2009" && myLayer.id !== "NAIP2006" && myLayer.id !== "trLayer" && myLayer.id !== "Label SEO wells by actual yield" && myLayer.id !== "Label SEO wells by MWBZ top") {
if (myLayer.visibleLayers) {
var items = arrayUtils.map(myLayer.layerInfos, function (info, index) {
if (document.getElementById(info.name + "CB")) {
if (document.getElementById(info.name + "CB").checked) {
selectedLayers.push(info.name);
}
}
});
}
}
});
arrayUtils.map(mapLayer, function (layerName2) {
var myLayer2 = map.getLayer(layerName2);
if (myLayer2.id !== "basinLayer" && myLayer2.id !== "NAIP2012" && myLayer2.id !== "NAIP2009" && myLayer2.id !== "NAIP2006" && myLayer2.id !== "trLayer" && myLayer2.id !== "Label SEO wells by actual yield" && myLayer2.id !== "Label SEO wells by MWBZ top") {
if (myLayer2.visibleLayers) {
var items = arrayUtils.map(myLayer2.layerInfos, function (info, index) {
if (info.name === "Label SEO wells by depth" || info.name === "Label SEO wells by actual yield" || info.name === "Label SEO wells by MWBZ top") {
}
else {
if (myLayer2.visibleLayers.indexOf(info.id) > -1) {
var layerWasSelected = '';
arrayUtils.map(selectedLayers, function (selectedLayerName) {
if (selectedLayerName === info.name) {
layerWasSelected = 'checked';
}
}
);
return "<input type='checkbox' class='list_item' " + layerWasSelected + " id='" + info.name + "CB'" + "/><label for='" + info.id + "'>" + info.name + "</label><br>";
}
}
});
myItems = myItems.concat(items);
}
}
});
var legendList = dom.byId("legendDiv");
legendList.innerHTML = myItems.join(' ');
document.getElementById("legendDiv").style.display = "block";
document.getElementById("blTree").style.display = "block";
});
}
... View more
03-19-2015
01:21 PM
|
1
|
0
|
651
|
|
POST
|
I created a tree and it is populating duplicate records. Here is a screenshot: The records correspond to the amount of features identified. here is the code: if (map.getLayer("waterResources").visibleLayers.length > 0) {
//Water
var idWaterTask = new IdentifyTask(urlWaterResources);
var idWaterParams = new IdentifyParameters();
idWaterParams.tolerance = 1.2;
idWaterParams.returnGeometry = false;
//idWaterParams.spatialReference = map.spatialReference;
idWaterParams.layerIds = map.getLayer("waterResources").visibleLayers;
idWaterParams.layerOption = IdentifyParameters.LAYER_OPTION_ALL;
idWaterParams.mapExtent = map.extent;
idWaterParams.geometry = inPnt;
waterResources = idWaterTask.execute(idWaterParams, function (result) {
for (var i = 0; i < result.length; i++) {
if (result.layerName === "SEO Wells (zoom in for points)") {
var layerName1 = result.layerName;
var layerName2 = result.value;
if (document.getElementById(layerName1 + 'CB').checked === true) {
myData.push({id: layerName1, name: "SEO Well - " + layerName2, parent: 'All', children: true});
//Convert features object into array to pass to for each to process
for (var key in result.feature.attributes) {
if (result.feature.attributes.hasOwnProperty(key)) {
if (key === "OBJECTID" || key === "Shape_Leng" || key === "OBJECTID_1" || key === "Shape") {
} else {
var k = key;
var v = result.feature.attributes[key];
if (k === "Hyperlink" || k === "URL") {
myData.push({id: k + v, name: k + " - " + "<i><u>Click here for more information</u></i>", url: v, children: false, parent: layerName1});
}
else {
myData.push({id: k + v, name: k + " - " + "<i>" + v + "</i>", children: false, parent: layerName1});
}
}
}
}
}
}
... View more
03-12-2015
01:51 PM
|
0
|
1
|
3147
|
|
POST
|
Here is some code to create the checkbox list. However, when i pan the map the check boxes in the list become unchecked. Is there a way to stop this from happening? function buildLayerList() {
require(["dojo/on", "dojo/dom", "dojo/_base/array"], function (on, dom, arrayUtils) {
var mapLayer = map.layerIds;
var myItems = [];
arrayUtils.map(mapLayer, function (layerName) {
var myLayer = map.getLayer(layerName);
if (myLayer.id !== "NAIP2012" && myLayer.id !== "NAIP2009" ) {
if (myLayer.visibleLayers) {
//console.log(myLayer.id + " : " + "has vis Layers");
var items = arrayUtils.map(myLayer.layerInfos, function (info, index) {
if (info.name === "Label SEO wells by depth" || info.name === "Label SEO wells by actual yield" || info.name === "Label SEO wells by MWBZ top") {
// console.log(info.name);
} else {
if (myLayer.visibleLayers.indexOf(info.id) > -1) {
return "<input type='checkbox' class='list_item'" + (info.defaultVisibility ? "checked=checked" : "") + "' id='" + info.name + "CB'' /><label for='" + info.id + "'>"
+ info.name + "</label><br>";
}
}
});
myItems = myItems.concat(items);
}
}
});
var ll = dom.byId("legendDiv");
ll.innerHTML = myItems.join(' ');
document.getElementById("legendDiv").style.display = "block";
});
} I am calling on the buildLayerListin the map: mapLayer.on('update-end', buildLayerList);
... View more
03-11-2015
10:45 AM
|
0
|
0
|
541
|
|
POST
|
I have a table of contents that is used to toggle visibility of layers. I also have a dialog box that populates with the visible layers so that the user can pick from the visible layers what layer they would like to identify on. They use a checkbox to do this. However, when the map is panned or a feature is zoomed to the checkbox becomes unchecked. here is a screen shot. Here is the code i am using for creating the visible layer checkbox: //get layer names for layers window and create checkboxes
function buildLayerList() {
require(["dojo/on", "dojo/dom", "dojo/_base/array"], function (on, dom, arrayUtils) {
var mapLayer = map.layerIds;
var myItems = [];
arrayUtils.map(mapLayer, function (layerName) {
var myLayer = map.getLayer(layerName);
if (myLayer.id !== "NAIP2012" && myLayer.id !== "NAIP2009" && myLayer.id !== "NAIP2006" && myLayer.id !== "trLayer") {
if (myLayer.visibleLayers) {
//console.log(myLayer.id + " : " + "has vis Layers");
var items = arrayUtils.map(myLayer.layerInfos, function (info, index) {
if (myLayer.visibleLayers.indexOf(info.id) > -1) {
return "<input type='checkbox' class='list_item'" + (info.defaultVisibility ? "checked=checked" : "") + "' id='" + info.name + "CB'' /><label for='" + info.id + "'>"
+ info.name + "</label><br>";
}
});
myItems = myItems.concat(items);
}
}
});
var ll = dom.byId("legendDiv");
ll.innerHTML = myItems.join(' ');
document.getElementById("legendDiv").style.display = "block";
});
}
... View more
03-09-2015
01:41 PM
|
0
|
1
|
4076
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-16-2022 11:47 AM | |
| 1 | 06-28-2017 06:36 AM | |
| 1 | 06-23-2016 06:54 AM | |
| 1 | 03-19-2015 01:21 PM | |
| 1 | 07-20-2017 06:07 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-12-2025
07:31 AM
|