|
POST
|
I had an open ticket with them, but the issue of synchronous vs. asynchronous didn't come up as a possible solution to my problem.
... View more
06-12-2013
12:06 PM
|
1
|
0
|
1823
|
|
POST
|
What seems to have made a difference for me is to change my custom print service from asynchronous to synchronous. In the documentation, it says in step 13 of the Tutorial Publishing additional services for printing: Click Parameters and ensure the Execution Mode of the service is set to Synchronous. You can alternatively choose Asynchronous if you expect the request to take more than a few seconds. Since I expected the print generation to take several seconds (it does), I switched to Asynchronous. Once I switched my service to Synchronous, it seems to be working fine. I believe the samples I was working with were written for Synchronous, and that was at the heart of my problem. I did also switch my code for the onPrintStart to define the customTextElements based on variables I'd set earlier (from my Identify). dojo.connect(printer, "onPrintStart", function(){ var printTitle = dojo.byId("txtTitle").value; var customElementString = [ {"legalDescriptionText": fullLegalString}, { "subTitleText": print_subTitle} ]; console.log("customElementString = "+customElementString); for (var i = 0; i < templates.length; i++) { this.templates.layoutOptions.titleText = printTitle; this.templates.layoutOptions.customTextElements = customElementString; console.log("layoutOptions = " + this.templates.layoutOptions); } dojo.connect(printer, "onError", function(err){ console.log("Printer Error: " + err); }); dojo.connect(printer, 'onPrintComplete', function(value){ console.log('The url to the print image is : ' + value.url); }); });
... View more
06-12-2013
07:13 AM
|
1
|
0
|
1823
|
|
POST
|
This sample helped me too, but my information wasn't in JSON format, it was in my map service. I used the onComplete function of a queryTask to generate the input format that clusterLayer needed.
function createCluster(){
var queryTask = new esri.tasks.QueryTask("https:servername/arcgis/rest/services/pointLocation/MapServer/0");
var query = new esri.tasks.Query();
query.returnGeometry = true;
query.where = '1=1';
query.outFields = ["*"];
dojo.connect(queryTask, "onComplete", function(featureSet){
var inputInfo = {};
inputInfo.data = dojo.map(featureSet.features, function(feature){
var point = feature.geometry;
var att = feature.attributes;
var pointX = feature.geometry.x;
var pointY = feature.geometry.y;
return {
"x": pointX,
"y": pointY,
"attributes": att
};
});
var singleServerSymbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_CIRCLE, 10,
new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([0,0,0]), 1),new dojo.Color([0,205,0,0.25]));
// cluster layer that uses OpenLayers style clustering
clusterLayer = new extras.ClusterLayer({
"data": inputInfo.data,
"distance": 5,
"id": "clusterLayer",
"labelColor": "#fff",
"labelOffset": 10,
"resolution": map.extent.getWidth() / map.width,
"singleColor": "#00ca00",
"singleSym": "singleServerSymbol",
"singleTemplate": infoTemplate
});
var renderer = new esri.renderer.ClassBreaksRenderer(singleServerSymbol, "clusterCount");
var single = new esri.symbol.PictureMarkerSymbol("http://static.arcgis.com/images/Symbols/Shapes/GreenCircleLargeB.png", 18, 18);
var small = new esri.symbol.PictureMarkerSymbol("http://static.arcgis.com/images/Symbols/Shapes/GreenPin1LargeB.png", 48, 48).setOffset(0, 15);
var medium = new esri.symbol.PictureMarkerSymbol("http://static.arcgis.com/images/Symbols/Shapes/GreenPin1LargeB.png", 64, 64).setOffset(0, 15);
var large = new esri.symbol.PictureMarkerSymbol("http://static.arcgis.com/images/Symbols/Shapes/GreenPin1LargeB.png", 96, 96).setOffset(0, 15);
renderer.addBreak(0, 2, single);
renderer.addBreak(2, 25, small);
renderer.addBreak(25, 100, medium);
renderer.addBreak(100, 1001, large);
clusterLayer.setRenderer(renderer);
map.addLayer(clusterLayer);
dojo.connect(queryTask, "onError", function(err){
alert(err.details);
});
dojo.connect(map, "onKeyDown", function(e){
if (e.keyCode == 27) {
cleanUp();
}
});
});
queryTask.execute(query);
}
function cleanUp() {
map.infoWindow.hide();
clusterLayer.clearSingles();
}
... View more
06-12-2013
07:05 AM
|
0
|
0
|
976
|
|
POST
|
Yes I mean to have the same custom text elements for both templates. I don't have this fully populated because I'm just working on a landscape printout, but I'll need a Portrait equivalent with the exact same content. The user will have to determine which orientation works best for the particular screen content. I switched my print service from Asynchronous to Synchronous and that seems to have made the difference. (Although I still think it's gremlins.) In the instructions for authoring it suggested you can use either for your Execution Method. I didn't find that was the case!
... View more
06-11-2013
11:12 AM
|
0
|
0
|
2809
|
|
POST
|
I have been using a function to set the content of my infoWindows. It gave me a lot more control over the content. You could include code to check for certain conditions, run other functions etc. parcelInfoTemplate = new esri.InfoTemplate(); parcelInfoTemplate.setTitle("Parcel Information"); parcelInfoTemplate.setContent(parcelSetWindowContent); Then you function would run when you clicked on an element. I have mine set to format the contents as a table. You could easily add some HTML code for a hyperlink instead. function parcelSetWindowContent(graphic){ //your code would go here that executes when you click }
... View more
06-10-2013
12:49 PM
|
0
|
0
|
930
|
|
POST
|
That's how I have it, except that I have a little punctuation problem. I'm trying to update the customTextElements in onPrintStart, right before the print is submitted. When I do, I end up generating
"layoutOptions":{"titleText":"my map title",
"customTextElements":[
{"legalDescriptionText":"BEG 82.5 FT E NE COR BENTON & WALNUT STS E 82.5 FT N 267 FT W 82.5 FT S TO BEG"},
{"subTitleText":" E WALNUT ST"}]
I'm having a real hard time spotting the typo, but I think I'm missing an ending curly brace to close out value of layoutOptions. Since I'm defining this programmatically, I haven't found the line yet where I can correct this. I have posting on the JS forum too. I'm still trying to decide if my service is OK. I'm having a really hard time testing it without programming something. I found a posting to modify the template to dynamically alter the title, so the user could enter what they wanted. This added the line
this.templates.layoutOptions.titleText = printTitle;
Then I wanted to go back and also add customTextElements. I ended up with:
dojo.connect(printer, "onPrintStart", function(){
//console.log("onPrintStart: fullLegalString = " + fullLegalString + "print_subTitle = " + print_subTitle);
var printTitle = dojo.byId("txtTitle").value;
for (var i = 0; i < templates.length; i++) {
this.templates.layoutOptions.titleText = printTitle;
this.templates.layoutOptions.customTextElements =[
{"legalDescriptionText": fullLegalString},
{"subTitleText": print_subTitle} ];
}
});
Maybe instead of trying to define titleText and customTextElements separately, I should try defining the entire layoutOptions and concatenate it all together somehow. Otherwise I'm still chasing down a curly brace (I think ...)
... View more
06-10-2013
09:25 AM
|
0
|
0
|
2809
|
|
POST
|
Just an update, but no answer. I can't believe no one else is struggling with these custom layouts! I did have a few issues in how I was formatting my custom text elements, which I think I've gotten straightened out. I have gotten so far as to see that the request is getting made to the print service. If I take the webmap as JSON from the POST and put it in the the rest endpoint, I get a properly rendered page. I was excited to see it would work there, but calling it from within in my code, I immediately get a 'Syntax error'. It seems to have something to do with the dojo.deferred. I assume this is because these are asynchronous requests? Here's my printing functions.
//functions for printing
function openPrint(){
var layoutTemplate, templateNames, mapOnlyIndex;
var fp = dijit.byId('floater_print');
if ((fp.style == "visibility: hidden;") || (fp.style = "VISIBILITY:hidden;")) {
fp.style.visibility = "visible";
fp.show();
}
}
function setupPrinting(subHeaderTitle){
// array of objects that will be used to create print templates
var layouts = [{
"name": "FMDC_Landscape",
"label": "Landscape - PDF",
"format": "PDF",
"options": {
"legendLayers": [], // empty array means no legend
"scalebarUnit": "Miles",
"titleText": subHeaderTitle,
"customTextElements": [
{"legalDescriptionText": fullLegalString},
{"subTitleText": print_subTitle} ]
}
}
,{
"name": "FMDC_Landscape",
"label": "Portrait do not use",
"format": "PDF",
"options": {
"legendLayers": [], // empty array means no legend
"scalebarUnit": "Miles",
"titleText": subHeaderTitle,
"customTextElements":[
{"legalDescriptionText": fullLegalString},
{"subTitleText": print_subTitle} ]
}
}
];
// create the print templates, could also use dojo.map
dojo.forEach(layouts, function(lo){
var t = new esri.tasks.PrintTemplate();
t.layout = lo.name;
t.label = lo.label;
t.format = lo.format;
t.layoutOptions = lo.options;
templates.push(t);
});
var printer = new esri.dijit.Print({
"map": map,
"templates": templates,
url: printUrl
}, dojo.byId("PrintDiv2"));
printer.startup();
dojo.connect(printer, "onPrintStart", function(){
var printTitle = dojo.byId("txtTitle").value;
for (var i = 0; i < templates.length; i++) {
this.templates.layoutOptions.titleText = printTitle;
this.templates.layoutOptions.customTextElements =[
{"legalDescriptionText": fullLegalString},
{"subTitleText": print_subTitle} ];
console.log("onPrintStart: fullLegalString = " + fullLegalString + "print_subTitle = " + print_subTitle);
}
});
}
Here is my webMap as JSON, which works if I use it directly in my print service endpoint
{"mapOptions":{"showAttribution":true,"extent":{"xmin":-10390744.997201268,"ymin":4458069.554368013,"xmax":-10388884.233293902,"ymax":4459572.019705283,"spatialReference":{"wkid":102100}},"spatialReference":{"wkid":102100},"scale":9027.977410996222},"operationalLayers":[{"id":"basic","title":"basic","opacity":1,"minScale":591657527.591555,"maxScale":9027.977411,"url":"http://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer"},{"id":"countyLayer","title":"countyLayer","opacity":1,"minScale":0,"maxScale":0,"url":"https://ogitest.oa.mo.gov/ArcGIS/rest/services/BaseMap/county_simple/MapServer","visibleLayers":null,"layers":[]},{"id":"status_stateOwnParcelLayer","title":"status_stateOwnParcelLayer","opacity":1,"minScale":0,"maxScale":0,"url":"https://ogitest.oa.mo.gov/ArcGIS/rest/services/StateOwnedParcels/MapServer","visibleLayers":null,"layers":[]},{"id":"allParcelLayer","title":"allParcelLayer","opacity":1,"minScale":0,"maxScale":0,"url":"https://ogitest.oa.mo.gov/ArcGIS/rest/services/allParcels/MapServer","visibleLayers":null,"layers":[]},{"id":"stateOwnFeaturelayer","minScale":1155581,"maxScale":0,"featureCollection":{"layers":[{"layerDefinition":{"name":"State Owned Property","geometryType":"esriGeometryPolygon","drawingInfo":{"renderer":{"type":"simple","label":"","description":"","symbol":{"color":[255,211,127,255],"outline":{"color":[110,110,110,255],"width":0.4,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"}}},"fields":[{"name":"OBJECTID","type":"esriFieldTypeOID","alias":"OBJECTID"},{"name":"PID","type":"esriFieldTypeString","alias":"PID","length":50},{"name":"NAME1","type":"esriFieldTypeString","alias":"NAME1","length":75},{"name":"NAME2","type":"esriFieldTypeString","alias":"NAME2","length":50},{"name":"NAME3","type":"esriFieldTypeString","alias":"NAME3","length":50},{"name":"ADDRESS1","type":"esriFieldTypeString","alias":"ADDRESS1","length":50},{"name":"ADDRESS2","type":"esriFieldTypeString","alias":"ADDRESS2","length":50},{"name":"CITY","type":"esriFieldTypeString","alias":"CITY","length":50},{"name":"STATE","type":"esriFieldTypeString","alias":"STATE","length":50},{"name":"ZIP","type":"esriFieldTypeString","alias":"ZIP","length":50},{"name":"SITEADDRESS","type":"esriFieldTypeString","alias":"SITEADDRESS","length":50},{"name":"BUILDING_NAME","type":"esriFieldTypeString","alias":"BUILDING_NAME","length":50},{"name":"LEGAL1","type":"esriFieldTypeString","alias":"LEGAL1","length":254},{"name":"LEGAL2","type":"esriFieldTypeString","alias":"LEGAL2","length":254},{"name":"LEGAL3","type":"esriFieldTypeString","alias":"LEGAL3","length":254},{"name":"LEGAL4","type":"esriFieldTypeString","alias":"LEGAL4","length":254},{"name":"Shape","type":"esriFieldTypeGeometry","alias":"Shape"}]},"featureSet":{"geometryType":"esriGeometryPolygon","features":[{"geometry":{"rings":[[[-10389810.460295089,4458839.911896453],[-10389811.133267196,4458797.473784225],[-10389818.770200083,4458797.587831773],[-10389818.034399852,4458843.986241523],[-10389810.460295089,4458839.911896453]]],"spatialReference":{"wkid":102100}},"attributes":{"OBJECTID":466,"PID":"881809406098","NAME1":"MO HIGHWAY & TRANSPORTATION COMMISSION","NAME2":"","NAME3":"","ADDRESS1":"-----","ADDRESS2":"","CITY":"XXXXX","STATE":"XX","ZIP":"00000","SITEADDRESS":"W MAPLEWOOD ST","BUILDING_NAME":"","LEGAL1":"WILD BRIAR LOTS 31 & 32 (EX BEG SE COR LOT 32 W 146.94 FT N 114.64 FT SELY163.28 FT S TO BEG)","LEGAL2":"","LEGAL3":"","LEGAL4":"","COUNTY":"Greene","SECTION":"","TOWNSHIP":"","RANGE":"","ACRES":0,"DBACRES":0,"GIS_ACRES":0.0531387,"BOOK1":"","PAGE1":"","DATE1":"","BOOK2":"","PAGE2":"","DATE2":"","BOOK3":"","PAGE3":"","DATE3":""}}]}}]}},{"id":"mapDiv_graphics","minScale":0,"maxScale":0,"featureCollection":{"layers":[{"layerDefinition":{"name":"polygonLayer","geometryType":"esriGeometryPolygon"},"featureSet":{"geometryType":"esriGeometryPolygon","features":[{"geometry":{"rings":[[[-10389810.460295089,4458839.911896453],[-10389818.770200083,4458797.587831773],[-10389818.034399852,4458843.986241523],[-10389810.460295089,4458839.911896453]]],"spatialReference":{"wkid":102100}},"symbol":{"color":[33,237,254,13],"outline":{"color":[33,237,254,255],"width":2.25,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"}}]}}]}}],"exportOptions":{"outputSize":[800,1100],"dpi":96},"layoutOptions":{"titleText":"doremi","customTextElements":[{"legalDescriptionText":"WILD BRIAR LOTS 31 & 32 (EX BEG SE COR LOT 32 W 146.94 FT N 114.64 FT SELY163.28 FT S TO BEG)"},{"subTitleText":" W MAPLEWOOD ST"}],"scaleBarOptions":{"metricUnit":"Kilometers","metricLabel":"km","nonMetricUnit":"Miles","nonMetricLabel":"mi"},"legendOptions":{"operationalLayers":[]}}}
... View more
06-07-2013
12:07 PM
|
1
|
0
|
1823
|
|
POST
|
I don't know what else might have been fixed in SP1, but it is installed.
... View more
06-07-2013
09:03 AM
|
0
|
0
|
2809
|
|
POST
|
I'm not having the greatest luck with the 10.1 print service, although it keeps getting brought up as the solution to all our printing problems. I hunted around quite a bit, the same way you did, trying to find pre-10.1 printing solutions and they seem to have been deleted from the places I would have expected to find them.
... View more
06-07-2013
07:00 AM
|
0
|
0
|
2087
|
|
POST
|
I have created a custom print service, but I'm a little confused on the syntax for adding custom text elements. I added two additional pieces of text and gave them element names of subTitleText and descripText. I added these into my printTemplate definition. I also need to change the values dynamically. From other thread, I got the syntax for changing the title by doing a dojo.connect on the printer's "onPrintStart" event. I've attempted to add a few more lines to populate the custom text elements in a similar way. I have print dijit in a floating pane, but I think that part is OK. I could generate output when I was using the original out of the box webmaptemplates. //functions for printing function openPrint(){ var layoutTemplate, templateNames, mapOnlyIndex; var fp = dijit.byId('floater_print'); if ((fp.style == "visibility: hidden;") || (fp.style = "VISIBILITY:hidden;")) { fp.style.visibility = "visible"; fp.show(); } } function setupPrinting(subHeaderTitle){ // var layoutTemplate, templateNames, mapOnlyIndex; // create an array of objects that will be used to create print templates // create an array of objects that will be used to create print templates var layouts = [{ "name": "customExport_FMDC_Landscape", "label": "Landscape - PDF", "format": "pdf", "options": { "legendLayers": [], // empty array means no legend "scalebarUnit": "Miles", "titleText": subHeaderTitle, "customTextElements": { "descripText": fullLegalString, "subTitleText": subHeaderTitle } } } ,{ "name": "customExport_FMDC_Landscape", "label": "Portrait do not use", "format": "pdf", "options": { "legendLayers": [], // empty array means no legend "scalebarUnit": "Miles", "titleText": subHeaderTitle, "customTextElements": { "descripText": fullLegalString, "subTitleText": subHeaderTitle } } } ]; // create the print templates, could also use dojo.map dojo.forEach(layouts, function(lo){ var t = new esri.tasks.PrintTemplate(); t.layout = lo.name; t.label = lo.label; t.format = lo.format; t.layoutOptions = lo.options; templates.push(t); }); var printer = new esri.dijit.Print({ "map": map, "templates": templates, url: printUrl }, dojo.byId("PrintDiv2")); printer.startup(); dojo.connect(printer, "onPrintStart", function(){ var printTitle = dojo.byId("txtTitle").value; for (var i = 0; i < templates.length; i++) { this.templates.layoutOptions.titleText = printTitle; this.templates.layoutOptions.customTextElements.descripText = fullLegalString; this.templates.layoutOptions.customTextElements.subTitleText = print_subTitle; // this.templates.layoutOptions.customTextElements[0] = fullLegalString; // this.templates.layoutOptions.subTitleText = print_subTitle; console.log("onPrintStart: fullLegalString = " + fullLegalString + "print_subTitle = " + print_subTitle); } }); } When I run this, I get one of those syntax errors that you can't ever figure out what it goes with. I can see the POST call in Firebug. If I copy the entire JSON statement and paste it into the print service rest endpoint, it does generate output. But it doesn't have my custom elements. I'm wondering if it's because I'm not using the right syntax when I'm defining these within my layoutOptions.
... View more
06-05-2013
01:39 PM
|
0
|
5
|
2691
|
|
POST
|
I created a copy of the basic exportmaptemplates to make my own custom layout. I needed to add both subtitles and descriptive text to my layout. I added two new text elements and gave them element names of subTitleText and descripText. Just to have something to see on my map, because I'm going to change these programmatically, I've given them a text value the same as the element name. I didn't receive any errors when I published this print service, so I'm thinking the service itself is OK? I'm having some problems with the syntax of referencing these new elements. I'm using the JS API, and in Firebug, I can see the call getting made to the print service. It includes the custom text elements by their element names, with the values that got assigned in my code. I am getting an error in my JS code, but if I copy/paste the string that's getting submitted to the print URL, it does generate output. It just doesn't include the new values I'm assigning for subTitleText and descripText. It's still just the default string I put in as a placeholder. {"mapOptions":{"showAttribution":true,"extent":{"xmin":-10391169.27082235,"ymin":4469925.719133955,"xmax":-10383726.21519309,"ymax":4476250.883224546,"spatialReference":{"wkid":102100}},"spatialReference":{"wkid":102100},"scale":36111.90964300888},"operationalLayers":[{"id":"streetMap","title":"streetMap","opacity":1,"minScale":591657527.591555,"maxScale":1128.497176,"url":"http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"},{"id":"countyLayer","title":"countyLayer","opacity":1,"minScale":0,"maxScale":0,"url":"https://ogitest.oa.mo.gov/ArcGIS/rest/services/BaseMap/county_simple/MapServer","visibleLayers":null,"layers":[]},{"id":"status_stateOwnParcelLayer","title":"status_stateOwnParcelLayer","opacity":1,"minScale":0,"maxScale":0,"url":"https://ogitest.oa.mo.gov/ArcGIS/rest/services/StateOwnedParcels/MapServer","visibleLayers":null,"layers":[]},{"id":"allParcelLayer","title":"allParcelLayer","opacity":1,"minScale":0,"maxScale":0,"url":"https://ogitest.oa.mo.gov/ArcGIS/rest/services/allParcels/MapServer","visibleLayers":null,"layers":[]},{"id":"stateOwnFeaturelayer","url":"https://ogitest.oa.mo.gov/ArcGIS/rest/services/StateOwnedParcels/MapServer/1","title":"stateOwnFeaturelayer","minScale":1155581,"maxScale":0,"layerDefinition":{"drawingInfo":{"renderer":{"type":"simple","label":"","description":"","symbol":{"color":[255,211,127,255],"outline":{"color":[110,110,110,255],"width":0.4,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"}}}}},{"id":"mapDiv_graphics","minScale":0,"maxScale":0,"featureCollection":{"layers":[{"layerDefinition":{"name":"polygonLayer","geometryType":"esriGeometryPolygon"},"featureSet":{"geometryType":"esriGeometryPolygon","features":[{"geometry":{"rings":[[[-10387278.9405581,4472649.14459539],[-10387279.6215167,4472629.95429174],[-10387325.6367082,4472631.12368592],[-10387325.6625458,4472633.30616325],[-10387325.8529157,4472641.81899572],[-10387325.6180643,4472650.3308426],[-10387278.9405581,4472649.14459539]]],"spatialReference":{"wkid":102100}},"symbol":{"color":[33,237,254,13],"outline":{"color":[33,237,254,255],"width":2.25,"type":"esriSLS","style":"esriSLSSolid"},"type":"esriSFS","style":"esriSFSSolid"}}]}}]}}],"exportOptions":{"outputSize":[800,1100],"dpi":96},"layoutOptions":{"titleText":"just something","customTextElements":{"descripText":"BEG 192.1 FT S SE COR KANSAS & KEARNEY STS S 50 FT E 160 FT N 50 FT W TO BEG11/29/22 (EX W 20 FT)","subTitleText":" 2331 N KANSAS AVE"},"scaleBarOptions":{"metricUnit":"Kilometers","metricLabel":"km","nonMetricUnit":"Miles","nonMetricLabel":"mi"},"legendOptions":{"operationalLayers":[]}}} Am I misunderstanding how to include these custom text elements? Should they not be nested within the layoutOptions the way I have them? Sorry about the big long JSON string, that's just the way it came out when I copied from Firebug.
... View more
06-05-2013
12:53 PM
|
0
|
12
|
5561
|
|
POST
|
I ended up with a variation of your suggestion: var minNode = dojo.query('#floater_GeomMeasure .dojoxFloatingMinimizeIcon')[0]; dojo.connect(minNode, "onclick", function(e){ // console.log("dojo connect minNode onClick"); closeMeasure(); }); This executes my closeMeasure, which includes deactivating the draw toolbar. It worked in IE 8, which is still our default browser.
... View more
06-04-2013
12:45 PM
|
0
|
0
|
1656
|
|
POST
|
No, that didn't work. Aren't nodes more for widgets? This is just a standard floating pane with a couple of buttons in it. I saw another thread that I thought was similar to listen for when an infoWindow closed:
<a class="hide" dojoattachpoint="_hide" dojoattachevent="onclick:hide" style="margin-left: 303px; "><div class="sprite"></div></a>
Code related to the event: dojo.connect(map.infoWindow._hide, "onclick", function(){
//your code here for handling the close button click.
});
I haven't quite figured out the syntax yet, but it seems like I should maybe be looking at something similar on the minimize dojoattachpoint of the minimize icon instead?
... View more
06-03-2013
12:23 PM
|
0
|
0
|
1656
|
|
POST
|
I like that suggestion, Steve. I think there are a few existing ones that are just too short that it would be nice if ESRI adjusted what is in the existing sprite file. Especially the ones that generate just to the left or right are too close. The ones that are at a angle aren't quite so bad. I did dig enough to see they were sprites and that was where I stopped. I'm not ready to generate my own custom sprites!
... View more
06-03-2013
07:44 AM
|
0
|
0
|
1319
|
|
POST
|
I think I have a different problem. I have a dojo.connect that is supposed to be listening for when the pane is closing to do some clean up by calling the closeMeasure function. I just realized that 'closeMeasure' isn't getting called after all. I thought it was. My problem is the syntax is listening for when the floating pane is closed. Or should I be listening for something related to the dock? I have a line that must not be the right way to go about this:
dojo.connect (dijit.byId('floater_GeomMeasure'), "onHide", closeMeasure);
... View more
05-31-2013
01:21 PM
|
0
|
0
|
1656
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-02-2017 02:38 PM | |
| 2 | 03-18-2022 10:14 AM | |
| 2 | 02-18-2016 06:28 AM | |
| 1 | 03-18-2024 07:29 AM | |
| 4 | 08-02-2023 06:08 AM |
| Online Status |
Offline
|
| Date Last Visited |
02-25-2025
01:56 PM
|