BLOG
|
This is super exciting, I love to be part of these great achievements which will make a huge impact! Noah Sager Thank you very much.
... View more
05-30-2020
12:11 PM
|
1
|
0
|
1290
|
POST
|
Can you share the log, please. just to make it more clear issue.
... View more
03-19-2017
03:06 AM
|
0
|
0
|
550
|
POST
|
I cannot believe that! This is the problem .. map.setScale(2500) vs. map.setScale(2500.0) -_-
... View more
08-08-2016
07:33 AM
|
0
|
0
|
390
|
POST
|
Hi, We are trying to print the map via template, In Silverlight we was modify the Scale By Map.ZoomToResolution So the printed map have correct Scale. Now, We are Trying to print the map using same template, but the Scale is not correct and we cannot modify the resolution of the map! Any Ideas? Please help .. Regards,
... View more
08-08-2016
05:36 AM
|
0
|
1
|
647
|
POST
|
Hi, Pavel Veselský I think this workaround using JQuery is acting fine .. Step 1: add CSS .. .deleteAttachment{display:none;} Step 2: add JS in the featureLayer.on("click"){ ... } var element = $(".esriPopupWrapper >.sizer.content > .contentPane > .attachmentEditor > div > form");
element.remove();
setTimeout(function(){
element = $(".deleteAttachment");
element.remove();
}, 1000); So, the result will be like below .. <!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>SanFrancisco311 - Incidents</title>
<link rel="stylesheet" href="https://js.arcgis.com/3.16/esri/css/esri.css">
<style>
html, body { height: 100%; width: 100%; margin: 0; overflow: hidden; }
#map { height: 100%; padding: 0;}
#footer { height: 2em; text-align: center; font-size: 1.1em; padding: 0.5em; }
.dj_ie .infowindow .window .top .right .user .content { position: relative; }
.dj_ie .simpleInfoWindow .content {position: relative;}
.deleteAttachment{display:none;}
</style>
<script src="jquery-1.12.2.min.js"></script>
<script src="https://js.arcgis.com/3.16/"></script>
<script>
var map;
require([
"esri/map",
"esri/layers/FeatureLayer",
"esri/dijit/editing/AttachmentEditor",
"dojo/parser", "dojo/dom",
"dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dojo/domReady!"
], function(
Map, FeatureLayer, AttachmentEditor,
parser, dom
) {
parser.parse();
map = new Map("map", {
basemap: "gray",
center: [-95, 40],
zoom: 4
});
map.on("load", mapLoaded);
function mapLoaded() {
var featureLayer = new FeatureLayer("https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/Prominent_Peaks_attach/FeatureServer/0",{
mode: FeatureLayer.MODE_ONDEMAND
});
map.infoWindow.setContent("<div id='content' style='width:100%'></div>");
map.infoWindow.resize(350,200);
var attachmentEditor = new AttachmentEditor({}, dom.byId("content"));
attachmentEditor.startup();
featureLayer.on("click", function(evt) {
var objectId = evt.graphic.attributes[featureLayer.objectIdField];
map.infoWindow.setTitle(objectId);
attachmentEditor.showAttachments(evt.graphic,featureLayer);
map.infoWindow.show(evt.screenPoint, map.getInfoWindowAnchor(evt.screenPoint));
var element = $(".esriPopupWrapper >.sizer.content > .contentPane > .attachmentEditor > div > form");
element.remove();
setTimeout(function(){
element = $(".deleteAttachment");
element.remove();
}, 1000);
});
map.addLayer(featureLayer);
}
});
</script>
</head>
<body>
<div data-dojo-type="dijit/layout/BorderContainer"
data-dojo-props="design:'headline'"
style="width:100%;height:100%;">
<div id="map"
data-dojo-type="dijit/layout/ContentPane"
data-dojo-props="region:'center'"></div>
<div id="footer"
data-dojo-type="dijit/layout/ContentPane"
data-dojo-props="region:'bottom'">
Click point to view/create/delete attachments.
</div>
</div>
</body>
</html> Hope this help you. Regards
... View more
06-09-2016
03:54 AM
|
1
|
1
|
941
|
POST
|
I faced the same problem and moved in the solution like you do. print clusterLayer is not supported!
... View more
06-09-2016
02:26 AM
|
0
|
2
|
714
|
POST
|
could you please describe your question in more details, it is not clearly understood ..
... View more
06-09-2016
02:22 AM
|
0
|
0
|
343
|
POST
|
@Timothy Brown Could you please sign this issue as a Solved issue! this is help members. Regards.
... View more
06-09-2016
02:16 AM
|
1
|
0
|
783
|
POST
|
Hi beh soh, You can simply use the ApplyEdits method of the FeatureLayer. Example. var attr = {
"ID": targetRefID,
"SUBSECRIPTION_TYPE": 1,
"COVERAGE_TYPE": COVERAGE_TYPE_VALUE,
"X_COORD": customerPoint.x,
"Y_COORD": customerPoint.y
};
var g_ = new Graphic(customerPoint, null, attr, null);
customerLayer.applyEdits([g_], null, null, addCustomerResult, err); If you find the answer, please mark it.
... View more
04-05-2016
05:00 AM
|
1
|
0
|
364
|
POST
|
Javier, Many thanks. works fine with us from the first try. Regards, Yusuf Ali
... View more
12-16-2015
01:45 AM
|
0
|
0
|
369
|
POST
|
Hi, You can use the Bootstrap map, it is have the Auto-pan method. Anyway, a simple code will solve this problem .. try to implement a method that take a map point after popup fired, then make it a center of your map. hope this help you. Regards.
... View more
08-28-2015
02:21 AM
|
0
|
0
|
291
|
POST
|
Hi, This may help you. Replace your URL here .. require(["esri/config"], function(esriConfig) {
esriConfig.defaults.io.corsEnabledServers.push("servicesbeta.esri.com");
esriConfig.defaults.io.corsEnabledServers.push("server.organization.com");
}); more info .. Regards, Yusuf
... View more
08-28-2015
01:59 AM
|
0
|
0
|
284
|
Title | Kudos | Posted |
---|---|---|
1 | 06-09-2016 02:16 AM | |
1 | 06-09-2016 03:54 AM | |
1 | 06-14-2015 07:53 AM | |
1 | 06-02-2015 11:51 PM | |
1 | 04-09-2015 12:33 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|