POST
|
I have an application with a mapDiv within a contentPane. When I do a map.extent.....i seem to be getting the entire window instead of the area within the mapDiv in the contentPane. This results in having my .toScreenGeometry calculation off by, in this case, 550 px. I can put a fudge factor in (ie 550 px) but this is not the right solution. The tooltips are calculating outside of the area where the map should be. Any ideas of how to obtain the map extent within only the content pane. function showpointResults(featureSet) { resultFeatures = featureSet.features; myx = featureSet.features[0].geometry.x; myy = featureSet.features[0].geometry.y; mypoint = new esri.geometry.Point(myx,myy,new esri.SpatialReference({ wkid:2260 })); mymappoint = new esri.geometry.toScreenGeometry(map.extent, map.width, map.height, mypoint) closeDialog(); var tipContent = "<b>PIN</b>: " + featureSet.features[0].attributes["PIN"]; var dialog = new dijit.TooltipDialog({ id: "tooltipDialog", content: tipContent, style: "position: absolute; width:100px ;font: normal normal bold 9pt Tahoma;z-index:100" }); dialog.startup(); dojo.style(dialog.domNode, "opacity", 0.85); var screentooltip = new esri.geometry.toScreenGeometry(map.extent, map.width, map.height,featureSet.features[0].geometry); dijit.placeOnScreen(dialog.domNode, {x: screentooltip.x + 550, y: screentooltip.y}, ["TR"], {x: 10, y: 10}); }
... View more
03-29-2013
11:07 AM
|
0
|
0
|
488
|
POST
|
the set definition is done afterward to allow the users to "sort" through data and see only their matches. So with a drop down menu they can find all the point that are related to certain government departments. This part works well. I still can not find a way to loop through the contents of featurePointlayer. I should be able to with the graphic... when I do a tooltip evt on them, I can retrieve the attributes... var tipContent = "<b>PIN</b>: " + evt.graphic.attributes.PIN ; I am just having a very brain-dead moment!
... View more
03-19-2013
08:08 AM
|
0
|
0
|
245
|
POST
|
I am using a FeatureServer service with the FeatureLayer set to MODE_SNAPSHOT. After doing a setdefinitionsexpression, the map updates itself to only show those features. However, I now want to be able to loop through these newly identified features and label each one with some custom text. My question is how does one loop through them? ..... featureLayerpoint = new esri.layers.FeatureLayer("http://xyz/webadaptor_test/rest/services/TIPdataonly/FeatureServer/0", { mode: esri.layers.FeatureLayer.MODE_SNAPSHOT, infoTemplate: popupTemplate, outFields: ["*"] }); ...... map.addLayer(featureLayerpoint); ..... featureLayerpoint.setDefinitionExpression(setdefinitionstring); AT this point the map is updated.....how do I now work with the contents of the featureLayerpoint?
... View more
03-18-2013
11:12 AM
|
0
|
3
|
1534
|
POST
|
Hello All, I have an opinion question as person being rather new to building networks. What is the 'best' approach to dealing with bridges? 1. I can easily construct to and from z values. 2. I can put a node with turn restrictions 3. I can do 'spaghetti' digitizing where the two lines are not planerized. For a long term solution... is there any advantage or disadvantage to these methods? This question is stemming from our E911 software that essentially sees every node as an intersection (regardless of turn restrictions). The dispatchers do not recognize a bridge as an intersection. We want to understand the long term implications that may be present by not putting a node at those bridge interections.
... View more
09-27-2012
11:52 AM
|
0
|
1
|
626
|
POST
|
I do not want to hijack this thread, But...I have read a good deal of documentation on security... but is there a condensed checklist for implementing the identitymanager on IIS7. I seem to be going in circles. I am sure it is something simple. The variables are: IIS7, Arcgis Server 10.1, Javascript 3.0. (Server Certificate for SSL is on). For a non-security person, reading the various ways of implementing security seems to all blend....it is not always easy to determine what method someone is trying to use to ascertain if it applies to identitymanager. Many thanks.
... View more
09-17-2012
11:47 AM
|
0
|
0
|
497
|
POST
|
Hey, Having problems accessing secure services thru SSL enabled site https://<arcserver>:6443/arcgis/rest/services in JavaScript API and arcgis.com, i get the message: "Unable to access the authentication service". I dint had this problem before SSL was enable. I am using Identify manager and ArcServer 10.1. Flex viewer,ArcExplorer,ArcMap has no problem with secure services Thanks, Laurynas Gedminas Have you resolved this yet? I am having the same exact issue. SSL is set, Roles and Users are ok. I can test this through the REST services login page. But the IdentityManager widget gives me a "unable to access the authentication service". when trying to access from a web application.
... View more
09-14-2012
07:27 AM
|
0
|
0
|
497
|
POST
|
Thanks. I have now put a server certificate on. When I call the featurelayer using a https the layer does not render on the map, if I call it with a simple http it does render it on the map. var conditions = new esri.layers.FeatureLayer("https://gistest2:6080/ArcGIS/rest/services/roadwork2/FeatureServer/0",{ mode:esri.layers.FeatureLayer.MODE_ONDEMAND, outFields:["*"] }); So, i think that the https call is triggering the identitymanager, but I do not see a log on box. I am calling the entire appliation using https://gistest2.dcny.gov/roadwork/... No errors, just no login box. Any ideas?
... View more
09-06-2012
11:21 AM
|
0
|
0
|
272
|
POST
|
I am trying to use the dojo.require("esri.IdentityManager"); . My page simply ignores it. My understanding is, when adding a featureServer, it should call it and require a login. This does not happen. var conditions = new esri.layers.FeatureLayer("http://gistest2:6080/ArcGIS/rest/services/roadwork2/FeatureServer/0",{ mode:esri.layers.FeatureLayer.MODE_ONDEMAND, outFields:["*"] }); map.addLayers([conditions]); I am running iis7 and using 10.1 and javascript api 3.0. Do I need to do any kind of setup on arcgis manager or iis7 virtual directories?
... View more
09-06-2012
07:46 AM
|
0
|
3
|
848
|
POST
|
The correct syntax for assigning values to a variable is var template = [{ label: "Map it", format: "GIF", layout: "A4 Portrait", exportOptions: { width: 200, height: 200, dpi: 96 } }]; THANK YOU THANK YOU AND THANKS AGAIN! A "=" instead of a ":" !!! I starred at this for hours and read over the ":" a hundred times and never saw it.
... View more
08-24-2012
04:44 AM
|
0
|
0
|
410
|
POST
|
the templates parameter in the print widget is an array of template. In the first example(seen below), i believe that it is defined as an array..... the dijit still does not recognize it. templates: [{ label: "Map", format: "PDF", layout: "MAP_ONLY", exportOptions: { width: 500, height: 400, dpi: 96 } }, { label: "Layout", format: "PDF", layout: "A4 Portrait", layoutOptions: { titleText: "My Print", authorText: "esri", copyrightText: "My Company", scalebarUnit: "Miles", } }]
... View more
08-23-2012
12:15 PM
|
0
|
0
|
410
|
POST
|
Another way to ask the above question is... how does one get the Print digit to recognize a template? template = new esri.tasks.PrintTemplate(); template.exportOptions = { width: 500, height: 400, dpi: 96 }; template.format = "PDF"; template.layout = "MAP_ONLY"; template.preserveScale = false; printer = new esri.dijit.Print({ "map": map, "templates":template, url: "http://gistest2:6080/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task" }, dojo.byId("printButton")); printer.startup(); } //End of Init() I do not get a pdf. I get the default png. as an output, with default sizes.
... View more
08-23-2012
11:42 AM
|
0
|
0
|
410
|
POST
|
I can not seem to get my print to recognise a template. In the INIT function I have: printer = new esri.dijit.Print({ map: map, templates: template, url: "http://gistest2:6080/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task" }, dojo.byId("printButton")); printer.startup(); This work well, except for the template. I defined the template variable in the init function, before the printer as: var template = new esri.tasks.PrintTemplate(); template: [{ label: "Map it", format: "GIF", layout: "A4 Portrait", exportOptions: { width: 200, height: 200, dpi: 96 } }]; I get a map, but none of the template formating is seen.
... View more
08-23-2012
09:21 AM
|
0
|
5
|
1082
|
POST
|
I am working with teh export web map task utility. in the 'web map as json' input box i have: { "href": "http://gistest2:6080/arcgis/rest/services/basemap/MapServer", "width": 400, "height": 400, "extent": { "xmin": 533577.31183999323, "ymin": 931697.99341274076, "xmax": 895055.15751842246, "ymax": 1293175.8390911701, "spatialReference": { "wkid": 102715, "latestWkid": 2260 } }, "scale": 1041056.1955538762, "exportOptions":{ "dpi": 300, "outputSize": [500,500] }, "layoutOptions":{ "titleText": "City Land Use Map", "authorText": "Print by: XYZ", "copyrightText": "esri", } } The "format" input box I entered: GIF the Layout Template box: (i left empty). There is no error but the reponse back looks like "http://gistest2:6080/arcgis/rest/directories/arcgisoutput/Utilities/PrintingTools_GPServer/_ags_251911304d08404c913ccdeb41b6f75c.gif" is always a blank map. I know that the url to the map service works. Can someone see something obvious in the syntax of the json string?
... View more
08-23-2012
08:56 AM
|
0
|
1
|
2265
|
POST
|
In the new print widget the examples show the map being defined as: var app = {}; app.map = null, app.map = new esri.Map("map", { extent: initialExtent, wrapAround180: true }); this is compared to just : map = new esri.Map......... Can some please explain what is happening with the variable "app"? Thanks.
... View more
08-20-2012
06:12 AM
|
0
|
2
|
766
|
POST
|
A REST query will return a JSON response. It is very easy to get a value for a field. However, if the query is done on a featureclass that has been JOINED.... the field names are no longer simple, but instead have the table name included .... such as streams.width. features[0].attributes.streams.width gives an error. It does not like the two part name. If I assign an alias to the field, how can I use it? Thanks
... View more
01-27-2011
11:08 AM
|
0
|
1
|
469
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|