|
POST
|
The Oceans basemap has been split into the data component and the reference component. Can the collection of standard basemaps in BasemapGallery have the two options added, Oceans and Oceans with Labels, similar to Imagery and Imagery with Labels?
... View more
03-27-2014
08:12 AM
|
0
|
2
|
1086
|
|
POST
|
This is what my event target and graphic variables look like in the onMouseOver function. I am using a UniqueValueRenderer with simple marker symbols, not composite symbols, to symbolize the graphics. [ATTACH=CONFIG]32524[/ATTACH][ATTACH=CONFIG]32525[/ATTACH]
... View more
03-26-2014
06:56 AM
|
0
|
0
|
3523
|
|
POST
|
My version of VS 2012 was set up after installing ArcGIS, so the templates aren't showing up here. But look for the highlighted dropdown in your New Project dialog. [ATTACH=CONFIG]32497[/ATTACH]
... View more
03-25-2014
12:29 PM
|
0
|
0
|
4769
|
|
POST
|
Did you make sure that you selected the .NET Framework 3.5 in the New Project dialog?
... View more
03-25-2014
10:27 AM
|
0
|
0
|
4769
|
|
POST
|
At the Developer Summit, it was announced that a beta version is going to be released on March 28. You can apply to participate in the beta program here.
... View more
03-25-2014
08:05 AM
|
1
|
0
|
2992
|
|
POST
|
What I did is add an event listener to each graphic that I added to my map. for each (var graphic:Graphic in featureSet.features) { graphic.toolTip = "Site ID: " + graphic.attributes["Site_ID"]; graphic.addEventListener(MouseEvent.ROLL_OVER, onMouseOver); //you could also add MouseEvent.CLICK graphic.id = "Dive"; } I am able to get the graphic's information in the onMouseOver event private function onMouseOver(event:MouseEvent):void { var graphic:Graphic = Graphic(event.target); var objectid = graphic.attributes["OBJECTID"] //etc
... View more
03-25-2014
06:35 AM
|
0
|
0
|
3523
|
|
POST
|
Take a look at this documentation page. This works (but it adds a period at the end) esriBundle.widgets.popup.NLS_noInfo = "No information available...try again!" [ATTACH=CONFIG]32480[/ATTACH]
... View more
03-25-2014
05:40 AM
|
0
|
0
|
900
|
|
POST
|
Have you tried using the event map.on('layer-add-result') or map.on('layers-add-result') when you add the layer to your map?
... View more
03-24-2014
06:25 AM
|
0
|
0
|
1036
|
|
POST
|
When you apply the definition expression, the layer will refresh itself. I added an update-end event listener to the layer and the text updated properly. document.getElementById('applyFilter').onclick = function pathogenFilter() { document.getElementById('noMatches').innerHTML = ''; speciesType = document.getElementById("speciesFilter").value; pathogenType = document.getElementById("pathogenFilter").value; var defaultSymbol = new SimpleFillSymbol().setStyle(SimpleFillSymbol.STYLE_NULL); defaultSymbol.outline.setStyle(SimpleLineSymbol.STYLE_NULL); var renderer = new UniqueValueRenderer(defaultSymbol, pathogenType); renderer.addValue("N/A", new SimpleFillSymbol().setColor(new Color([204, 204, 204, 1]))); renderer.addValue("NEGATIVE", new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID, new SimpleLineSymbol(SimpleLineSymbol.STYLE_NULL), new Color([7, 172, 242, 1]))); renderer.addValue("POSITIVE", new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID, new SimpleLineSymbol(SimpleLineSymbol.STYLE_NULL), new Color([255, 0, 0, 1]))); fl.setDefinitionExpression("SPECIES LIKE'%" + speciesType + "%' AND " + pathogenType + " <> 'N/A'"); //console.log(fl); //if (fl.graphics.length === 0) { // document.getElementById("noMatches").innerHTML = "No testing has been done for the selected species/pathogen."; //} fl.setRenderer(renderer); } fl.on("update-end", function () { if (fl.graphics.length === 0) { document.getElementById("noMatches").innerHTML = "No testing has been done for the selected species/pathogen."; } else { document.getElementById("noMatches").innerHTML = fl.graphics.length + " features" }
... View more
03-21-2014
11:19 AM
|
0
|
0
|
1155
|
|
POST
|
You may need to convert the line into a WebMercator projection to show on the map. Have you zoomed over to 0°N, 0°W to see if the line is showing up off the coast of Africa?
... View more
03-21-2014
07:10 AM
|
0
|
0
|
2115
|
|
POST
|
I tried it also and experienced the same issue also. It seems to happen more frequently when the map's initial extent is set east of the international data line, then moved to the west side of the line. Again, it doesn't always happen though. I set this up as an example. Pan over to New Zealand and change the basemap/
... View more
03-20-2014
11:01 AM
|
0
|
0
|
1135
|
|
POST
|
Thanks that was very usefull Glad to help. Don't forget to mark the post as answered to help those who are searching on this question.
... View more
03-20-2014
06:03 AM
|
0
|
0
|
1932
|
|
POST
|
To do this without having the spatial reference in each bookmark, you have to add some extra code to add it. require(["esri/map", "esri/dijit/Bookmarks", "modules/Bookmarks", "dojo/dom", "dojo/_base/array", "dojo/_base/lang",
"dojo/domReady!"],
function (map, Bookmarks, modBookmarks, dom, array, lang) {
map = new map("map", {
basemap: "topo",
center: [-100, 40],
zoom: 4
});
var bookmark_list = [];
array.forEach(modBookmarks.list, function (item) {
lang.mixin(item.extent, { "spatialReference": { "wkid": 102100 } });
bookmark_list.push(item);
});
// Create the bookmark widget
bookmarks = new Bookmarks({
map: map,
bookmarks: bookmark_list
}, dom.byId('bookmarks'));
});
... View more
03-20-2014
06:02 AM
|
0
|
0
|
1932
|
|
POST
|
Here's one way to do it. You can use a module that contains the booksmarks. Here is a tutorial about creating modules. Create a separate Javascript file called "Bookmarks.js" in a directory called modules. That files looks like this define([], function () { return { list: [{ "extent": { "spatialReference": { "wkid": 102100 }, "xmin": -14201669, "ymin": 4642975, "xmax": -13021482, "ymax": 5278931 }, "name": "Northern California" }, { "extent": { "spatialReference": { "wkid": 102100 }, "xmin": -8669334, "ymin": 4982379, "xmax": -8664724, "ymax": 4984864 }, "name": "Central Pennsylvania" }, { "extent": { "spatialReference": { "wkid": 102100 }, "xmin": -13587617, "ymin": 4564540, "xmax": -13587178, "ymax": 4564976 }, "name": "BroadWay Plaza!" }, ] }; }); You can use that module in the code like this (adapted from the Bookmark Sample😞 <!doctype html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <title>Bookmark Widget(Read-only Bookmarks)</title> <link rel="stylesheet" href="http://js.arcgis.com/3.8/js/dojo/dijit/themes/nihilo/nihilo.css"> <link rel="stylesheet" href="http://js.arcgis.com/3.8/js/esri/css/esri.css"> <style> html, body { height: 100%; width: 100%; margin: 0; padding: 0; } body { background-color: #fff; overflow: hidden; font-family: sans-serif; } #header { padding-top: 4px; padding-left: 15px; background-color: #444; color: #fff; font-size: 16pt; text-align: left; font-weight: bold; height: 55px; } #subheader { font-size: small; color: #cfcfcf; text-align: left; } #bookmarks-wrapper { position: absolute; z-index: 40; top: 15px; right: 30px; background: transparent; font-size: 12pt; color: #444; } .ds { background: #000; overflow: hidden; position: absolute; z-index: 2; } #ds-h div { width: 100%; } #ds-l div { height: 100%; } #ds .o1 { filter: alpha(opacity=10); opacity: .1; } #ds .o2 { filter: alpha(opacity=8); opacity: .08; } #ds .o3 { filter: alpha(opacity=6); opacity: .06; } #ds .o4 { filter: alpha(opacity=4); opacity: .04; } #ds .o5 { filter: alpha(opacity=2); opacity: .02; } #ds .h1 { height: 1px; } #ds .h2 { height: 2px; } #ds .h3 { height: 3px; } #ds .h4 { height: 4px; } #ds .h5 { height: 5px; } </style> <script> var dojoConfig = { parseOnLoad: true, packages: [ { name: "modules", location: location.pathname.replace(/\/[^/]+$/, "") + "/modules" } ] }; </script> <script src="http://js.arcgis.com/3.8/"></script> <script> var map, bookmarks; require(["esri/map", "esri/dijit/Bookmarks", "modules/Bookmarks", "dojo/dom", "dojo/domReady!"], function (map, Bookmarks, modBookmarks, dom) { map = new map("map", { basemap: "topo", center: [-100, 40], zoom: 4 }); // Create the bookmark widget bookmarks = new Bookmarks({ map: map, bookmarks: modBookmarks.list }, dom.byId('bookmarks')); }); </script> </head> <body class="nihilo"> <div id="mainWindow" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline',gutters:false" style="width: 100%; height: 100%; margin: 0;"> <div id="header" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'top'"> Bookmark Widget Sample <div id="subheader">Read-only bookmarks</div> <!-- Bookmarks widget inside a Drop Down Button --> <div id="bookmarks-wrapper"> <div data-dojo-type="dijit/form/DropDownButton"> <span>Bookmarks</span> <div data-dojo-type="dijit/TooltipDialog"> <div id="bookmarks"></div> </div> </div> </div> </div> <div id="map" class="shadow" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'"> <div id="ds"> <!-- drop shadow divs --> <div id="ds-h"> <div class="ds h1 o1"></div> <div class="ds h2 o2"></div> <div class="ds h3 o3"></div> <div class="ds h4 o4"></div> <div class="ds h5 o5"></div> </div> </div> <!-- end drop shadow divs --> </div> </div> </body> </html>
... View more
03-20-2014
05:39 AM
|
0
|
0
|
1932
|
|
POST
|
Does anyone know how to become a part of the beta testing program for the Javascript Viewer that ESRI is currently developing? I would like to be a part of this program so I can determine how many of my business needs can be accomplished by the viewer and how many business needs can be fulfilled by extending the widgets or building additional widgets. The beta release is scheduled for march 28. You can apply to be part of the beta program here.
... View more
03-19-2014
10:00 AM
|
0
|
0
|
1069
|
| Title | Kudos | Posted |
|---|---|---|
| 3 | 2 weeks ago | |
| 1 | 02-04-2025 06:39 AM | |
| 1 | 05-01-2026 08:26 AM | |
| 1 | 04-10-2026 12:01 PM | |
| 1 | 04-13-2026 09:11 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|