|
POST
|
Brain, Are you using api version 3.14 or greater? if so, you should be using "setLabelingInfo" instead of LabelLayer. ~Thejus
... View more
01-26-2017
09:08 AM
|
1
|
1
|
2387
|
|
POST
|
Jason, Have you tried to get the extent of the featureLayer and then expanding/buffer the geometry by a factor. That way your target geometry will always be bigger then the featureLayer. -Thejus
... View more
01-26-2017
06:52 AM
|
1
|
1
|
758
|
|
POST
|
You are set the minScale and maxScale for the layers while adding it to the map. Layer | API Reference | ArcGIS API for JavaScript 3.19
... View more
01-19-2017
08:34 AM
|
0
|
0
|
491
|
|
POST
|
If I am understanding it correctly, you are using map.graphics.add to add the school graphics to map. Is that correct? If so you can use the graphicsUtils to get the extent of the graphics and then try to zoom to it. require(["esri/graphicsUtils", ...
], function(graphicsUtils, ... ) {
var schoolGraphicsExtent = graphicsUtils.graphicsExtent(map.graphics.graphics);
map.setExtent(schoolGraphicsExtent, true);
...
});
... View more
01-18-2017
10:24 AM
|
1
|
4
|
1667
|
|
POST
|
I think that MapImageLayer is using the functionality provided by Dynamic Layer of the Map Service. Because of which you are able to change the symbology, label and other details of a MapService. It is similar to LayerDrawingOptions in 3.x version. I couldn't find any documentation though. I checked the service used in the sample and they have the Dynamic Layer support enabled. Its worth a try.
... View more
01-17-2017
09:29 AM
|
1
|
3
|
2342
|
|
POST
|
And it still doesn't work? Have you enabled the Supports Dynamic Layers for the map service?
... View more
01-17-2017
08:17 AM
|
1
|
5
|
2342
|
|
POST
|
Hello Evon, You snippet does not have the id property in it. All the sample snippet has the id value, which will provide the information on which sublayer, the changes needs to be applied to. Have you tried adding the "id" property? Warm Regards
... View more
01-17-2017
07:58 AM
|
0
|
7
|
2342
|
|
POST
|
The error is in the line console.log(geometry); here the variable geometry is not defined before using it.
... View more
12-28-2016
06:11 AM
|
2
|
0
|
990
|
|
POST
|
Since, you are using the LayerDrawingOptions. It should be simple as setting the option to null. optionsArray[this.parameters.idPos] = null;
this.parameters.layer.setLayerDrawingOptions(optionsArray);
... View more
12-27-2016
05:33 AM
|
1
|
0
|
2168
|
|
POST
|
I apologize, If the this.createSymbol is working in for, then there should be no issue with the scope for the function "uniqueValRenderer". I am wondering why did the lang.hitch for array.forEach did not work for you. array.forEach also has a scope parameter you could try that. arrayUtils.forEach(codedValues, function(codeItem){
...
}, this);
... View more
12-23-2016
05:33 AM
|
0
|
2
|
2168
|
|
POST
|
The scope while calling the function "uniqueValRender" might not be the "this", you want. Try changing the scope using 'lang.hitch' before calling 'uniqueValRender' and then change the scope for array.forEach. If you want to reatain the scope to be you module. you need to use 'lang.hitch' all the place, where the scope might change, all callback functions.
... View more
12-22-2016
06:06 AM
|
1
|
4
|
2168
|
|
POST
|
You are using the same instance of symbol object "defaultSymbol" and then adding it to each of the UniqueValues. when you update the color using "defaultSymbol.setColor(color)", it updates the color for all the coded values. Try creating different instance of symbol for each coded values, that should solve your problem.
... View more
12-21-2016
12:34 PM
|
2
|
6
|
2168
|
|
POST
|
Prasad, I cannot give you a solution, without knowing what the problem is. All I am saying is the "Unexpected token < ..." error occurs when the server returns html instead or JSON. The "<" is not a valid in JSON, but it is used in HTML to begin a tag. The html can be anything from 'server not found' 404 or 'service unavailable' 503 etc. You need to open the browser's developer window and look through all the requests sent, as well as response received. See if it contains any HTML response out of the ordinary. That will give is a clue what might be the cause of the problem. Hope this was helpful.
... View more
12-06-2016
10:36 AM
|
0
|
0
|
2698
|
|
POST
|
Looks like I was wrong, The UniqueValueRenderer and ClassBreakRenderer both can symbolize Polygon with Point symbols, and it is working fine in sandbox. My guess is, some other code it updating the symbols back again or the polygon layer is on top of the point layer.
... View more
12-01-2016
10:53 AM
|
0
|
0
|
2125
|
|
POST
|
If the Geometry type is Polygon, you cannot apply SimpleMarkerSymbol to it as they are meant for Point Type of Geometry.
... View more
12-01-2016
10:24 AM
|
2
|
2
|
2125
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-24-2017 07:15 AM | |
| 1 | 09-13-2016 06:27 AM | |
| 1 | 05-21-2015 08:06 AM | |
| 1 | 12-16-2015 05:43 AM | |
| 1 | 07-20-2015 09:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-29-2024
02:34 AM
|