POST
|
So I saw you have two maps in two views. If one of the map is the default view(the first view when app starts), I guess it can be displayed properly. If the map view is not visible at the beginning, you will end up with a map with width and height both set at 400px, and the map won't function properly as well. So can you check your width and height of the map? I think this is not a problem of dojox.mobile.View. As long as your map object is attached to a hidden DOM node when starts up, you get this problem. You can try to make a map view as default view to test, for example using your map2: <div id="map2" data-dojo-type="dojox.mobile.View" style="height:100%;" data-dojo-props="selected: true"> <h1 data-dojo-type="dojox.mobile.Heading" data-dojo-props="fixed: 'top'">Map 2</h1> <div id="mapdiv"></div> </div> And don't forget to set the width and height of your mapDiv to 100%
... View more
09-26-2013
11:20 AM
|
0
|
0
|
263
|
POST
|
Have you checked the map.spatialReference to see if the whole map is really displayed in WKID 4326?
... View more
09-26-2013
11:15 AM
|
0
|
0
|
420
|
POST
|
I think it is a bug. I have met this problem before- services turn from public to private without any notice, maybe after a shutdown as John mentioned. The version I used is 10.1.
... View more
09-25-2013
09:25 AM
|
0
|
0
|
245
|
POST
|
I don't have the code, but this is what I would try: first of all, you don't need to use editor to edit features, you can just use featureLayer.applyEdits() method. 1, use a draw tool to draw a polygon withing a polygon in your featureLayer 2, save the geometry of the polygon you just drawn to a variable for update later 3, use featureLayer.selectFeatures() method to select the polygon you want to clip out 4, update the geometry of the polygon. you can use geometry.addRing() method. (may need to arrange the new ring counter-clockwise in order to create a whole) 5, Now the polygon you want to clip out has a new geometry with a whole in it which is the polygon you drawn, you can just use featureLayer.applyEdits(null, feature, null) to update the clipped out polygon. check the API references for the corresponding objects and methods.
... View more
09-25-2013
09:21 AM
|
0
|
0
|
147
|
POST
|
Check your web service from ArcGIS Server Manager. If you see a small lock icon, click it to open security setting and set it to public. If you haven't changed anything, that maybe the problem.
... View more
09-25-2013
07:14 AM
|
0
|
0
|
245
|
POST
|
Do you mean the url of the icon? each layer should have one with the url ending with: MapServer/id/images/urlfromJson you also get binary image data
... View more
09-24-2013
05:17 AM
|
0
|
0
|
1381
|
POST
|
I set up a comparison between SearchCursor and da.SearchCursor, the code is like this: import arcpy, time shp = r"C:\Users\THINK\Desktop\python\Data\TOWNS.shp" #da SearchCursor sTime = time.clock() rows = arcpy.da.SearchCursor(shp, ["TOWN", "TOTAL_SQMI"]) for row in rows: town = row[0] area = row[1] print ("The area of %s is %s sq miles."%(town, area)) del row, rows eTime = time.clock() tDiff = eTime - sTime print "da SearchCursor uses %s seconds."%(tDiff) #SearchCursor sTime = time.clock() rows = arcpy.SearchCursor(shp) for row in rows: town = row.getValue("TOWN") area = row.getValue("TOTAL_SQMI") print ("The area of %s is %s sq miles."%(town, area)) del row, rows eTime = time.clock() tDiff = eTime - sTime print "SearchCursor uses %s seconds."%(tDiff) I assume da.SearchCursor will be faster but it took more than 2 seconds while SearchCursor finished in just 0.5 second. Is there something wrong with the test?
... View more
09-23-2013
04:56 PM
|
0
|
4
|
2234
|
POST
|
you can try this. It is written in AMD mode, so make sure you add "esri/graphicsUtils" in your require function parameters, and give it a local name "GraphicsUtils". extGraphics = GraphicsUtils.graphicsExtent(resultFeatures); map.setExtent(extGraphics);
... View more
09-23-2013
01:49 PM
|
0
|
0
|
307
|
POST
|
If that's how you want to use the date field (not worrying about real date), add 2000 to each seems to be a easy solution. 🙂
... View more
09-23-2013
09:33 AM
|
0
|
0
|
389
|
POST
|
Not very sure if this is what you want. It looks like you want to save a collection of features generated in the application. Possible solution: You can publish an empty feature service, add it to your app as a feature layer, and then save the features you want to the service using featureLayer.applyEdit() method.
... View more
09-17-2013
02:41 PM
|
0
|
0
|
252
|
POST
|
Hi, each layer (actually most esri classes do) should have a "declaredClass" property. So you can try call: layer.declaredClass to see the type of the layer. the returned value would be like: "esri.layers.ArcGISDynamicMapServiceLayer", "esri.layers.WebTiledLayer", ...
... View more
09-12-2013
05:23 AM
|
0
|
0
|
203
|
POST
|
I am working on a mobile application which include a form. But when I include "dojox/mobile/FormLayout", the app erred out with the message undefined module. So I guess this is not included with the API. Anyone has ideas of working around this? Maybe I need to include another full-version of Dojo? Thanks!
... View more
09-11-2013
05:06 PM
|
0
|
0
|
508
|
POST
|
Just found the property, which is "fieldValue"......
... View more
09-03-2013
07:42 PM
|
0
|
0
|
109
|
POST
|
I am trying to apply edits to a feature layer and I tried to borrow this sample here. https://developers.arcgis.com/en/javascript/jssamples/ed_attribute_inspector.html But the edit never applies and I found there is no evt.newFieldValue in the AttributeInspector's "attribute-change" event object. I checked the event object but couldn't find the property about the new field value. Did anyone find the same issue? In an emergence with the object, please help!:D
... View more
09-03-2013
07:33 PM
|
0
|
1
|
488
|
Title | Kudos | Posted |
---|---|---|
1 | 11-14-2013 11:53 AM | |
1 | 08-19-2013 06:42 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|