|
POST
|
Ah I need a esriSRUnit2Type - so International Yard http://resources.esri.com/help/9.3/ArcGISDesktop/ArcObjects/esriGeometry/esriSRUnit2Type.htm
... View more
02-11-2014
07:59 AM
|
0
|
0
|
1311
|
|
POST
|
So many yards - who knew? 😉 So which of the 8 yards iis the good old fashioned British yard?
... View more
02-11-2014
07:56 AM
|
0
|
0
|
1311
|
|
POST
|
Hi i'm trying to finish my custom measure tool (the esri widget isn't up to the job) and trying to allow users to change units. I have code, not dis-similar to https://developers.arcgis.com/javascript/jssamples/util_buffergraphic.html However, whilst I can happily change to UNIT_FOOT, UNIT_METER even UNIT_US_NAUTICAL_MILE I can't seem to get UNIT_YARD to work. Looking at the DistanceParameters - it appears to store these as valies - so UNIT_METER is returned in the console as 9001. However UNIT_YARD returns UNDEFINED - surely that is a valid unit? Cheers ACM
... View more
02-11-2014
07:09 AM
|
0
|
4
|
1570
|
|
POST
|
True - but for my internal application it is just right - I know exactly what my users use (currently XP, IE8 with Google Chrome Frame, monitors, keyboards and mice) - I'm not sure I'd ever want anyone doing this sort of stuff on a mobile device - I'd use Collector or the green app for that. One difference between my test (on fiddle) and prod system, is the text isn't in the default map.graphics, but in a new graphics layer.
... View more
02-04-2014
11:12 PM
|
0
|
0
|
2341
|
|
POST
|
Hi - I sent the Selected object to console in the working and non-working version - all I can see different is the projection Working object
_extent: Object
_graphicsLayer: Object
_offsets: Array[1]
_shape: Object
attributes: undefined
geometry: Object
spatialReference: Object
wkid: 4326
__proto__: Object
type: "point"
x: -40
y: 35
__proto__: Object
infoTemplate: undefined
symbol: Object
_fill: null
_stroke: null
align: "middle"
color: b.Color
font: Object
horizontalAlignment: "center"
kerning: true
rotated: false
text: "Editable Text"
type: "textsymbol"
x: 0
xoffset: 0
y: 0
yoffset: 0
Failing object
_extent: Object
_graphicsLayer: Object
_offsets: Array[1]
_shape: Object
attributes: Object
geometry: Object
spatialReference: Object
wkid: 27700
__proto__: Object
type: "point"
x: 315910.97257876315
y: 85021.0373395566
__proto__: Object
infoTemplate: undefined
symbol: Object
_inherited: Object
align: "middle"
angle: 0
color: b.Color
font: Object
horizontalAlignment: "center"
kerning: true
rotated: false
text: "FAILING"
type: "textsymbol"
x: 0
xoffset: 0
y: 0
yoffset: 0
End of day here. So off home 🙂 ACM
... View more
02-03-2014
07:03 AM
|
0
|
0
|
2341
|
|
POST
|
Odd - I created my own version(I have never got to frips with jsfiddle) and it worked OK -copied to jsfiddle http://jsfiddle.net/EqVX6/2/ - right click the text and selct rotate on the text. So, I guess there is something about how I add the text in my production site - I'll look at that next week.
... View more
02-02-2014
04:38 AM
|
0
|
0
|
2341
|
|
POST
|
Mmm nearly there I think I tweaked your code into mine, to give if (selected.symbol.declaredClass === "esri.symbol.TextSymbol") {
var tool = 0;
tool = tool | esri.toolbars.Edit.MOVE;
tool = tool | esri.toolbars.Edit.SCALE;
tool = tool | esri.toolbars.Edit.ROTATE;
tool = tool | esri.toolbars.Edit.EDIT_TEXT;
//specify toolbar options
var options = {
//uniformScaling: false
};
editToolbar.activate(tool, selected, options);
}
This doesn't produce any errors, but it doesn't give any resized or rotate handles - it doesm however allow a drag of the textsymbol. Cheers Adrian
... View more
01-31-2014
02:24 AM
|
0
|
0
|
2341
|
|
POST
|
OK - reviving thread after 3.8 says this can be done. I am trying now to merge the functionality into the context menu sample https://developers.arcgis.com/javascript/jssamples/graphics_contextmenu.html My code is Non-AMD so not sure if I can get this working. Cheers ACM PS this is as far as I have got
ctxMenuForGraphics.addChild(new dijit.MenuItem({
label: "Rotate/Scale",
onClick: function () {
if (selected.geometry.type !== "Point") {
if (selected.symbol.declaredClass === "esri.symbol.TextSymbol") {
editToolbar.activate(esri.toolbars.Edit.EDIT_TEXT, selected);
}
else {
editToolbar.activate(esri.toolbars.Edit.ROTATE | esri.toolbars.Edit.SCALE, selected);
}
} else {
alert("Not implemented");
}
}
}));
But it fails with Uncaught Error: [esri.toolbars.Edit::activate] Unable to activate the tool. Check if the tool is valid for the given geometry type.
... View more
01-30-2014
03:49 AM
|
0
|
0
|
2341
|
|
POST
|
Are you using Windows XP (still) by any chance? WE've had exactly this (well it sounds like it) flashing black screen when over various panels. It turns out to be graphics card related with XP - to fix it we turned down the Graphic Hardware Acceleration - we found two notches down from the lowest worked fine. Credit here to Martin on our internal help desk, who had seem similar issues with other applications. Not an issue with Windows 7 (afaik) ACM
... View more
01-29-2014
08:19 AM
|
0
|
0
|
4011
|
|
POST
|
Thanks for that - could you add the bug number please, so that I can keep an eye on the release info (I'm guessing ArcGIS server is the product affected)
... View more
01-28-2014
11:26 PM
|
0
|
0
|
3672
|
|
POST
|
I did think of having text and points in different graphics layers, but that would be a big re-write. Not only do I add these to the map, but I also add the definition to Local Storage, so when users go back into the map any added annotation re-appears. I'd have to write a few extra loops within the process of retrieving the data from Local Storage. Which I can do, but if there was an acceptance that this was a bug then I can tell the users that and hope esri fix it.
... View more
01-28-2014
12:50 AM
|
0
|
0
|
3672
|
|
POST
|
and this one is text first
{
"mapOptions": {
"showAttribution": true,
"extent": {
"xmin": 283587.7543757293,
"ymin": 78359,
"xmax": 342600.2456242707,
"ymax": 113602,
"spatialReference": {
"wkid": 27700
}
},
"spatialReference": {
"wkid": 27700
},
"scale": 155427.79855309209
},
"operationalLayers": [{
"id": "mainbasemaps",
"title": "mainbasemaps",
"opacity": 1,
"minScale": 0,
"maxScale": 0,
"url": "http://eddc-gis2/arcgis/rest/services/BaseMapOSNonTiled/MapServer",
"visibleLayers": null,
"layers": []
}, {
"id": "altbasemaps",
"title": "altbasemaps",
"opacity": 1,
"minScale": 0,
"maxScale": 0,
"url": "http://eddc-gis2/arcgis/rest/services/alt_basemaps/MapServer",
"visibleLayers": null,
"layers": []
}, {
"id": "aerialmaps",
"title": "aerialmaps",
"opacity": 1,
"minScale": 0,
"maxScale": 0,
"url": "http://eddc-gis2/arcgis/rest/services/LIVEinternal/aerials/MapServer",
"visibleLayers": null,
"layers": []
}, {
"id": "mainmap",
"title": "mainmap",
"opacity": 0.9,
"minScale": 0,
"maxScale": 0,
"url": "http://eddc-gis2/arcgis/rest/services/test/emap2/MapServer",
"visibleLayers": [],
"layers": []
}, {
"id": "graphicsLayer0",
"minScale": 750,
"maxScale": 0,
"featureCollection": {
"layers": []
}
}, {
"id": "usergraphics",
"minScale": 0,
"maxScale": 0,
"featureCollection": {
"layers": [{
"layerDefinition": {
"name": "pointLayer",
"geometryType": "esriGeometryPoint"
},
"featureSet": {
"geometryType": "esriGeometryPoint",
"features": [{
"geometry": {
"x": 312785.5723453909,
"y": 85884.63477246207,
"spatialReference": {
"wkid": 27700
}
},
"symbol": {
"color": [0, 0, 0, 255],
"type": "esriTS",
"horizontalAlignment": "left",
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"text": "text first",
"rotated": false,
"kerning": true,
"font": {
"size": 54,
"style": "normal",
"variant": "normal",
"decoration": "none",
"weight": "normal",
"family": "verdana"
}
}
}, {
"geometry": {
"x": 311140.62485414237,
"y": 84239.68728121354,
"spatialReference": {
"wkid": 27700
}
},
"symbol": {
"color": [0, 0, 0, 255],
"size": 54,
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"type": "esriSMS",
"style": "esriSMSCircle",
"outline": {
"color": [255, 0, 0, 255],
"width": 0.75,
"type": "esriSLS",
"style": "esriSLSSolid"
}
}
}]
}
}]
}
}, {
"id": "graphicsLayer1",
"minScale": 0,
"maxScale": 0,
"featureCollection": {
"layers": []
}
}, {
"id": "graphicsLayer2",
"minScale": 0,
"maxScale": 0,
"featureCollection": {
"layers": []
}
}, {
"id": "map_graphics",
"minScale": 0,
"maxScale": 0,
"featureCollection": {
"layers": []
}
}],
"exportOptions": {
"outputSize": [2125.98, 2362.2],
"dpi": "96"
},
"layoutOptions": {
"titleText": "",
"authorText": " ",
"copyrightText": "Crown Copyright and database rights 2014 Ordnance Survey 100023746 ",
"scaleBarOptions": {
"metricUnit": "Kilometers",
"metricLabel": "km",
"nonMetricUnit": "Miles",
"nonMetricLabel": "mi"
},
"legendOptions": {
"operationalLayers": [{
"id": "mainmap"
}]
}
}
}
... View more
01-27-2014
05:54 AM
|
0
|
0
|
5843
|
|
POST
|
Of first of two posts - this is the "ioArgs.content.Web_Map_as_JSON" for text added last
{
"mapOptions": {
"showAttribution": true,
"extent": {
"xmin": 283587.7543757293,
"ymin": 78359,
"xmax": 342600.2456242707,
"ymax": 113602,
"spatialReference": {
"wkid": 27700
}
},
"spatialReference": {
"wkid": 27700
},
"scale": 155427.79855309209
},
"operationalLayers": [{
"id": "mainbasemaps",
"title": "mainbasemaps",
"opacity": 1,
"minScale": 0,
"maxScale": 0,
"url": "http://eddc-gis2/arcgis/rest/services/BaseMapOSNonTiled/MapServer",
"visibleLayers": null,
"layers": []
}, {
"id": "altbasemaps",
"title": "altbasemaps",
"opacity": 1,
"minScale": 0,
"maxScale": 0,
"url": "http://eddc-gis2/arcgis/rest/services/alt_basemaps/MapServer",
"visibleLayers": null,
"layers": []
}, {
"id": "aerialmaps",
"title": "aerialmaps",
"opacity": 1,
"minScale": 0,
"maxScale": 0,
"url": "http://eddc-gis2/arcgis/rest/services/LIVEinternal/aerials/MapServer",
"visibleLayers": null,
"layers": []
}, {
"id": "mainmap",
"title": "mainmap",
"opacity": 0.9,
"minScale": 0,
"maxScale": 0,
"url": "http://eddc-gis2/arcgis/rest/services/test/emap2/MapServer",
"visibleLayers": [],
"layers": []
}, {
"id": "graphicsLayer0",
"minScale": 750,
"maxScale": 0,
"featureCollection": {
"layers": []
}
}, {
"id": "usergraphics",
"minScale": 0,
"maxScale": 0,
"featureCollection": {
"layers": [{
"layerDefinition": {
"name": "pointLayer",
"geometryType": "esriGeometryPoint"
},
"featureSet": {
"geometryType": "esriGeometryPoint",
"features": [{
"geometry": {
"x": 314019.2829638273,
"y": 87077.22170361727,
"spatialReference": {
"wkid": 27700
}
},
"symbol": {
"color": [0, 0, 0, 255],
"size": 54,
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"type": "esriSMS",
"style": "esriSMSCircle",
"outline": {
"color": [255, 0, 0, 255],
"width": 0.75,
"type": "esriSLS",
"style": "esriSLSSolid"
}
}
}, {
"geometry": {
"x": 318090.52800466743,
"y": 84938.78996499417,
"spatialReference": {
"wkid": 27700
}
},
"symbol": {
"color": [0, 0, 0, 255],
"type": "esriTS",
"horizontalAlignment": "left",
"angle": 0,
"xoffset": 0,
"yoffset": 0,
"text": "text last",
"rotated": false,
"kerning": true,
"font": {
"size": 54,
"style": "normal",
"variant": "normal",
"decoration": "none",
"weight": "normal",
"family": "verdana"
}
}
}]
}
}]
}
}, {
"id": "graphicsLayer1",
"minScale": 0,
"maxScale": 0,
"featureCollection": {
"layers": []
}
}, {
"id": "graphicsLayer2",
"minScale": 0,
"maxScale": 0,
"featureCollection": {
"layers": []
}
}, {
"id": "map_graphics",
"minScale": 0,
"maxScale": 0,
"featureCollection": {
"layers": []
}
}],
"exportOptions": {
"outputSize": [2125.98, 2362.2],
"dpi": "96"
},
"layoutOptions": {
"titleText": "",
"authorText": " ",
"copyrightText": "Crown Copyright and database rights 2014 Ordnance Survey 100023746 ",
"scaleBarOptions": {
"metricUnit": "Kilometers",
"metricLabel": "km",
"nonMetricUnit": "Miles",
"nonMetricLabel": "mi"
},
"legendOptions": {
"operationalLayers": [{
"id": "mainmap"
}]
}
}
}
... View more
01-27-2014
05:53 AM
|
0
|
0
|
5843
|
|
POST
|
OK - old thread and probably old issue, but one just reported to me. By using the advice above my text prints fine - the size is correct and it all looks OK. HOWEVER If the user adds a graphic point first - just that a point. Then adds text, when it prints no text is printed If the user adds text first, the a plain point, just the text is printed. Any ideas before I start pulling my code apart. ACM
... View more
01-27-2014
05:15 AM
|
0
|
0
|
5843
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-28-2025 01:14 AM | |
| 1 | 12-01-2023 06:07 AM | |
| 2 | 11-29-2024 04:32 AM | |
| 1 | 05-28-2024 12:50 AM | |
| 1 | 03-16-2023 06:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|