POST
|
I had the same problem, but I had a date field that was incorrect.
... View more
09-25-2014
08:41 AM
|
0
|
0
|
349
|
POST
|
I gave this another look but still haven't found a good solution. Ideally there would be a GeometryDependentRenderer (like ScaleDependentRenderer), that has a symbol for every type of geometry. Can I implement something like that myself?
... View more
06-25-2014
04:30 AM
|
0
|
0
|
241
|
POST
|
Does someone have an idea how I could change this? I was wondering if it was possible to have something as a GeometryRenderer that draws a different symbol depending on the input geometry?
... View more
06-06-2014
04:33 AM
|
0
|
0
|
241
|
POST
|
I'm trying to style my graphicsLayer with css instead of a custom renderer. The problem is that the GraphicsLayer with styling = false and adds points as svg path instead of circles. These paths are very small and not stylable. I was wondering why the GraphicsLayer doesn't add circle elements to the map if styling is set to false. The workaround that I see is that I could set styling to true and still provide styling with css, but then I also need a custom renderer. So, can I enforce GraphicsLayer to add points as svg circle? (To clarify, I have multiple geometry types on the graphicslayer. Otherwise I could just set the default symbol to be a circle, but because I also have lines and polygons I cannot use this solution.)
... View more
06-02-2014
02:11 AM
|
0
|
2
|
621
|
POST
|
I am currently using karma with karma-dojo (https://github.com/karma-runner/karma-dojo) as unit test suite for my esri code. I was wondering if and how it is possible to mock esri objects.
... View more
05-15-2014
07:00 AM
|
0
|
0
|
567
|
POST
|
Is there any particular reason you were passing null to GraphicsLayer? Otherwise, like you said, just don't pass null and follow the documentation. No reason, I just validate it now. This was code that worked in 3.8 so this was something that I needed to fix to update.
... View more
04-13-2014
11:04 PM
|
0
|
0
|
658
|
POST
|
I was wondering if this is something that you are still looking into? I would like to use webpack for building my applications but this is not possible at the moment.
... View more
04-10-2014
04:04 AM
|
0
|
0
|
341
|
POST
|
When running this code in 3.9:
var l = new GraphicsLayer(null)
In 3.9 you get this error:
TypeError {stack: "TypeError: Cannot read property 'plugins' of undef???esolve (http://js.arcgis.com/3.9/init.js:197:441)", message: "Cannot read property 'plugins' of undefined"}
"TypeError: Cannot read property 'plugins' of undefined
at http://js.arcgis.com/3.9/init.js:1005:336
at Object.some (http://js.arcgis.com/3.9/init.js:224:133)
at g._pluginsHandler (http://js.arcgis.com/3.9/init.js:1005:305)
at h.(anonymous function).g (http://js.arcgis.com/3.9/init.js:239:390)
at new <anonymous> (http://js.arcgis.com/3.9/init.js:105:288)
In 3.8 this worked just fine. Solving this is easy of course (don't pass null to the GraphicsLayer).
... View more
04-09-2014
11:54 PM
|
0
|
6
|
1356
|
POST
|
Hi, On ArcGIS10.1 trying to use the ArcGIS Rest admin api, when I want to create a new site with "createNewSite" (http://resources.arcgis.com/en/help/server-admin-api/createSite.html). I get the following error when using an UNC path for a "CACHE" directory's physicalPath: Failed to create the site. String index out of range: -1 I tried to write it as: "\\\\UNC\\PATH"
"\\UNC\PATH" but neither work. Using a local directory works just fine. It's not a problem with the directory not being available because I can use "register" (http://resources.arcgis.com/en/help/server-admin-api/registerDirectory.html) to register the directory and then it works just fine. Is this a bug or am I doing something wrong?
... View more
12-18-2013
01:50 AM
|
0
|
0
|
3415
|
POST
|
If you have a support contract with Esri you can file a bug report at http://support.esri.com. As far as I know that is the only way to file a bug report, but the JS API devs do read this forum. Ok, thanks. I'll wait for a dev to come around then.
... View more
05-01-2013
11:08 PM
|
0
|
0
|
236
|
POST
|
I have a problem with the ArcGIS Javascript API on android. (it could be linked with the problem I described in a previous post (see here) but I don't believe this is the case, however I'm not sure so I'm linking the issue) The problem occurs on android 4.2.2 with the Chrome browser. After some navigation interaction (pinching, swiping, dragging,...) with the map I sometimes get the following error: Uncaught TypeError: Cannot read property 'identifier' of undefined It's rather hard to debug the minified javascript code so I formatted it (http://jsbeautifier.org/) and ran it through a debugger to find out what the problem was. In the function _touchMove:
if (this._numTouches === 2) {
var _ba1 = this._nodeTouches[0],
_ba2 = this._nodeTouches[1];
if (!this._pinchActive) {
if (_b9f) {
var _ba3 = _b9d[_ba1.identifier],
_ba4 = _b9d[_ba2.identifier],
....
The error is on the line _ba4 = _b9d[_ba2.identifier]. Uncaught TypeError: Cannot read property 'identifier' of undefined and undifend is _ba2. The problem is that this._numTouches === 2 but _this._nodeTouches.length === 1 After debugging some more I found out that the problem must be with the _addTouch and _removeTouch method. I believe that _removeTouch is not always called but It's hard to confirm this. I've detected this by logging _this.numTouches. The behaviour I got was that touching with multiple fingers (more then 3 for example) and then lifting them again, _this.numTouches didn't always go down to 0. As a fix for my own, I did this:
_addTouch: function (_bc4) {
var i, _bc5 = _bc4.changedTouches,
_bc6 = this._nodeTouches;
this._numTouches = _bc4.touches.length;
//this._numTouches += _bc5.length;
...
}
So instead of using _bc4.changedTouches.length I use _bc4.touches.length (likewise in _removeTouch). Are there any reasons changedTouches is used instead of touches? Some follow up questions: Is there any chance you will post your de-uglified API online? Maybe even make the API available on github? Is this forum the right place to ask these kind of questions? This looks like a bug to me.
... View more
04-30-2013
05:41 AM
|
0
|
2
|
691
|
POST
|
This is indeed the same problem. For people wanting to test this issue, use the Plunker example I provided (here: http://plnkr.co/edit/LKAyLwV69EQqgLl5LzEx?p=preview). First go to the map, then back to main. Now resize the window so you don't see the title anymore and then size it up again. Now switch back to the map. Play around with the map (zoom, pan) and you will see the strange behaviour.
... View more
04-15-2013
11:15 PM
|
0
|
0
|
733
|
POST
|
I've done some more debugging and found the following things. The map goes blank after this exact sequence: Open the map Switch to an other view (map is not visible) Resize the div (map gets onResize event that gets 0 as its size) Switch back to the map (the map is still there). Zoom on the map. The map disappears. At the moment we switch back to the map and the height of the map changes from 0 (it was not visible) to xxx (visible again) the map extent gets set to Nan for all x and y. Calling reposition or resize does not fix this, instead it does something weird. After these methods are called, the map stays blank, but the extent is valid again. However, as soon as I pan or zoom the map, the extent goes back to Nan for all x and y. Calling setExtent does seem to solve the problem. Is this a bug?
... View more
04-15-2013
06:14 AM
|
0
|
0
|
733
|
POST
|
Hi, I've got a question about building a mobile application with the ArcGIS JS API (3.4 compact) and AngularJS (http://angularjs.org/ - a javascript framework for building web applications). The application we are developping is a single page app where you can switch between views. A very simple sample can be found here: http://plnkr.co/edit/LKAyLwV69EQqgLl5LzEx?p=preview. The problem we are experiencing is that after switching between views the ArcGIS Map doesn't always render again correctly (goes blank - sometimes the zoomSlider is not visible also). As far as we have found the problems Open the map Switch to an other view (map is not visible) Open the mobile keyboard (div resize) Switch back to the map (map is reattached to the div) -> the map doesn't render. By catching the updateExtent event, I can see that the extent gets set to NaN, but manually calling setExtent with a correct extent doesn't work either. The current solution use Angular ngView (like in the example). As far as I can tell this completely removes the div from the DOM. The div is still available through esri.map.container and I use this div to reattach the existing div to the DOM. I've also tried to hide the map by setting display:none to the map div but this results in simular problems. How do I solve this problem? Possible solutions: Add a new map every time with new esri.map (expensive to set all the state again - so I don't like this solution) Is it possible to update the div (element esri.map.id) after switching tabs? Is it possible to do something like esri.dijit.OverviewMap.hide and .show? Can I pause the map, so that I pause the map before switching away from the map, and enable it again after I have switched back (pausing would be to stop all events from propagating to the map). Other possibilities?
... View more
04-15-2013
12:27 AM
|
0
|
27
|
8301
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|