POST
|
Hi I need some of my urls to have normal http and https (self cert internal only) however i cant find any instructions to do this on IIS 7.5 I keep on getting the following when i browse my https url: Application Error The ArcGIS Web Adaptor has been configured with SSL/HTTPS. Please enable SSL/HTTPS for your ArcGIS Server Site. Enabling this makes no difference. Any help please? thanks
... View more
04-04-2014
05:38 PM
|
0
|
1
|
2178
|
POST
|
yeah, i went through the html over and over. Any chance i can pm you my script and you can take a quick look over it to see if i have caused any issues in my javascript? thanks
... View more
03-31-2014
05:37 AM
|
0
|
0
|
675
|
POST
|
Still experiencing this issue! <div id="mainWindow"
data-dojo-type="dijit/layout/BorderContainer"
data-dojo-props="design:'headline', gutters:false"
style="width:100%; height:100%;">
<div id="header"
data-dojo-type="dijit/layout/ContentPane"
data-dojo-props="region:'top'"
style:"height:50px;">
<span>
City Centre Forward Planning
</span>
</div>
<div id="leftPane"
data-dojo-type="dijit/layout/ContentPane"
data-dojo-props="region:'left'"
style="width:275px;">
Legend
<div id="tocDiv"></div>
</div>
<div id="centerPane"
data-dojo-type="dijit/layout/BorderContainer"
data-dojo-props="region:'center', gutters:false">
<div id="mapDiv"
data-dojo-type="dijit/layout/ContentPane" class="shadow"
data-dojo-props="region:'center'"
style="overflow:hidden;">
</div>
<div id="footer" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'bottom',doLayout:false">
<div id="timeInfo">
<div>City Centre Forward Planning works from <span id="daterange">2013 to 2024</span></div>
<div id="timeSliderDiv"></div>
</div>
</div>
</div>
</div> and the css im referencing, this is in adition to the usual js css.
html, body {
height: 100%;
margin: 0;
padding: 0;
width: 100%;
font-family: "Trebuchet MS";
}
#header {
background-color: #666666;
border: 1px solid #ffffff;
color: #ffffff;
font-size: 21pt;
font-weight: bold;
height: 30px;
overflow: hidden;
padding: 15px;
text-align: left;
}
#leftPane {
background-color: #FAFAFA;
border: 2px solid #B5BCC7;
color: #666666;
}
#centerPane {
border: medium none;
width: 100%;
height: 100%;
}
#footer {
background-color: #666666;
border: 2px solid #B5BCC7;
color: #ffffff;
font-size: 13pt;
height: 78px;
margin: 10px;
padding: 10px;
text-align: center;
}
.roundedCorners {
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-o-border-radius: 4px;
}
#mapDiv {
border: 10px solid #B5BCC7;
margin: 5px;
}
.dijitBorderContainer, .dijitGutter {
background-color: #D0EFF3 !important;
}
.shadow {
background-color: #FFFFFF;
border: 4px solid #B5BCC7;
box-shadow: 0 6px 3px -3px #888888;
padding: 8px;
}
It certainly is something to do with that left region div but i cannot track where, as soon as its in, even with no content it has the same issue! Here is the click [ATTACH=CONFIG]32638[/ATTACH] Without the positioning set on the mapDiv i get the map only populating the top half of the div.
... View more
03-31-2014
12:11 AM
|
0
|
0
|
675
|
POST
|
Hi Ben Thanks for your reply. As soon as i can get onto that machine properly i will take a look. I need to take a look into my positioning as functionality wise its working as required and i think perhaps bad habit but i have previously set my map divs to absolute...thanks for the explanation. Javascript is not my strong point, python is my world and non ui so i always tend to be strong on function but lack on layout, design etc. Can you please check back tomorrow on this thread? I will have a proper look into my layout and let you know my results. I can send you all my code as its all internal referenced so would not make sense here but obviously will keep this thread updated. thanks
... View more
03-30-2014
02:58 PM
|
0
|
0
|
675
|
POST
|
I think you right with regards to the size of the div and the size of the offset the click thinks it is at. My html is similar to this, i cant seem to get my other machine atm due to vpn issue but i took this as a base. <body class="claro">
<div id="mainWindow"
data-dojo-type="dijit/layout/BorderContainer"
data-dojo-props="design:'headline', gutters:false"
style="width:100%; height:100%;">
<div id="header" class="roundedCorners"
data-dojo-type="dijit/layout/ContentPane"
data-dojo-props="region:'top'">
<span>
This is the header section
</span>
</div>
<div id="leftPane" class="roundedCorners"
data-dojo-type="dijit/layout/ContentPane"
data-dojo-props="region:'left'"
style="width:275px;">
This is the left section
</div>
<div id="centerPane"
data-dojo-type="dijit/layout/BorderContainer" class="roundedCorners"
data-dojo-props="region:'center', gutters:false">
<div id="map"
data-dojo-type="dijit/layout/ContentPane" class="shadow"
data-dojo-props="region:'center'"
style="position:absolute; overflow:hidden;">
</div>
<div>
<div id="footer" class="roundedCorners" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'bottom'">
This is the footer section
</div>
</div>
</div>
</body>
</html>
... View more
03-30-2014
02:01 PM
|
0
|
0
|
675
|
POST
|
Hi If i add a left region panel in my app my info template seems to pop up at random locations. It also shows the zoom box when you hold shift and draw a box in a different location to where the click is initiated. I will paste some code and screens later when i boot up my other laptop but I was wondering if anyone has come across this before? If i use a right sided region div it has no problems. thanks
... View more
03-30-2014
06:18 AM
|
0
|
9
|
1076
|
POST
|
depending on how you code it might be in console or you can see the request being send and the reply in the net tab ie: when you click the query button you should see the request and the response: [ATTACH=CONFIG]32027[/ATTACH] I personally always take the points and do a for loop and position all the points features.geometry using map.graphic. Im at home at the moment but if you can see if you get the response and the data from that .value is what you expecting im sure i can help without my work laptop.
... View more
03-07-2014
12:13 PM
|
0
|
0
|
344
|
POST
|
do you have firebug installed? If so, check the response from the querytask and you should see the features and the geometry. Let us know how you get on.
... View more
03-07-2014
06:18 AM
|
0
|
0
|
604
|
POST
|
Tried: query.where = "ID =" dom.byId("mydropdown").value; instead of query.text?? replace ID with your rest url attribute column name. Do you get a result with firebug to the call?
... View more
03-07-2014
01:56 AM
|
0
|
0
|
604
|
POST
|
Hi Looks like your query is correct and i presume you can see the query execute if you use firebug or similar? try the below, you need to take the results and do something with them. I pass it to the showResults function, build a table and zoom to the location on the map. //execute query
queryTask.execute(query0, showResults);
};
function showResults(results) {
var s = "<table>";
var aliases = results.fieldAliases;
var len = results.features.length;
var fieldTypes = {};
//var dateI = results.fields.length;
// define a variable that will hold the field type for each field name.
array.forEach(results.fields, function (aField) {
fieldTypes[aField.name] = aField.type;
});
if (len === 0) { // if no results
s = "No results for IPMS reference: " + IPMSREF
} else { // if 1 or more results, display them
for (var i = 0; i < len; i++) {
var featureAttributes = results.features.attributes;
for (var att in featureAttributes) {
//var aliasesFix = aliases[att].replace("*", "")
if (featureAttributes[att] == null) {
featureAttributes[att] = ""
}
else if (fieldTypes[att] == "esriFieldTypeDate") {
featureAttributes[att] = formatDate(new Date(featureAttributes[att]));
}
else if (fieldTypes[att] == "esriFieldTypeDouble") {
featureAttributes[att] = Math.round(featureAttributes[att]*10000)/10000
}
else if (att == "EDITEDBY" && "CREATEDBY") {
featureAttributes[att] = featureAttributes[att].replace("IPS$","");
}
s = s + "<tr><td><span style='white-space: nowrap'>" + "<b>" + (aliases.hasOwnProperty(att) && aliases[att]) + "</b>" + ": " + "</td><td style='width:100%;'>" + featureAttributes[att] + "</td></tr>";
}
s = s + "<tr class='blank_row'><td></td>"
}
s = s + "</table><br />";
};
dom.byId("info").innerHTML = s;
dojo.query("#info table tr:nth-child(odd)").addClass("odd");
dojo.query("#info table tr:nth-child(even)").addClass("even");
//get x and y from centre of results geometry = true query
var polyGonGeom = results.features[0].geometry;
var polyGonExt = polyGonGeom.getExtent();
map.setExtent(polyGonExt);
var Polygon = new esri.geometry.Polygon(polyGonGeom, new esri.SpatialReference({
wkid: 27700
}));
console.log(Polygon)
if (!graphic) {
addGraphic(Polygon);
} else {
graphic.setGeometry(Polygon);
};
};
//add graphic to the map
function addGraphic(Polygon) {
//parameters for the symbol
var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([49, 101, 156]), 2), new dojo.Color([148, 186, 231, 0.5]));
// var symbol = new esri.symbol.PictureMarkerSymbol({
// "angle": 0,
// "xoffset": 0,
// "yoffset": 0,
// "type": "esriPMS",
// "url": "http://static.arcgis.com/images/Symbols/Basic/BlueShinyPin.png",
// "contentType": "image/png",
// "width": 24,
// "height": 24
// });
var graphic = new esri.Graphic(Polygon, symbol);
map.graphics.add(graphic);
};
... View more
03-07-2014
12:39 AM
|
0
|
0
|
604
|
POST
|
Any ideas in snapshot mode? // infoTemplate: new InfoTemplate("title", "description"),
mode: FeatureLayer.MODE_SNAPSHOT,
//visible: false, // SNAPSHOT required for the histogram time slider
outFields: ["CALENDAR_DAY", "TRANSACTION_NUMBER", "LOCATION_PROPRTY_ID"]
}); cheers
... View more
02-25-2014
05:34 AM
|
0
|
0
|
440
|
POST
|
Jeff's option is the best, go for that one! Cheers Jeff, did not realize you could just turn it off like i use with the logo normally so thats changed some code for me!
... View more
01-07-2014
10:43 PM
|
0
|
0
|
959
|
POST
|
Depending on skill level you can code it out https://developers.arcgis.com/en/javascript/jsapi/attribution-amd.html#destroy or easy option .esriAttribution {
display: none;
} in the css or create custom css page and add
... View more
01-07-2014
02:20 AM
|
0
|
0
|
959
|
POST
|
Hi Well i think just posting to the forums helps as i think this is the third post i have done that has resulted in my fixing it after going back to it. It wrecked my head all weekend but i just clicked and put it in the code when building my table data and pushing it out to my div.... s = s + "<tr><td>" + "<b>" + (aliases.hasOwnProperty(att) && aliases[att]) + "</b>" + ": " + "</td><td>" + featureAttributes[att] + "</td></tr>";
}
s = s + "</table><br>";
}
}
dom.byId("info").innerHTML = s;
dojo.query("#info table tr:nth-child(odd)").addClass("odd");
dojo.query("#info table tr:nth-child(even)").addClass("even")
//Position our mapto the x and y provided in the url
var point = new esri.geometry.Point([resultExtent.x, resultExtent.y], new esri.SpatialReference({
wkid: 27700
}));
console.log(point)
map.centerAt(point);
if (!graphic) {
addGraphic(point);
} else {
graphic.setGeometry(point);
};
}; I have pasted the code incase anyone else might have this issue without having to pull in jquery or something else as this was so simple in dojo once i knew!
... View more
11-17-2013
11:15 PM
|
0
|
0
|
406
|
POST
|
I have the css3 styling currently running for demo purposes but i will need to be able to display row styling in IE8 with no CSS3 support. Any ideas?
... View more
11-17-2013
10:27 PM
|
0
|
0
|
406
|
Title | Kudos | Posted |
---|---|---|
1 | 10-24-2012 06:26 AM | |
1 | 07-09-2017 08:13 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|