POST
|
You may need to add that map as two separate dynamic layers, and specify the relevant visibleLayers for each dynamic layer. - create a dynamic layer for the polygon (eg, visibleLayers = [2]) and set its opacity to 0.6 - create a dynamic layer for the points, lines and annotations (eg, visibleLayers = [0,1,3]) Then how does arcgis.com does it, when you open a dynamic map service in arcgis.com. It shows a layerlist on the left. That means it loads each layer as a synamic layer spaerately?
... View more
04-05-2013
01:35 PM
|
0
|
0
|
409
|
POST
|
I have a dynamic map with annotation, point, line and polygon layer. One of the polygon layer is set to be 60% transparent ion Map Document. When I load the dynamic map without setting opacity property, the polygon layer does not show its default transparency. And, if I set the opacity for dynamic map , all the layers shows as transparent. Is there a way to just show layers as its in Map Document?
... View more
04-04-2013
07:51 AM
|
0
|
4
|
837
|
POST
|
How can I display legend in a UIView somewhere like in a left panel, instead of popover view controller?. I am using code from Legend sample.
... View more
03-19-2013
07:24 AM
|
0
|
1
|
656
|
POST
|
I am replicating the upload shapefile sample in my application. Everything is showing up correctly on the map. Problem is that I am not able to query or select features from the uploaded layer, any query is giving an error as "query contains one or more unsupported parameters". My query is defined as var query = new esri.tasks.Query(); query.where = "1 = 1"; // or "FID = 1" or any other where clause. query.outFields = ["*"]; uploadLayer.queryFeatures(query, function (featureSet) { console.log(featureSet); }); any ideas
... View more
02-19-2013
11:25 AM
|
0
|
1
|
692
|
POST
|
I am getting the same error in upload shapefile sample. Weird thing happening is that if I run sample from esri server, it works fine on my IE9 browser. But if I copy past the same code on my server and run it from there, then it gives "Unable to get value of the property 'value': object is null or undefined" error. really need help with this.
... View more
02-13-2013
09:03 AM
|
0
|
0
|
543
|
POST
|
does upload shapefile sample not supposed to work in IE 8. http://help.arcgis.com/en/webapi/javascript/arcgis/samples/portal_addshapefile/index.html Doesn't do anything when I upload zipped shapefile in IE 8.
... View more
02-12-2013
09:50 AM
|
0
|
0
|
265
|
POST
|
after drawing on sketch layer, I am pushing the feature to add to the feature layer. In didFeatureEditsWithResults, if I I write [self.sketchLayer removeAllGraphics] and [self.sketchLayer dataChange] , then drawn geometry gets removed after the editing is complete (which is correct). Problem is , if I don't write above two lines then, I am not able to draw anything again on sketch layer (doesn't see anything while sketching again), although NSLog outputs Mutable Point or Mutable Line , but nothing (no vertex) appears on the map.
... View more
02-08-2013
12:42 PM
|
0
|
0
|
693
|
POST
|
I am setting up the query geometry as AGSQuery = [AGSQuery query]; query.geometry = graphic.geometry; query.returnGeometry = TRUE; query.spatialRelationship = AGSGeometryRelationIntersection [queryTask executeWithQuery:query]; If I draw a line, query is done by line envelop. Is it possible to query by exact shape?
... View more
02-06-2013
07:52 AM
|
0
|
2
|
2039
|
POST
|
I am having some trouble in running GPS Sketch sample on my mac. Although , I found this http://stackoverflow.com/questions/11791888/arcgis-current-location , seems to be working better , but I am still getting some weird drawing when drawing Line . I will post back once I get the GPS sample working. Thanks,
... View more
02-05-2013
11:50 AM
|
0
|
0
|
307
|
POST
|
I am trying to create a similar GPS workflow as in ArcGIS Online iOS Application. Basically I have a GPS button and a add point button, when GPS button is on, map shows GPS poisition and tap on satellite button adds a point on the map and this part works fine for me. Next, if user taps add point button the what it should do is 1) Take you GPS location 2) Add point then Action code for Add Point is self.sketLayer.geometry = Mutable Type........ is set to point,line or polygon based on user selection in different method
- (IBAction)addGPSPoint:(id)sender{
if(!self.mapView.gps.enabled){
[self.mapView.gps start];
self.mapView.gps.autoPanMode = AGSGPSAutoPanModeDefault;
self.mapView.gps.wanderExtentFactor = 0.75;
self.mapView.gps.navigationPointHeightFactor = 0.8;
UIImage *gpsImg2 = [UIImage imageNamed:@"onGPS.png"];
[self.gpsButton setBackgroundImage:gpsImg2 forState:UIControlStateNormal];
}
AGSPoint *gpsPoint = [self.mapView.gps currentPoint];
AGSSpatialReference *sr = [AGSSpatialReference spatialReferenceWithWKID:26915];
if([self.sketchLayer.geometry isKindOfClass:[AGSMutablePolyline class]]){
[self.sketchLayer.geometry addPointToPath:[AGSPoint pointWithX:gpsPoint.x y:gpsPoint.y spatialReference:sr]];
}
else if([self.sketchLayer.geometry isKindOfClass:[AGSMutablePolygon class]]){
[self.sketchLayer.geometry addPointToRing:[AGSPoint pointWithX:gpsPoint.x y:gpsPoint.y spatialReference:sr]];
}
else{
self.sketchLayer.geometry = [AGSPoint pointWithX:gpsPoint.x y:gpsPoint.y spatialReference:sr];
}
NSLog(@"%@",self.sketchLayer.geometry);
[self.sketchLayer dataChanged];
}
whats happening is that 1) point doesn't get added if sketch geometry is currently empty (i.e. adding first vertex of geometry using GPS) 2) If suppose there are already a line with 2 vertices on the map and I try to add third point using GPS, Line goes somewhere outside the map area to unknown vertex. Is there anyone who known how to implement this correctly? Thanks, Vik
... View more
01-28-2013
11:51 AM
|
0
|
3
|
1039
|
POST
|
Is this the write way of loading WMS layer
esri.config.defaults.io.proxyUrl = "../proxy/proxy.ashx";
esri.config.defaults.io.alwaysUseProxy = true;
initExtent = new esri.geometry.Extent({"xmin":-35734.220130933,"ymin":4777506.27659575,"xmax":893683.447626841,"ymax":5521771.27659575,"spatialReference":{"wkid":26915}});
map = new esri.Map("map", {
extent: initExtent
});
var wmsLmicAerial = new esri.layers.WMSLayer("http://geoint.lmic.state.mn.us/cgi-bin/wmsll?");
wmsLmicAerial.setVisibleLayers(["fsa2010"]);
wmsLmicAerial.setImageFormat("png");
map.addLayer(wmsLmicAerial);
this code works perfectly in IE and firefox, but it gets stuck in chrome. Anyone know why?
... View more
01-22-2013
06:30 AM
|
0
|
2
|
528
|
POST
|
I am implementing multiple attribute inspector sample with popup in my application. Is it possible to show multiple features in popup window when using attribute inspector. Thanks, Vikrant
... View more
01-09-2013
09:30 AM
|
0
|
0
|
635
|
POST
|
I need to implement attribute editing for 3 or more feature layer and also attribute viewing (read only like identify task with infoWindow) on 3 or more dynamic map services. I am trying to use attribute inspector and identify task in my application. Whats happening is that dojo.connect(map, "onClick", identifyResult) and dojo.connect(layer, "onClick", function(evt) {..}); events are conflicting. What is the best way to implement both these functionalities.
... View more
12-26-2012
07:09 AM
|
0
|
0
|
378
|
Title | Kudos | Posted |
---|---|---|
1 | 05-17-2016 06:36 AM | |
1 | 05-02-2016 02:14 PM |
Online Status |
Offline
|
Date Last Visited |
06-30-2021
12:28 PM
|