POST
|
Hi, I have feature layer "Parcel" in enterprise geodatabase ORACLE and one "View" which is in Microsoft SQL Server. I am trying join "View" with Parcel layer based on field "PIN", when I validate join in ArcMap, Join report says No matching records found, however there are 5 PINS are already present in feature layer "Parcel" and "View" in SQL Server. Please suggest.
... View more
12-05-2019
12:12 AM
|
0
|
0
|
203
|
POST
|
Dear Sumble, I have title which is config.json.How to change language?When switch from Macedonian to English language the title is same.config.json is on root of application The title is: in config.json. Best Regard
... View more
09-01-2020
03:19 AM
|
0
|
0
|
1213
|
POST
|
If you open Control Panel > Fonts, do you see the ESRI font files? There should be 73 of them. If they're not there, that may explain why the Symbol Selector Gallery cannot preview them.
... View more
11-21-2019
09:11 AM
|
0
|
0
|
849
|
POST
|
Hi Robert, Thank you very much for prompt reply. Thanks, Mayur
... View more
09-19-2019
12:48 PM
|
0
|
0
|
418
|
POST
|
Hi, I have DynamicMapService published on server with default labeling on for two layers (Manhole and Parcel). I have menu "Labels" next to each layer in TOC of my application. I have tried this below code when you click on "Labels" menu : topic.subscribe('layerControl/showLabelPicker', function (event) {
var drawingOptions = new LayerDrawingOptions();
//also tried below line to get existing drawing options but first time event.layer.layerDrawingOptions is undefined
//var drawingOptions = event.layer.layerDrawingOptions;
drawingOptions.showLabels = false;
var options = [];
options[event.subLayer.id] = drawingOptions;
event.layer.setLayerDrawingOptions(options);
}); This is what I get in event. Label is getting turn on/off but it switch the labeling for @those two layers (Manhole and Parcel). for example : First I click on Foul Sewer Manhole layer Labels menu to Turn off the Labels - It is working fine Now, I click on Parcel layer Labels menu to Turn Off the labels - here it switch the label, it turn off the Parcel layer label and turn on label for Manhole Again If i click on Foul Sewer Manhole - it turn on Parcel label and so on. Any idea how to toggle label of DynamicMapService service published on server with default labeling on ? if layer labeling is On/Off then toggle labeling of layer ? Thanks,
... View more
09-03-2019
06:40 AM
|
0
|
0
|
388
|
POST
|
Mayur, Here is a sample that shows that: <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<title>Label</title>
<link rel="stylesheet" href="https://js.arcgis.com/4.11/esri/themes/light/main.css" />
<link rel="stylesheet" type="text/css" href="https://js.arcgis.com/4.11/dojox/layout/resources/FloatingPane.css" />
<script src="https://js.arcgis.com/4.11/"></script>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
.dojoxFloatingPaneTitle .dijitTitleNode {
padding-left: 5px;
color: white;
}
.dojoxDock {
display: none;
}
.dojoxFloatingPaneTitle,
.dojoxFloatingPane {
border: #88165b;
background: #88165b;
height: 25px;
}
#entryDiv {
padding: 8px;
float: left;
}
.formLbl {
float: left;
}
.formLine {
width: 100%;
padding-bottom: 8px;
}
</style>
<script>
let efp;
require([
"esri/views/draw/Draw",
"esri/Map",
"esri/Graphic",
"esri/layers/GraphicsLayer",
"esri/geometry/Point",
"esri/views/MapView",
"esri/symbols/TextSymbol",
"dojo/dom",
"dojox/layout/FloatingPane",
"dojo/domReady!"
], function (Draw, Map, Graphic, GraphicsLayer, Point, MapView, TextSymbol, dom, FloatingPane) {
const textGraphics = new GraphicsLayer();
let drawPnt;
const map = new Map({
basemap: "streets",
layers: [textGraphics]
});
const view = new MapView({
container: "viewDiv",
map: map,
zoom: 12,
center: [18.06, 59.34]
});
const draw = new Draw({
view: view
});
efp = new FloatingPane({
title: "Enter Text",
closable: false,
resizable: true,
dockable: true,
style: "position:absolute;top:250px;left:350px;width:260px;height:300px;visibility:hidden;max-height:400px;",
id: "efp"
}, dom.byId("divFloatingPane"));
efp.startup();
view.ui.add("point-button", "top-left");
document.getElementById("btnSave").onclick = function() {
var textSymbol = new TextSymbol({
text: dom.byId("LabelText").value,
color: dom.byId("colorSelect").value,
font: { // autocast as new Font()
size: 12,
family: "sans-serif",
weight: "bold"
}
});
var textGraphic = new Graphic(drawPnt, textSymbol);
textGraphics.add(textGraphic);
efp.hide();
}
document.getElementById("point-button").onclick = function () {
const action = draw.create("point", {
mode: "click"
});
view.focus();
action.on("draw-complete", function (evt) {
drawPnt = new Point({
x: evt.coordinates[0],
y: evt.coordinates[1],
spatialReference: view.spatialReference
})
efp.show();
});
};
});
</script>
</head>
<body>
<div id="viewDiv">
<div id="point-button" class="esri-widget esri-widget--button esri-interactive" title="Draw label">
<span class="esri-icon-map-pin"></span>
</div>
<div id="divFloatingPane">
<div id="entryDiv">
<div class="formLine">
<div class="formLbl" for="LabelText" style="width:84px;">Enter Label</div>
<textarea id="LabelText" style="width:152px;"></textarea>
</div>
<div class="formLine">
<div class="formLbl" style="width:84px;">Color</div>
<select id="colorSelect">
<option value="red" selected="selected">RED</option>
<option value="black">BLACK</option>
</select>
</div>
<div class="formLine">
<div class="formLbl" style="width:84px;"> </div>
<button id="btnSave">Save</button>
</div>
</div>
</div>
</div>
</body>
</html>
... View more
04-25-2019
12:06 PM
|
1
|
0
|
1652
|
POST
|
Hi Ken, Thanks for your reply. After adding below line I was getting error " Cannot set property 'JOBNO' of undefined" graphic.attributes["JOBNO"] = newAttribute; So, I Created new object then add attributes to object and set to graphic. Below code worked for me
var SaveAttribute = new Object();
SaveAttribute.JOBNO= newAttribute;
graphic.attributes = SaveAttribute;
freeHLayer.applyEdits([graphic], null, null).then(function (adds, updates, deletes) {
console.log('success', adds);
}, function (err) {
console.log(err);
});
Thanks,
... View more
04-23-2019
05:52 AM
|
0
|
0
|
675
|
POST
|
This is only specific to if the server is the hosting server: Change the managed database to an ArcGIS Data Store relational data store—Portal for ArcGIS (10.6) | ArcGIS Enterprise Beginning with ArcGIS Enterprise 10.6.1, your portal's hosting server must use the relational data store provided through ArcGIS Data Store. Not sure if that clarifies my comment.
... View more
02-08-2019
10:22 AM
|
1
|
0
|
613
|
POST
|
Hi Mayur, Please have a look at the following post which contains a similar issue with a workaround for you to try: https://community.esri.com/message/849937-re-cannot-upload-attachments?commentID=849937#comment-849937 Let me know if you have success. Thanks, Brett
... View more
05-02-2019
07:27 PM
|
0
|
0
|
1032
|
POST
|
HI, I created app using WAB 2.8 developer edition, downloaded and hosted on my web server. It working fine. I want to use this code Identity Manager with info persisted client side | ArcGIS API for JavaScript 3.25 in app, store token at client side, and show Sign In dialog automatically after 1 hour token expires. I do not want to use proxy as my requirement is to have token based authentication - display Sign In dialog when you open the app and Sign In dialog automatically get prompted when token expires ? Where should I add below code in WAB app ? var map, cred = "esri_jsapi_id_manager_data"; // cookie/local storage name
require([
"dojo/_base/unload",
"dojo/cookie",
"dojo/json",
"dojo/parser", "esri/config", "esri/IdentityManager",
"dojo/domReady!",
], function (baseUnload,
cookie,
JSON,
parser, esriConfig, esriId
){
// store credentials/serverInfos before the page unloads
baseUnload.addOnUnload(storeCredentials);
// look for credentials in local storage
loadCredentials();
parser.parse();
esriConfig.defaults.io.proxyUrl = "/proxy/";
function loadCredentials(){
var idJson, idObject;
if (supports_local_storage()) {
// read from local storage
idJson = window.localStorage.getItem(cred);
}
else {
// read from a cookie
idJson = cookie(cred);
}
if (idJson && idJson != "null" && idJson.length > 4) {
idObject = JSON.parse(idJson);
esriId.initialize(idObject);
}
else {
// console.log("didn't find anything to load :(");
}
}
function storeCredentials(){
// make sure there are some credentials to persist
if (esriId.credentials.length === 0) {
return;
}
// serialize the ID manager state to a string
var idString = JSON.stringify(esriId.toJson());
// store it client side
if (supports_local_storage()) {
// use local storage
window.localStorage.setItem(cred, idString);
// console.log("wrote to local storage");
}
else {
// use a cookie
cookie(cred, idString, {expires: 1});
// console.log("wrote a cookie :-/");
}
}
function supports_local_storage(){
try {
return "localStorage" in window && window["localStorage"] !== null;
} catch (e) {
return false;
}
}
}); Thanks.!!
... View more
09-26-2018
09:04 PM
|
0
|
0
|
588
|
POST
|
Hi Tanu, Thanks for your reply. I have many layers and all are fit into legend, only PNG image disappears on map and legend as well. I also tried to print only single layer with Legend symbol as PNG image and that also not printing on map and legend as well. I am not sure what would be causing this.
... View more
09-26-2018
03:47 AM
|
0
|
0
|
746
|
POST
|
To highlight a feature on the map map you can pick Custom Configuration for your pop-up display settings. Choosing this will then let you pick a feature on the map to display when readers navigate to that section.
... View more
09-17-2018
04:50 AM
|
0
|
0
|
392
|
POST
|
Hi, I have created 10 Story Map in Portal for ArcGIS > using templates > Story Map Journal. I downloaded the Story Map Journal templates from github and hosted on my own web server. Then, I have designed the web site with drop down menu of all the story map name. By Clicking on each story map name from drop down menu I am loading the story Map in iframe. It is working fine. My story map, web maps its not private so it is asking for login to see the story map content. Now, my problem is that I have 10 story maps and each time you open story map every time its is asking for login credentials login pop up to access the story map. Is there any way that no matter user access any story map first and put the password so next time when you open another story map user should not get again login pop up to see the story map. It is annoying users that every time you open different story map from drop down menu it is asking for login to Portal to access. In short I want user to put enter the credentials only once and you get access to all the story map so you don't have to enter again and again when you access the other story map. Thank you.
... View more
08-05-2018
12:39 AM
|
0
|
0
|
473
|
POST
|
Mayur, I'm sure there is years of development by a Team of developer involved in Googles Directions. What is available to you in the esri JS API is the Directions widget
... View more
07-10-2018
05:42 AM
|
2
|
0
|
640
|
POST
|
Refer to my reply in your duplicate post https://community.esri.com/thread/217623-direction-route-like-google-maps
... View more
07-10-2018
05:43 AM
|
1
|
0
|
274
|
Title | Kudos | Posted |
---|---|---|
1 | 01-11-2023 10:57 PM | |
1 | 01-05-2020 03:29 AM | |
1 | 01-25-2018 11:47 PM | |
1 | 01-22-2018 08:34 AM | |
10 | 12-27-2016 08:35 PM |
Online Status |
Offline
|
Date Last Visited |
yesterday
|