POST
|
I'm having a similar problem with the JSON request. In the example the this request (//hostname/arcgis/rest/info?f=json) goes through without problem: [ATTACH=CONFIG]34637[/ATTACH] However when I tried with my local map services (published with 10.2 server, have legend info), the request gets canceled everytime: [ATTACH=CONFIG]34638[/ATTACH] Any suggestion how to fix this would be most welcome.
... View more
06-17-2014
02:31 AM
|
0
|
0
|
212
|
POST
|
Thanks for your replies. @jgravois: I have tried with a basemap in 102100 and a dynamic map in 4326, the export did not work either. Maybe it's really something wrong when I publish the map services. The map services work fine with Flex API though. Here's the code I used to create the layers. All the map services are published on my local server. dojo.require("esri.map")
var map;
function init() {
var initialExtent = new esri.geometry.Extent(2030.12314635761, 15574.1782288986, 57647.2626848096,50684.9208499972,
new esri.SpatialReference({"wkid":4326}));
map = new esri.Map("map", {extent: initialExtent} );
var basemapURL="http://esrisa-nb1116/ArcGIS/rest/services/ppg/SDCP_BH/MapServer";
var basemap = new esri.layers.ArcGISTiledMapServiceLayer(basemapURL);
var operationalLayer = new esri.layers.ArcGISDynamicMapServiceLayer
("http://esrisa-nb1116/ArcGIS/rest/services/isag/SPT/MapServer");
map.addLayers([basemap, operationalLayer]);
}
dojo.addOnLoad(init); @svakil: the code run just right. The sample code from the training runs okay as well. It's only when I use my own map services that it has problems.
... View more
11-15-2012
03:24 PM
|
0
|
0
|
358
|
POST
|
Hello, I'm a newbie to ArcGIS JavaScript API. I'm following the training material provided by ESRI when I encounter a problem. I'm trying to add a cached layer as the basemap and a dynamic layer as the operational layer. The map spatial reference is defined accordingly to the base map SR and it's in WGS 1984 (wkid = 4326). However my dynamic layer is in a spatial reference with wkid = 4757. According to this llink, both of them will be displayed. However when I try: map.addLayers([basemap, operationalLayer]) only the base map appears. I check the Export call using the developer tool of the browser, and find out that my dynamic layer has the following parameters: dpi:96
transparent:true
format:png8
bbox:-19687.435903608326,15574.1782288986,79364.82173477553,50684.9208499972
bboxSR:4326
imageSR:4326
size:1041,369 Both bboxSR and imageSR is in the map spatial reference. Does it mean my dynamic layer never gets re-projected on the fly? When I remove the base map and set the map SR to 4757, the dynamic layer appears just fine. I tried to set the imageSpatialRefernce in imageParameters of the dynamic layer to 4757, still it did not show. What should I do? Thanks for reading.
... View more
11-14-2012
11:38 PM
|
0
|
4
|
1947
|
POST
|
Thank you!! It works like magic! What is the reason behind this?
... View more
10-30-2012
08:24 PM
|
0
|
0
|
428
|
POST
|
Hi, I am trying to add random texture to the my buildings by using the code provided in the tutorial with minor changes. When I assign the rule to the building polygons and generate, the result was mixed: some buildings has texture applied to them, while other remain blank (white). In some case, only one or two sides of the building have texture, but the rest is blank. Please view screenshot as below: And here's my rule file code: const randomFacadeTexture = fileRandom("data/facade_textures/f*.tif") attr floorheight = rand(4,5) actualFloorHeight = case scope.sy >= floorheight : scope.sy/rint(scope.sy/floorheight) else : scope.sy actualTileWidth = case scope.sx >= 2 : scope.sx/rint(scope.sx/4) else : scope.sx Lot --> extrude(HEIGHT) comp(f){front: Facade | side: Facade | top: Roof } Building. Facade --> setupProjection(0, scope.xy, 8*actualTileWidth, 8* actualFloorHeight) texture(randomFacadeTexture) projectUV(0) My building layer has 9000+ polygon. I wonder if that is a problem if the number of polygon/faces is too large. Thank you for your time!
... View more
10-30-2012
12:45 AM
|
0
|
3
|
743
|
POST
|
Hi, Thank you for your solution. For now what I did was I manually assigned the different start rule for different points and use the case-else grammar to get the correct file path, but your method is way better. However, the full point feature class is quite big (around 500), and the mapping information is store elsewhere (I'm trying to export it into an excel file or a text file). If there is anyway of reading the value directly from the file and do mapping it would be better in term of effort and also better for maintenance, if later on the data is updated or more models are added in. Thanks again for your time!
... View more
10-10-2012
12:46 AM
|
0
|
0
|
499
|
POST
|
I have a layer of points, each with an unique ID. I have a file which maps the point ID to the building model's file name. What I want to do now is to write a rule file which takes the ID and produce the file name, then use i(file name) to insert the model at the points. My questions are: - is there any way to implement a hash function in cga grammar? - is there any looping mechanism in cga? - if it is impossible to achieve what I want using rule file, what are the other options I have? I am new to City Engine, so please pardon my lack of knowledge. Thanks for your time.
... View more
10-09-2012
01:37 AM
|
0
|
5
|
1019
|
POST
|
Hi, I'm having a similar problem with infoWindow after the FeatureLayer is refreshed. Have you found the solution to this problem? Thanks.
... View more
07-25-2012
06:40 PM
|
0
|
0
|
132
|
POST
|
Hi, I'm using ArcGIS server 10.04 for my project and I cannot upgrade to 10.1 anytime soon. However, I need to achieve a function similar to this example: http://resources.arcgis.com/en/help/flex-api/samples/index.html#//01nq00000070000000 Basically what I am trying to do is to get a list of points with top occurrences in a category (for example, the top 5 area with highest state counts) I would appreciate it if anyone suggest me a way to do this in ArcGIS 10. Thank you.
... View more
07-04-2012
05:48 PM
|
0
|
0
|
820
|
POST
|
Hi, I have a point Feature Layer of around 4000 points, and I'm using WeightedClusterer and FlareSymbol to display this layer. I'd like to change the tolerance of the cluster, that is the minimum distance between two points before they are grouped into a cluster. To my knowledge is no attribute in neither FlareSymbol nor WeightedClusterer to set this value. I've done a search and all the results return are about XY tolerance of the feature layer, not the clustering. I would be very grateful if somebody could help me with this request. I'm using ArcGIS Flex API 3.0.
... View more
06-19-2012
12:09 AM
|
0
|
2
|
812
|
POST
|
Thanks Ivan. I'll try out your code. Edit: It works, thank you 🙂
... View more
10-28-2011
12:24 AM
|
0
|
0
|
260
|
POST
|
Hi all, My problem is like this: I have a list of Graphics, divided into two type, that need to be display accordingly and depending on user input. Currently I put them into an ArrayCollection. It would be something like this: [{graph: graphic1, type: 1},
{graph: graphic2, type: 2},
{graph: graphic3, type:2},
{graph: graphic4, type:1},
...] The list is dynamically updated at runtime. User can select the type from a dropdown list, and the graphic must be updated accordingly. I tried to tie the above array collection to the GraphicLayer.graphicProvider but it failed, due to the object in my ArrayCollection is not a graph. TypeError: Error #1034: Type Coercion failed: cannot convert Object@d2a87c1 to com.esri.ags.Graphic I would really appriciate if somebody could provide me with some suggestion. The other solution I could think of is create two GraphicLayer and switch between them, but I think there must be a better and simpler way to do this. Thanks for reading.
... View more
10-27-2011
01:01 AM
|
0
|
2
|
645
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|