POST
|
I had developed a web portal using ArcGIS 10.2. Google Layer is added through agsjs.layers.GoogleLayer and a mxd made by ArcMap is superimposed by adding it in the map layer levels. The issue is that the labels display perfect when part of which is above the mxd but when the labels comes over satellite view of google view the label gets a white shadow. How to remove it? Snapshot is attached for the issue generated.
... View more
09-01-2014
09:38 PM
|
0
|
0
|
2131
|
POST
|
Hi guys, I am a complete beginner to GIS but havent seen a preview of it, i am really interested and drawn to it at the moment. What i am looking to do is create a public website and share some information. I was hoping to get a few pointers on best way to do this. Questions i have is: - What is the best way to start? I have been using the online web maps on the arcgis website and been embeding this on to my website just to play about it at the moment. - Should i purchase any specific software? Or is there any free options to get this across. - I have a lot of data in csv format, how would i be able to get this easily across on to the maps? - Having the options of legends, is this easy to setup? - Does the coordinates have to be in longitue and lattitude, or can they be x and y co ordinates? I hope you dont mind me asking these questions, i am really a fan of the product and would like an oppertunity to really get to know it further. Thank you I had described basic steps to start with here: http://abhijat-innovations.blogspot.in/2012/06/creating-arcgis-web-application-net.html Hope it helps you in the initial stage. Abhijat
... View more
12-01-2013
10:56 PM
|
0
|
0
|
327
|
POST
|
Yes I noticed the code gallery..But you may only create own maps by adding some online layers or from file. Its not about adding functionality or code. As you mentioned its ok if we have to share code examples. For instance I had developed one gauge example which shows multiple value functionality in a single gauge. I wanted to share that functionality through Arcgis website. Basically implementation of arcgis tools and widgets. Anyways, its ok. Abhy
... View more
10-30-2013
11:38 PM
|
0
|
0
|
887
|
POST
|
Dear ArcGIS Team, Can we post our own experimentation (sample using arcgis maps) which may help masses. If yes then how? Abhy
... View more
10-29-2013
08:37 PM
|
0
|
6
|
1226
|
POST
|
Regret for not providing the exact solution. Yeah you were right. I suggest to use "mousedown" events which can have graphic attributes like latitude, longitude OR pixels so it may be transferred to next layer to select the same feature. Wish you reach the solution soon. 🙂 Abhy
... View more
10-29-2013
08:06 PM
|
0
|
0
|
716
|
POST
|
I am working on a mobile web app using jQuery Mobile. I have multiple "pages" in my app, but they are technically all in one html doc. The main page of my app has a map in it created using a webmap from ArcGIS Online. Another page in the app also needs to have a map in it and I would like to add a single feature layer from the main map to the second map. I tried:
self.map = new Map(self.mapDiv, {
basemap : "hybrid",
logo: false,
showInfoWindowOnClick : false,
slider: false
});
if (self.currentLayer) {
self.map.addLayer(self.currentLayer);
self.map.setExtent(graphicsUtils.graphicsExtent(self.currentLayer.graphics));
} Where self refers to the module this function is in. self.currentLayer is a FeatureLayer object taken directly from the main map. The above code successfully creates a map on the second page, but no features are visible on the map. Is it possible to have multiple maps with the same FeatureLayer shown in both? I'd like both maps to honor the same queries/selections/definition expressions and symbology. I again did some experimentation. Just have a look on the code below: <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
<title>Simple Map</title>
<link rel="stylesheet" href="http://js.arcgis.com/3.7/js/esri/css/esri.css">
<style>
html, body, #map, #map1 {
height: 80%;
width: 100%;
margin: 10;
padding: 0;
}
body {
background-color: #FFF;
overflow: hidden;
font-family: "Trebuchet MS";
}
</style>
<script src="http://js.arcgis.com/3.7/"></script>
<script>
var map,map1;
require(["esri/map", "esri/layers/FeatureLayer",
"esri/symbols/SimpleFillSymbol", "esri/symbols/SimpleLineSymbol",
"esri/renderers/SimpleRenderer", "esri/graphic", "esri/lang",
"dojo/_base/Color", "dojo/number", "dojo/dom-style",
"dijit/TooltipDialog", "dijit/popup", "dojo/domReady!"], function(
Map, FeatureLayer,
SimpleFillSymbol, SimpleLineSymbol,
SimpleRenderer, Graphic, esriLang,
Color, number, domStyle,
TooltipDialog, dijitPopup
) {
map = new Map("mapDiv", {
basemap: "streets",
center: [-80.94, 33.646],
zoom: 8,
slider: false
});
map1 = new Map("map1", {
basemap: "streets",
center: [-80.94, 33.646],
zoom: 8,
slider: false
});
var southCarolinaCounties = new FeatureLayer("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/3")
map.addLayer(southCarolinaCounties);
var southCarolinaCounties1 = new FeatureLayer("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/3")
map1.addLayer(southCarolinaCounties1);
});
</script>
</head>
<body>
<div id="mapDiv"></div>
<div id="map1"></div>
</body>
</html>
Basically I have to take two separate variables for defining same feature layer and then adding them to different map divs. P.S.: It was a random experiment so exclude unnecessary variables or require additions. Abhy
... View more
10-29-2013
03:20 AM
|
0
|
0
|
716
|
POST
|
At first sight, it seems the problem with the div part which is basically same when you adds up the feature layer. A new map is added to the separately specified div element "mapDiv" but while adding the feature layer, self.map.addLayer(self.currentLayer); doesn't adds to the different div (possibly it loads it in the first div which already added that). You probably needs to use selectors of jquery to add the feature layer to the specified div which would probably look similar to $("#mapDiv2").featureLayer({.... Above is not exact/correct example but the concept. So you need to experiment on that.
... View more
10-29-2013
12:56 AM
|
0
|
0
|
716
|
POST
|
I have been (again) hitting the ArcGIS JS wall... and it seems to be unbreakable at some spots. Now it seems that I cannot add BaseMapLayer(that "contains" WebTiledLayer) into the BasemapGallery AFTER I have created the mapo object via arcgisUtils.createMap. I mean, yes I can get the response.map object and work with it, but I seem not to be able to define the LOD since 1. my ArcGIS Online webmap has no cached service (I use custom WMS as a basemap there) 2. I found no way to attach my basemapgallery onto that map object so it can use those BasemapLayers as a basemap. The esri.Map interface shows setBasemap method that is only possible with Esri-accepted basemap layers. I feel being locked into small chamber, but I sense out there is lots of space and freedom. The one and most important question for me: is it possible to use WebTiledLayer in BasemapGallery or not when working with Esri boilerplate templates? Thank you, Raivo Alla Estonian Land Board Hey Raivo, I checked for the "Social Media Template"...Fortunately all worked fine there too. What I changed look at code below: // create the basemap gallery when active
createBMGallery: function() {
var _self = this;
var basemaps=[];
var waterTemplateLayer = new esri.dijit.BasemapLayer({type:"WebTiledLayer",
url:"http://tiles.maaamet.ee/tm/s/1.0.0/hybriid/1/1/1.png"
});
var waterBasemap = new esri.dijit.Basemap({
layers :[waterTemplateLayer],
title :"Water Template"
});
basemaps.push(waterBasemap);
var basemapGroup = false;
if (!_self.options.useArcGISOnlineBasemaps) {
basemapGroup = {
title: _self.options.basemapGroupTitle,
owner: _self.options.basemapGroupOwner
};
}
// basemap gallery
_self.basemapDijit = new BasemapGallery({
showArcGISBasemaps: _self.options.useArcGISOnlineBasemaps,
basemaps: basemaps,
//basemapsGroup: basemapGroup,
map: _self.options.map
}, domConstruct.create("div")); In addition to above code, I also changed the options in the config (NOT commonConfig) file as: "useArcGISOnlineBasemaps": false, Check out the attachments. Hope it helps, Abhy
... View more
10-28-2013
11:33 PM
|
0
|
0
|
840
|
POST
|
Well, I got it done by self-experimentation. Thanks to me. Used dx.charts. Some javascript and jquery and its done. Abhy
... View more
10-28-2013
01:25 AM
|
0
|
0
|
200
|
POST
|
Hello! My intention is to add custom basemaps (WebTiledLayer) to BasemapGallery, without ArcGISBasemaps, in the following way:
var bm1 = BasemapLayer({type: "WebTiledLayer",url:"http://tiles.maaamet.ee/tm/s/1.0.0/kaart/${level}/${col}/${row}.png"});
var bm2 = BasemapLayer({type: "WebTiledLayer",url:"http://tiles.maaamet.ee/tm/s/1.0.0/hybriid/${level}/${col}/${row}.png"});
var akaart = new Basemap({
layers: [ bm1, bm2 ],
id: "test1",
title: "MAMT aluskaart 1 "
});
var hkaart = new Basemap({
layers: [ bm2 ],
id: "test2",
title: "MAMT aluskaart 2"
});
basemaps = [akaart, hkaart];
basemapDijit = new BasemapGallery({
basemaps: basemaps,
showArcGISBasemaps: false,
//basemapsGroup: basemapGroup,
map: _self.options.map
},domConstruct.create("div")); Somehow it is not possible and digging deeper into ArcGIS JSAPI I found that the the function _switchBasemapLayers outputs: "esri.dijit.BasemapGallery: Unable to switch basemap because new basemap is a tiled service and cannot be loaded as a dynamic layer." (this.map.getNumLevels() returns 0). Yet the API (https://developers.arcgis.com/en/javascript/jsapi/basemaplayer.html) says that it's possible to add WebTiledLayer as a BasemapLayer and hence I assume it's possible to add as a Basemap to BasemapGallery. What's the problem here? I would appreciate any help. Thank you, Raivo Alla Estonian Land Board Raivo, I think you should use "basemaps.push(akaart);" & "basemaps.push(hkaart);" instead of "basemaps = [akaart, hkaart];". I used the example and feature layer (mentioned by you as http://tiles.maaamet.ee/tm/s/1.0.0/hybriid/1/1/1.png and it worked perfectly. Look at this edited code:
function createBasemapGallery() {
//manually create basemaps to add to basemap gallery
var basemaps = [];
var waterTemplateLayer = new esri.dijit.BasemapLayer({type:"WebTiledLayer",
url:"http://tiles.maaamet.ee/tm/s/1.0.0/hybriid/1/1/1.png"
});
var waterBasemap = new esri.dijit.Basemap({
layers :[waterTemplateLayer],
title :"Water Template"
});
basemaps.push(waterBasemap);
Abhy
... View more
10-20-2013
10:43 PM
|
0
|
0
|
840
|
POST
|
Hi Abhijat, Are you using the latest version of the ArcGIS Extensibility SDK for Silverlight 3.1? It looks like you're using an older release. You can get it from here. Hope this helps, Thanks a ton.
... View more
10-18-2013
03:03 AM
|
0
|
0
|
332
|
POST
|
Can we have multiple value functionality in a single gauge? I used example shown here :https://developers.arcgis.com/en/javascript/jssamples/widget_gauge.html and here: https://developers.arcgis.com/en/javascript/jssamples/widget_gauge_webmap.html. But instead of having four gauges I need to use only a single gauge which shows four values in circumcentric manner in different colors probably.. Can we? Regards, Abhy
... View more
10-18-2013
02:56 AM
|
0
|
1
|
585
|
POST
|
Using the Javascript API, what's a good way to implement the following functionality : A user should be able to select or draw a rectangle (A4 or A3) on the map and drag it. The resulting extent should be available for me (so I can send it to a printing routine). I'm looking for suggestions on what tools to use (maybe an esri drawing tool or the OverviewMap class https://developers.arcgis.com/en/javascript/jsapi/overviewmap-amd.html?) or other ideas of how to accomlpish this. Thanks in advance! Possibly I am not giving a beautiful explanation. But combining these two features may satisfy your requirement. https://developers.arcgis.com/en/javascript/jssamples/graphics_add.html https://developers.arcgis.com/en/javascript/jssamples/graphics_contextmenu.html You may add print task in context menu for the added graphic. Abhy
... View more
10-17-2013
02:56 AM
|
0
|
0
|
506
|
POST
|
Thanks Steve for the correction. Sorry I missed that. Then it that case, your earlier reply should satisfy the question. Abhy
... View more
10-17-2013
01:28 AM
|
0
|
0
|
702
|
POST
|
Nobody actually answered the question: Is it possible to create a ArcGISDynamicMapServiceLayer from map service published from ArcGIS Online? Thanks, I had used a map service published through ArcGIS Server as a dynamic service (in Flex). Kindly refer to the url : http://www.abhijat-innovations.blogspot.in/2012/06/creating-arcgis-map-service.html Hope it helps. Abhy
... View more
10-16-2013
10:47 PM
|
0
|
0
|
702
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|