POST
|
Nope, that doesn't seem to fix anything. I have changed the web service layer to have exactly the same projection as the other layers but it still behaves as it did before. It must have something to do with the web service map layer because if I don't load it, the problem goes away.
... View more
12-19-2010
08:56 PM
|
0
|
0
|
560
|
POST
|
Hello, Has anyone seen the problem where the scalebar becomes incorrect after a zoom or pan? When the map initially loads the scale looks about right. When I zoom in or pan, the scale bar refreshes with the wrong scale, eg it goes from measuring 0.3 km to 100km after zooming. See the before and after shots attached.
... View more
12-19-2010
07:00 PM
|
0
|
5
|
1188
|
POST
|
I'm not 100% sure this is the easiest way to go but it looks like I can use the feature template picker without the editor and program all the editor stuff myself. Not exactly what I want to do as I like all the default editor handling. It's a hell of a work around just to get control of the infoTemplate. Does anyone have any better ideas? Mark
... View more
12-19-2010
02:16 PM
|
0
|
0
|
351
|
POST
|
OK, I solved this one. For some reason my application is looking in the root directory for the dojo icons directory and so missing some of the pictures needed to render the dialogue properly. I copied the icons directory to the web server root directory and it started rendering properly.
... View more
12-19-2010
01:46 PM
|
0
|
0
|
312
|
POST
|
Hi, I'm using a template picker and I want to display the area of the polygon that the user creates as an attribute in the infoWindow that pops up after feature creation. By default, all the attributes I define for the feature class appear but I cannot access the SHAPE.area field that holds the information I want to display. Currently I'm using a 'onBeforeApplyEdits' event to populate certain attributes for display. I have created a my own 'Area' attribute but now I want to populate it with the correct value. As a work around I have calculated the value using callbacks but getting the value returned is not really working for me. Does anyone know of a way to do this? Mark
... View more
12-15-2010
08:33 PM
|
0
|
0
|
472
|
POST
|
Hi, I'm using a template picker and when I set it up I specify that a rich text editor be shown for a certain attribute in the infoWindow ('HYPERLINK'). See my template definition below:
function initEditor(results) {
var layers = dojo.map(results, function(result) {
return {featureLayer:result.layer, htmlFields:["HYPERLINK"]};
});
var templateLayers = dojo.map(results, function(result) {
return result.layer;
});
var templatePicker = new esri.dijit.editing.TemplatePicker({
featureLayers: templateLayers,
rows: 'auto',
columns: 3,
style: "height: 100%;"
},'divFeatureServiceDijit');
templatePicker.startup();
var settings = {
templatePicker: templatePicker,
map: map,
geometryService: new esri.tasks.GeometryService("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"),
layerInfos:layers,
toolbarVisible: false,
createOptions: { polygonDrawTools:[esri.dijit.editing.Editor.CREATE_TOOL_FREEHAND_POLYGON] }
}
var params = {settings: settings};
var myEditor = new esri.dijit.editing.Editor(params);
myEditor.startup();
}
The problem is that when the infoWindow displays, the rich text editor isn't fully loaded. The outline is visible but none of the buttons are rendered. Interestingly, the buttons, though not rendered are selectable. If I create a web link using the link button, the dialogue appears and I can enter text into it. However, I can't click on the hyperlink after I set it and it is not saved to my SDE either. So, when I refresh and then click on the feature the web link is not there. If I don't use the web link button and just enter free text, the content is saved to the SDE. Has anyone else had trouble of this kind? Regards, Mark
... View more
12-09-2010
04:48 PM
|
0
|
2
|
580
|
POST
|
Hi, I'm trying to edit the infoTemplate for a featureTemplate that I created. Basically, I want to change the format from the standard one that comes with the template picker. Does anyone know how to do this? Regards, Mark
... View more
12-08-2010
02:51 PM
|
0
|
3
|
687
|
POST
|
Thanks so much, that worked a charm. The behaviour of setAttributes is very strange!
... View more
12-01-2010
12:27 PM
|
0
|
0
|
558
|
POST
|
OK, I've managed to push the attribute value into the graphic. However it then doesn't render the graphic that has just been created by the feature template picker. Any ideas?
var ft0 = new esri.layers.FeatureLayer("http://172.16.25.71/ArcGIS/rest/services/necma_wod2/FeatureServer/0",{
mode: esri.layers.FeatureLayer.MODE_ONDEMAND,
outFields: ['*']
});
dojo.connect(ft0, "onBeforeApplyEdits", addAttributeValues);
.
.
.
function addAttributeValues (adds, updates, deletes){
for (i in adds){
adds.setAttributes({"ARID":arid,});
adds.visible = true;
adds.show();
//alert(adds.getContent());
}
}
... View more
11-30-2010
09:54 PM
|
0
|
0
|
558
|
POST
|
OK, This looks like a known problem as described in this thread: http://forums.arcgis.com/threads/10033-Overview-map-does-not-show-contents-until-after-view-extent-changed
... View more
11-28-2010
01:17 PM
|
0
|
0
|
532
|
POST
|
Hi, Has anyone had the problem where the overview map does not redraw after panning within it? ie, I click on the overview map and then drag the map to a new position. My larger base map redraws fine but the overview map does not. It also does not redraw the overview map if I minimise and then open it. I've taken the suggestion of another forum posting and created a instance of the base map to be consumed by the overview map but that doesn't seem to make any difference. Any ideas? Mark
... View more
11-25-2010
08:52 PM
|
0
|
6
|
826
|
POST
|
Bump! I need to implement the callout text functionality using javascript as well. Has anyone done this yet? Regards, Mark
... View more
11-25-2010
12:01 PM
|
0
|
0
|
278
|
POST
|
Hi, I'm using the template picker to create features from a given template. What I want to be able to do is to automatically set the value of an attribute for that feature. The value of the attribute will only be known at the time it is created. Basically, the web application I am building receives an id that I need to assign to each feature created. I've had a look through the forums and samples but can't see exactly how to go about this. Regards, Mark
... View more
11-24-2010
07:40 PM
|
0
|
6
|
950
|
POST
|
Still no joy. I'm at the point where I have this code but it still does not render. The alerts below show the correct information I expect. Certainly, the coordinates are correct and the graphic object is visible:
var symbol = new esri.symbol.SimpleFillSymbol();
symbol.setColor(new dojo.Color([150,150,150,0.5]));
var pt = new esri.geometry.Point(upEast,upNorth,map.spatialReference);
var attr = {};
var infoTemplate = new esri.InfoTemplate("","");
var graphic = new esri.Graphic(pt,symbol,attr,infoTemplate);
alert (graphic.geometry.type);
alert (graphic.visible);
alert (graphic.geometry.x);
alert (graphic.geometry.y);
alert (graphic.geometry.spatialReference.wkid);
//Create graphics layer for upstream/downstream points
var upDownLayer = new esri.layers.GraphicsLayer();
map.addLayer(upDownLayer);
upDownLayer.add(graphic);
... View more
11-24-2010
06:25 PM
|
0
|
0
|
685
|
Title | Kudos | Posted |
---|---|---|
1 | 10-12-2021 03:26 PM | |
3 | 09-09-2021 04:19 PM | |
3 | 09-12-2021 04:54 PM | |
1 | 09-08-2021 09:42 PM | |
2 | 09-09-2021 05:31 PM |
Online Status |
Offline
|
Date Last Visited |
01-27-2022
03:29 PM
|