|
POST
|
Thanks Robert, I'll continue to play around with it. I'm sure I must have made a mistake somewhere. It's probably a good time for me to walk away and come back. My popups look awesome, now. And that is what I needed. Thanks for your help! Tyler
... View more
11-17-2016
09:31 AM
|
0
|
0
|
3031
|
|
POST
|
Hi Robert, Thanks for providing me this template. The css that you provided fixed my issue. However, in my original application I am not referencing bootstrapmap.js only bootstrapmap.css. Is that an issue? Should I be using bootstrapmap.js as you are? If so, I'm getting a 404 on bootstrapmap.js in this template. I dug a little deeper and found the 404 at: http://rawgit.com/xsokev/Dojo-Bootstrap/master I downloaded bootstrap map locally and changed the dojoConfig to: var package_path = window.location.pathname.substring(0, window.location.pathname.lastIndexOf('/'));
var dojoConfig = {
packages: [{
name: "application",
location: package_path + '/js'
}, {
name: "bootstrap",
location: "bootstrapmap.js"
}]
}; However, I'm getting a BootstrapMap is not a constructor when i create my map. Any idea how I should proceed? Thanks, Tyler
... View more
11-17-2016
07:20 AM
|
0
|
2
|
3031
|
|
POST
|
Greetings, I'm working with popups in an ESRI Javascript API 3.18 bootstrapmap.js map and my popups are not styling correctly. It appears to me like I am missing both the minimize and maximize buttons and the popup pointers appear to not be drawing correctly. See below: Initially the popup titlePane was white and the close button was invisible. I followed the directions at Making Your Pop-up Pop! | ArcGIS Blog and copied the css from http://serverapi.arcgisonline.com/jsapi/arcgis/3.1/js/esri/dijit/css/Popup.css and that got me this far. How do I take this the rest of the way? Thanks, Tyler
... View more
11-16-2016
01:58 PM
|
0
|
4
|
4191
|
|
POST
|
Hi, I am seeing something strange in my IdentifyTask.execute. In the past I have not used the error callback on my IdentifyTask.execute calls just because I've never seen them fail. However, today was different. I set up a identify task on a map service and set up the parameterslike so: identifyTask = new IdentifyTask("http://domainName/arcgis/rest/services/test/SD/MapServer"); identifyParams = new IdentifyParameters(); identifyParams.tolerance = 3; identifyParams.returnGeometry = true; identifyParams.layerIds = [4]; identifyParams.layerOption = IdentifyParameters.LAYER_OPTION_ALL; identifyParams.width = map.width; identifyParams.height = map.height; However when I called the identifyTask on map click, nothing happened. No error or anything. So I brought in my good friend errorCallback to see what was going on. To my surprise, the error callback reported a beautifully structured response - the one that I had expected to see in in my successCallback instead of an error. And this return was perfectly structured geometry, attributes and everything. It was perfect. Here is what I'm using for the execute task: function executeIdentifyTask(mapPoint) { require(["dojo/_base/array", "dojo/on"], function(arrayUtils, on){ console.log("event.mapPoint: " + mapPoint); identifyParams.geometry = mapPoint; identifyParams.mapExtent = map.extent; var deferred = identifyTask.execute(identifyParams).addCallback(function (response) { return arrayUtils.map(response, function (result) { var feature = result.feature; var layerName = result.layerName; feature.attributes.layerName = layerName; var bgTemplate = new InfoTemplate("", "Name: ${Name}"); feature.setInfoTemplate(bgTemplate); return feature; }); }, function (error){ console.log("error: " + JSON.stringify(error)); }); console.log("deferred: " + JSON.stringify(deferred)) map.infoWindow.setFeatures([deferred]); map.infoWindow.show(mapPoint); }); } Has anyone seen anything like this before? It is driving me crazy. Thanks, Tyler
... View more
11-15-2016
01:52 PM
|
0
|
0
|
810
|
|
POST
|
Hi I'm noticing that there is no "manual" classification method listed in the Javascript documentation. Is there any way that I can set my breaks manually? My service's drawingInfo.renderer.classBreakInfos does indicate that the classification method is manual (i.e. "classificationMethod":"esriClassifyManual"). However, nothing in the documentation indicates that I can set these through the API. Anyone know how to manually define the class breaks renderer? Thanks, Tyler
... View more
09-28-2016
02:11 PM
|
0
|
2
|
2170
|
|
POST
|
Thanks a ton. I changed it around a little and swapped out the legend items with spectrum.js colorpickers and it works like a charm.
... View more
07-28-2016
03:05 PM
|
1
|
0
|
1853
|
|
POST
|
Greetings, I am experiencing an intermittent error in all of my applications that I am referencing featureLayers in. The problem is not persistent but the when it occurs it is very noticeable to the end user. Every once in a while I get a "Unable to complete operation" error from line 187 of init.js (the details of the error are listed below). This error occurs thtoughout the use of the application whether panning and zooming or querying the feature layer. I use the following code to add the layer: var arficaLayer = new FeatureLayer(url+"/1", { mode: FeatureLayer.MODE_SNAPSHOT, outFields: ["*"], id: "africa", autoGeneralize: true, definitionExpression: "1=1" }); map.addLayer(arficaLayer); I've tried different mode setting for the feature layer but to no avail. Any information on how I should be correctly adding this feature layer will be greatly appreciated. Best regards, Tyler init.js:89 Error: Unable to complete operation.(…)w @ init.js:89 (anonymous function) @ init.js:88 c @ init.js:103 d @ init.js:103 resolve.callback @ init.js:105 c @ init.js:104 d @ init.js:103 resolve.callback @ init.js:105 c @ init.js:104 d @ init.js:103 resolve.callback @ init.js:105 c @ init.js:104 d @ init.js:103 resolve.callback @ init.js:105 (anonymous function) @ init.js:92 h @ init.js:107 k @ init.js:107 resolve @ init.js:109 a @ init.js:108 h @ init.js:107 k @ init.js:107 resolve @ init.js:109 a @ init.js:108 h @ init.js:107 k @ init.js:107 resolve @ init.js:109 a @ init.js:108 h @ init.js:107 k @ init.js:107 resolve @ init.js:109 n @ init.js:138 e @ init.js:142
... View more
07-28-2016
02:54 PM
|
0
|
0
|
1199
|
|
POST
|
Greetings, I have a nice little ESRI Javascript API application pointed at an ArcGIS Server instance. The client would like to change the symbology of any given feature in the application. They have the ability to turn on and off multiple layers but sometimes the users want the ability to change symbology in the event that the symbology looks bad when combined. Is there any way to give the user the ability do define the colors of the renderer using a color picker or something? Thanks, Tyler
... View more
07-21-2016
11:58 AM
|
0
|
3
|
3344
|
|
POST
|
Whoops, It was a feature layer. I edited my post to reflect this detail.
... View more
03-08-2016
11:49 AM
|
0
|
0
|
940
|
|
POST
|
Greetings, I have set up a map service with labels and transparency. When I view the service in the REST endpoint via the ArcGIS JavaScript API the labels and transparencies come through correctly. However, in my JavaScript application neither the labels nor the transparency come trough. I am also getting the following error when loading this layer: n {message: "Request canceled", response: Object, status: undefined, responseText: undefined, xhr: XMLHttpRequest…} What can I do to get this layer to load correctly? Thanks, Tyler
... View more
03-08-2016
10:09 AM
|
0
|
2
|
4037
|
|
POST
|
I have enabled user and role security on ArcGIS server. However, the security popup in my ESRI JavaScript API applicaiton seems decomposed. Anyone know why this is or if I can apply some style to correct it?
... View more
03-01-2016
11:23 AM
|
0
|
1
|
1601
|
|
POST
|
Greetings, I am deploying the print widget in an new application. I am having a difficult time using the print widget to create usable map with more than 14 legend items. I have a number of layers that have at least 14 symbol classifications (i.e. zoning, future land use & etc...). How do folks use the print widget and include a comprehensive legend? Any advice or pointers will be greatly appreciated. Thanks, Tyler
... View more
10-07-2014
07:04 AM
|
1
|
0
|
3042
|
|
POST
|
Yep. Robert's right. I ended up doing this in my code. private function featureSelectionComplete(event:FeatureLayerEvent):void { for each (var field:Field in event.target.layerDetails.fields) { if (field.type == Field.TYPE_DATE) { //TODO - handle date field here } } }
... View more
09-12-2014
01:51 PM
|
1
|
0
|
1928
|
|
POST
|
Thanks for getting back with me so soon. In my code I just tried setting the featurelayer's disableClientCaching property to true and it does not work. I am however, able to remove my feature layer from my map and then add it back in to force the symbology update. It's too choppy a ride for production use though. Thanks, Tyler
... View more
08-27-2014
09:06 AM
|
0
|
1
|
1005
|
|
POST
|
Greetings, I have a flex application that updates the attributes of a feature layer. I am able to update the attributes just fine at run time. However, when I run myFeatureLayer.refresh() in my editsComplete event handler, the symbology of my layer does not update. It is not until I reload the application that my edits are reflected in the symbology. Am I missing soimething? Thanks, Tyler
... View more
08-27-2014
07:43 AM
|
0
|
3
|
4128
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-28-2016 03:05 PM | |
| 5 | 09-20-2017 11:37 AM | |
| 2 | 01-28-2019 12:21 PM | |
| 1 | 10-16-2017 12:56 PM | |
| 1 | 10-07-2014 07:04 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|