POST
|
Thanks a lot for quick reply, Yes, we did change the scales using Arc Tool box tool, manage map server cache scales, to reduce the size of cache outputs. The ESRI's scales are taking up the space upto 50 GB. Is there any way to use the custom scales in the map?
... View more
11-30-2016
06:16 AM
|
0
|
1
|
891
|
POST
|
We have a set of services which acts as a base layers to all users, so, we created a cache tiles for these layers which will be shown to even at LOD 24. After the serivce was created and the tile creation showing status of 100% in the server manager portal. When I click on the service to see that layer from servermanager it opens as "<servicelayer>/MapServer?f=jsapi" and in that, the layer is loading in all the LODs. But if the same layer was used at a webmap as a service, the layer's cache are not loading beyond the LOD level 19 (Which was the previous setting, set before we decided to change it to level 24). We are perplexed now. Couldn't understand why the same service behaving in two different manners. (Please see the images for better understanding.) Any help will be appreciated. Thanks in advance. P.S: LODs = Level of Details
... View more
11-30-2016
05:31 AM
|
0
|
3
|
1920
|
POST
|
I was using a layer which is in wkid:4326 projection and adding to the map. It is fine when I had arcGIS's satellite imagery as basemap, but when I use Google's satellite imagery base map, on around 12-13 LOD level, the features are starting to shift from its position and not overlapping with the base map. If I pan the map the layers are moving separtely from the base map like they are 2 different layers. Please see the uploaded images for the illustration. If any one else had this problem and found any solutions please share it in here, any help will be appreciated. Thank you!
... View more
11-03-2016
10:39 PM
|
0
|
0
|
711
|
POST
|
I have this customized print task, where I generate a print template with custom title, page layouts and on/off legend layer. This is generating the print template as expected with the legend. But when the page layout are in portrait format, the legends generated are not proper, the polygon legends are not generating properly. Please see the image below to know how it is generating. The same thing is generating fine in landscape layout. Only in portrait of A4 and both portrait and landscape of A3 page formats are generating this issue. Did any one faced this issue before? Please share the solution if any one knows about this. Thanks in advanced!
... View more
10-17-2016
03:28 AM
|
0
|
4
|
1701
|
POST
|
I had already published a tile map service and I want to apply definition query on it , so that I can only show few features to user, according to their requirement. Kindly help me if you know any solution for the same. I would Appreciate any help. Thanks !
... View more
09-25-2016
09:51 PM
|
0
|
1
|
1361
|
POST
|
Thanks a ton for the quick reply. I appreciate it and it is really helpful for me to understand about it. One more question, by any chance you know whether we can use the TiledMapService layers for querying and identifying features on them? like we do in other services as DynamicMapService? I am using javascript API of ArcGIS, is there any possibilities for it?
... View more
08-26-2016
11:59 PM
|
0
|
1
|
385
|
POST
|
I have the requirement given as, there are 100 layers in an SDE, separated in their own different types of datasets. Now, for creating a webMap application using these layers, is it a good thing to create 100 individual layers and store it in the server and let the map keep querying them every time it is needed(will adding cache to all the layers will increase it's performace??) or create the services as per the datasets and cache it for faster performance (will this help in loading the map more faster than the above option??) and use DynamicMapService for the application or is there any other efficient way to actually use this and also be more fast in the renderring of the map if we create a service wilth all the 100 layers on it and with tiled service capabilities and caching, (this got rendered and map getting loaded way faster than other above options) is ther any way we can manipulate the TiledMapService layers? like we do with the other service? Iam completely perplexed . Any help will be appreciated. P.S. There some layers with more than 50k data on it. So, the map performance is first priority now.
... View more
08-26-2016
06:58 AM
|
0
|
3
|
1095
|
POST
|
isn't the deafult value of the SimpleLineSymbol is "STYLE_SOLID"??
... View more
08-18-2016
06:12 AM
|
0
|
1
|
542
|
POST
|
I kinda tried that option before but no luck, but the symbols are now loading in the entirely different location of the map. please see the image for details
... View more
08-18-2016
06:10 AM
|
0
|
1
|
542
|
POST
|
I have the map services created from the datasets with WGS84 / UTM Zone 37N (wkid: 32637) projection and I am converting the projection to WGS 84 (wkid : 4326) using the OSgeo's Proj4.js file for the services to load the features in desired location on the base maps provided by ArcGIS. All the layers are loading fine but, the fillSymbol or the desired SimpleMarkerSymbol styles given to the output geometry are not getting applied to them. var fieldsSelectionSymbol = new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID,
new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID,
new Color([255, 0, 0]), 2), new Color([255, 255, 0, 0.25]));
qryTsk = new QueryTask(featurelayerur3);
qry = new Query();
qry.where = queryString;
qry.returnGeometry = true;
qryTsk.execute(qry, getUpdateDelteResults);
function getUpdateDeleteResults(results) {
var k = 0;
var splcount = 0;
if (results.features.length > 0) {
var extent = esri.graphicsExtent(results.features);
var proj1 = "+proj=utm +zone=37 +ellps=WGS84 +datum=WGS84 +units=m +no_defs";
var proj2 = "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs";
var reprojectedCoords1 = proj4(proj1, proj2, [extent.xmin, extent.ymin]);
var reprojectedCoords2 = proj4(proj1, proj2, [extent.xmax, extent.ymax]);
var newextente = new esri.geometry.Extent(reprojectedCoords1[0], reprojectedCoords1[1], reprojectedCoords2[0], reprojectedCoords2[1],
new esri.SpatialReference({ wkid: 4326 }));
map.setExtent(newextente);
var queryPoint_symbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_CIRCLE, 15,
new SimpleLineSymbol(SimpleLineSymbol,
new Color([238, 27, 34]), 2), new Color([238, 27, 34, 1]));
$.each(results.features, function () {
var outline_geometry = results.features[k].geometry;
qtpointsQ = new QueryTask(refFeaturelayerUrl);
utpoint = new Query();
utpoint.geometry = outline_geometry;
utpoint.returnGeometry = true;
utpoint.outFields = ["*"];
if (spatialMethod == "intersect")
utpoint.spatialRelationship = utpoint.SPATIAL_REL_INTERSECTS;
else if (spatialMethod == "overlaps")
utpoint.spatialRelationship = utpoint.SPATIAL_REL_OVERLAPS;
else if (spatialMethod == "within")
utpoint.spatialRelationship = utpoint.SPATIAL_REL_WITHIN;
qtpointsQ.execute(utpoint, saptialresults);
function saptialresults(results) {
if (results.features.length > 0) {
for (var i = 0; i < results.features.length; i++) {
var resGraphic = results.features[i];
resGraphic.setSymbol(queryPoint_symbol);
map.graphics.add(resGraphic);
var extent = esri.graphicsExtent(results.features);
var fname = "BuildingPolygon";
window[fname].setOpacity(0.5);
splcount++;
document.getElementById("lblQuery").innerHTML = "Spatial Filter results:" + splcount
}
}
}
k++;
});
}
else {
document.getElementById("lblQuery").innerHTML = "No Results were Returned..Pls Check the Query";
}
$('.processing').fadeOut(3000);
}; In the above code snippet, it is to give out the spatial query results where if there are some points within polygon, I am highlighting those points by the new SimpleMarkerSymbol in line no: 21. but the reprojected features are getting loaded but the neither the SimpleMarkerSymbol nor the SimpleFillSymbol styles defined are getting applied on the selected layers. Same problem in allover the project, wherever the SimpleMarkerSymbol or the SimpleFillSymbol are called on the reprojected geometries, these styles are not getting applied. Please help me to get a solution for this, this is making me scratch my head for past few weeks
... View more
08-18-2016
03:45 AM
|
0
|
7
|
1482
|
POST
|
It worked like a charm, thanks a ton for the quick reply. Btw, if you would explain me why sending it as a string doesn't work there, it will be great for my learning. anyhow, Thank you,
... View more
08-16-2016
05:53 AM
|
0
|
2
|
1137
|
POST
|
I have several layers getting loaded according to the user's rights towards them. Forexample. I have rights to access only to 5 layers out of 10, I will be viewing only 5 layers in my map and not all the layers. So, I dynamically generate it. Now, for search option to be present for every layer, The sources for the search was given from the ajax call. The layers are getting listed in the dropdown perfectly, but when I search in a particular layer or in "ALL" category it is throwing the following error: init.js:199 Error: Target must be an event emitter(…) "Error: Target must be an event emitter var searchParams = [];
$.ajax({
type: "POST",
url: "WebService.asmx/featurelist",//getting the allotted feature lists for this particular user
data: "{ 'aData': '" + userid + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (data) {
var myData = JSON.parse(data.d);
// console.log(myData);
var url1 = serviceLoc;
var url2 = "/MapServer/0";
for (var i = 0; i < myData.length; i++) {
searchParams.push({
featureLayer: ""+ finalurl + "",
name: "" + myData[i].Fname + "",
});
}
}
});
var search = new Search({
map: map,
sources: [],
zoomScale: 5000000,
placeholder : " Object id / Facility No "
}, "shoo");
search.on("load", function () {
var sources = search.sources;
// console.log(JSON.stringify(searchParams));
for (var i = 0; i < searchParams.length; i++) {
sources.push({
featureLayer: searchParams[i].featureLayer,
name: searchParams[i].name,
placeholder: "Object ID",
enableLabel: false,
searchFields: ["OBJECTID"],
displayField: "OBJECTID",
supportsPagination: true,
enableSuggestions: true,
enableSuggestionsMenu: true,
suggestionTemplate: "Object ID: ${OBJECTID}",
exactMatch: false,
maxResults: 10,
maxSuggestions: 10,
infoTemplate: new InfoTemplate("Object ID - ${OBJECTID}", "Ipsum Doler")
}//Set the sources above to the search widget
search.set("sources", sources);
});
search.startup();
If I hard code every layer on the sources array, it is working fine, but it is not working fine if I load it dynamically. I am clueless now, I request any of you give some solutions for it. Thanks in advance
... View more
08-16-2016
05:18 AM
|
0
|
4
|
2574
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|