POST
|
tried with that it's not working in URL I'm trying http://localhost:55481/HtmlPage.html when i paste the service in browser service is visible after going to advanced and clicking proceed to " "(unsafe) and the search engine will be
... View more
12-18-2018
11:29 AM
|
0
|
9
|
1552
|
POST
|
Robert in browser it appears as your connection is not secure, after clicking “proceed to begin” it loads service
... View more
12-18-2018
10:40 AM
|
0
|
11
|
1552
|
POST
|
below example works without error, but if i change the service to https from http then the error is appeared as some certification error(image below) added proxy.ashx, proxy.config but still getting same certification error. can we handle this in code or is it something related to server? <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<title>FeatureLayer</title>
<link rel="stylesheet" href="https://js.arcgis.com/3.27/esri/css/esri.css">
<script src="https://js.arcgis.com/3.27/"></script>
<style>
html, body, #map {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<script>
require([
"esri/map",
"esri/layers/FeatureLayer",
"dojo/domReady!"
],
function(
Map,
FeatureLayer
) {
var map = new Map("map", {
basemap: "hybrid",
center: [122.3321, 47.6062],
zoom: 12
});
var featureLayer = new FeatureLayer("http://aaaaa.bbbbb.com/arcgis/rest/services/Maps/CityMap/MapServer/1");
map.addLayer(featureLayer);
});
</script>
</head>
<body>
<div id="map"></div>
</body>
</html>
... View more
12-18-2018
10:10 AM
|
0
|
17
|
3011
|
POST
|
Robert Scheitlin, GISP i added label/text to point by following below code, but i didn't figured to add an image.png instead of point for example instead of point i want to add https://i.pinimg.com/236x/a7/e5/a8/a7e5a8580157a9bc7a0e61da6395b3ba--high-rise-apartments-building-drawing.jpg didn't find examples regarding to image change in javascript var layerdata = new FeatureLayer(State_Service, {
mode: FeatureLayer.MODE_SNAPSHOT,
infoTemplate: popupTemplate,
outFields: ["*"],
});
var statesColor = new Color("crimson");
var statesLabel = new TextSymbol().setColor(statesColor);
statesLabel.setAlign(TextSymbol.ALIGN_MIDDLE);
statesLabel.font.setSize("9pt");
statesLabel.font.setFamily("arial");
statesLabel.font.setWeight(esri.symbol.Font.WEIGHT_BOLD);
var json = {
"labelExpressionInfo": { "value": "{Name}" }
};
var labelClass = new LabelClass(json);
labelClass.symbol = statesLabel;
layerdata.setLabelingInfo([labelClass]);
... View more
12-11-2018
06:17 AM
|
0
|
1
|
1603
|
POST
|
Robert, i want to change the image of points from layer Thanks
... View more
12-10-2018
12:55 PM
|
0
|
3
|
1603
|
POST
|
Robert, i want to change the image of points from layer
... View more
12-10-2018
08:35 AM
|
0
|
0
|
1603
|
POST
|
i was trying to add a custom picture.png file for features and a label to it for example: buildingImage.png+(Building Id) went to through some examples, but didn't helped me. Any suggestions Thanks <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
<title>FeatureTable - Custom Menu Items</title>
<link rel="stylesheet" href="https://js.arcgis.com/3.26/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="https://js.arcgis.com/3.26/esri/css/esri.css">
<script src="https://js.arcgis.com/3.26/"></script>
<style>
html, body, #map {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
</style>
<script>
require([
"esri/layers/FeatureLayer",
"esri/geometry/Extent",
"esri/graphicsUtils",
"esri/tasks/query",
"esri/map",
"dojo/dom",
"dojo/parser",
"dojo/ready",
"dojo/on",
"dijit/layout/ContentPane",
"dijit/layout/BorderContainer"
], function (
FeatureLayer, Extent, graphicsUtils, Query, Map,
dom, parser, ready, on, ContentPane, BorderContainer
) {
parser.parse();
ready(function(){
var map = new Map("map",{
basemap: "dark-gray",
extent: new Extent({xmax: -13035353.854156237, xmin: -13053431.211345658,
ymax: 4038351.1313028745, ymin: 4034089.766975982,
"spatialReference":{"wkid":102100,"latestWkid":3857}
})
});
//Load a FeatureTable to the application once map loads
map.on("load", loadTable);
function loadTable(){
// editable FeatureLayer
var myFeatureLayer = new FeatureLayer("https://sampleserver6.arcgisonline.com/arcgis/rest/services/RedlandsEmergencyVehicles/FeatureServer/1", {
mode: FeatureLayer.MODE_ONDEMAND,
outFields: ["*"],
visible: true,
id: "fLayer2"
});
map.addLayer(myFeatureLayer);
}
});
});
</script>
</head>
<body class="claro esri">
<div data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline'" style="width:100%; height:100%;">
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center', splitter:true" style="height:50%">
<div id="map"></div>
</div>
<div id="bot" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'bottom', splitter:true">
</div>
</div>
</body>
</html>
... View more
12-10-2018
08:16 AM
|
0
|
6
|
1719
|
POST
|
i was trying to add image same as above pic in feature table and on row-select zoom to point below is my code for featuretable i tried to add image for objectid Any suggestions Thanks var myFeatureTable = new FeatureTable({
featureLayer: layerdata,
map: map,
editable: false,
dateOptions: {
datePattern: 'M/d/y',
timeEnabled: true,
timePattern: 'H:mm',
},
syncSelection: true,
showRelatedRecords: true,
showAttachments: true,
fieldInfos: [
{
name: 'OBJECTID',
alias: 'Zoom to Location',
//formatter: makeZoomButton('${objectid}')
}
],
menuFunctions: [
],
outFields: ["*"],
}, 'myTableNode');
myFeatureTable.startup(); function makeZoomButton(id) {
//set the feature 'id' as the alt value for the image so that it can be used to query below
var zBtn = "<div data-dojo-type='dijit/form/Button'><img src='ZoomIn.png' alt='" + id + "'";
zBtn = zBtn + " width='18' height='18'></div>";
return zBtn;
}
... View more
12-07-2018
08:02 AM
|
0
|
3
|
1257
|
POST
|
Robert, by using this line it fails to behave as expected map.setInfoWindowOnClick(true);
... View more
12-05-2018
10:20 AM
|
0
|
1
|
758
|
POST
|
measure-start and end events works for point or straight line polylines, but this condition fails when it is polygon or an area with multiple edges/corners var measurement = new Measurement({
map: map
}, dom.byId("measurementDiv"));
measurement.startup();
//measurement.on("measure-start", function (evt) {
// if (map.infoWindow.isShowing) {
// map.infoWindow.hide();
// }
//});
//measurement.on("measure-end", function (evt) {
// if (map.infoWindow.isShowing) {
// map.infoWindow.hide();
// }
//}); Any suggestions? Thanks
... View more
12-05-2018
09:59 AM
|
0
|
3
|
899
|
POST
|
Robert, Tried with your code it got below alert in IE and it works in chrome Thanks
... View more
12-04-2018
08:52 AM
|
0
|
1
|
1803
|
POST
|
Below code works in chrome, but it getting syntax error in IE 11 because of expression => i used the => expression to filter data, Any suggestions Thanks function customExportCSV(evt) {
var data = propertylayer._graphicsVal;
var csv = convertArrayOfObjectsToCSV({
data: data
});
if (!csv.match(/^data:text\/csv/i)) {
csv = 'data:text/csv;charset=utf-8,' + csv;
}
//var blob = new Blob([csv], { type: "text/csv" });
//if (navigator.msSaveBlob) { // IE 10+
// //var blob = new Blob([csv], { type: 'text/csv;charset=utf-8;' });
// //navigator.msSaveBlob(blob, "Exportdata.csv");
// navigator.msSaveBlob(blob, "csvname.csv")
//}
var encodedUri = encodeURI(csv);
var link = document.createElement('a');
link.setAttribute('href', encodedUri);
link.setAttribute('download', "Exportdata.csv");
link.click();
}
function convertArrayOfObjectsToCSV(value) {
var result, ctr, keys, columnDelimiter, lineDelimiter, data;
data = Array.from(new Set(value.data)).filter(d => d).map(d => d.attributes) || null;
if (!data || !data.length) {
return null;
}
columnDelimiter = value.columnDelimiter || ',';
lineDelimiter = value.lineDelimiter || '\n';
keys = Object.keys(data[1]);
result = '';
result += keys.join(columnDelimiter);
result += lineDelimiter;
data.forEach(function (item) {
ctr = 0;
keys.forEach(function (key) {
if (ctr > 0)
result += columnDelimiter;
result += item[key];
ctr++;
});
result += lineDelimiter;
});
return result;
}
... View more
12-04-2018
08:39 AM
|
0
|
3
|
2107
|
POST
|
Robert, i have nearly 20 features to show images, the count is not constant it may change
... View more
12-03-2018
12:21 PM
|
0
|
1
|
1317
|
Title | Kudos | Posted |
---|---|---|
1 | 04-22-2019 06:52 AM | |
1 | 08-27-2018 09:37 AM | |
1 | 08-20-2019 01:12 PM | |
1 | 12-18-2018 12:17 PM | |
1 | 03-28-2019 08:22 AM |
Online Status |
Offline
|
Date Last Visited |
01-11-2024
09:04 PM
|