|
POST
|
The button wasn't ready when it came time to wire up the click event. If you add a parser, then it will be ready. However, it's throwing off the styling of the button. require([
"esri/map",
"esri/symbols/SimpleMarkerSymbol",
"esri/symbols/SimpleLineSymbol",
"dojo/_base/Color",
"esri/geometry/Point",
"esri/InfoTemplate",
"esri/graphic",
"dojo/on",
"dojo/dom",
"esri/dijit/BasemapToggle",
"esri/dijit/HomeButton",
"esri/dijit/LocateButton",
"dijit/registry",
"dijit/form/Button",
"dojo/parser",
"dojo/domReady!"
],
function (
Map,
SimpleMarkerSymbol, SimpleLineSymbol, Color, Point, InfoTemplate, Graphic,
on, dom, BasemapToggle, HomeButton, LocateButton, registry, Button, parser
) {
parser.parse();
var map;
var center = [-80.719892, 28.303518];
var zoom = 13,
map = new Map("mapDiv", {
center: center,
zoom: zoom,
basemap: "topo"
});
... View more
03-05-2014
06:49 AM
|
0
|
0
|
1441
|
|
POST
|
This example adds checkboxes for each layer in two different services. The code uses indexOf, which doesn't work in IE8 and below. If you need that, take a look at this thread.
... View more
03-05-2014
05:51 AM
|
0
|
1
|
3388
|
|
POST
|
You have a problem in the first script where the modules and arguments are not in the correct order. The arguments in the function must be in the same order that they are called in require. The modules that don't need an argument in the function can come in any order after the ones that need the argument in the function. You're also repeating several modules (BorderContainer and ContentPane)
require([
"esri/map", "esri/layers/FeatureLayer", "esri/dijit/Legend","esri/dijit/BasemapGallery", "esri/arcgis/utils",
"dojo/_base/array", "dojo/parser", "esri/dijit/LocateButton", "esri/dijit/HomeButton", "esri/dijit/OverviewMap", "esri/layers/ArcGISDynamicMapServiceLayer",
"dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dijit/TitlePane","dijit/layout/AccordionContainer",
"dojo/domReady!"
], function(
Map, FeatureLayer, Legend,BasemapGallery, arcgisUtils,
arrayUtils, parser , LocateButton, HomeButton, OverviewMap, ArcGISDynamicMapServiceLayer
) I'm still working on how to add layers from multiple services.
... View more
03-04-2014
12:18 PM
|
0
|
0
|
3388
|
|
POST
|
Lefteris, I was able to dynamically create tabs that contain DataGrids. These grids contain the results of a IndentifyTask for each visible layer in a map. As each tab was added, an event listener was added for such events as ListEvent.ITEM_CLICK, ListEvent.ITEM_ROLL_OUT, etc. These listeners pointed to the same functions so that when the user did something like click on a row in a grid, it would highlight the feature on the map for that individual layer. I put the code in a thread in GIS.StackExhange here. Unfortunately, the link to the working example is no longer valid, since the project was ported over to JavaScript.
... View more
03-04-2014
07:33 AM
|
0
|
0
|
1277
|
|
POST
|
Can you post your code at JSBin (or Fiddle) to show what you've done so far?
... View more
03-03-2014
02:43 AM
|
0
|
0
|
3388
|
|
POST
|
Paul, Don't forget to click the check mark in the post that best answered your question. This will help others searching on this topic.
... View more
02-28-2014
09:23 AM
|
0
|
0
|
4077
|
|
POST
|
It looks like Esri is having an issue according to this post.
... View more
02-28-2014
04:15 AM
|
0
|
0
|
808
|
|
POST
|
I would like to add a dynamic mapservice to the javascript webmap. I tried the following syntax but the mapservice does not show up. var bound = new ArcGISDynamicMapServiceLayer("http://arcgis/ArcGIS/rest/services/MapServices/Bound_D/MapServer", { useMapImage: true }); Can anyone tell me what I am doing wrong? You should start a new thread about this.
... View more
02-26-2014
10:45 AM
|
0
|
0
|
1016
|
|
POST
|
You do have the option of showing the legend for layers that are invisible due to scale dependency. Set the respectCurrentMapScale to false. var legendDijit = new Legend({
map: map,
layerInfos: layerInfo,
respectCurrentMapScale: false
}, "legendDiv");
... View more
02-26-2014
10:32 AM
|
0
|
0
|
1016
|
|
POST
|
It's showing up on my browser (Firefox 24.3.0). Say which post you deem is the answer and I can click it marked for you.
... View more
02-26-2014
09:47 AM
|
0
|
0
|
2222
|
|
POST
|
Unfortunately, I don't. I haven't figured out a way to set the reference layer as a GraphicLayer also.
... View more
02-26-2014
09:44 AM
|
0
|
0
|
3767
|
|
POST
|
Don't disregard the points! These add up over time and if others find you helpful enough, you'll get rewarded. Besides, it helps people who are searching for answers see what contributed to the final answer (or what helped them) Leo, are you a fed? I had asked if I could accept the reward to the ethics officer here who said it was OK
... View more
02-26-2014
09:09 AM
|
0
|
0
|
2222
|
|
POST
|
Thanks Guys for all the help. This thread is complete. And unanswered?
... View more
02-26-2014
09:05 AM
|
0
|
0
|
2222
|
|
POST
|
Do you really want to repeat all those checkboxes on the different tabs? You'll have to keep track of each of them individually. The more tabs you have, the bigger headache you'll have. What happens when a user picks checkboxes on more than one tab? It looks like you should rethink the user interface. Something simple, like a combobox of the different geographic areas and one set of checkboxes for the options. You can assemble the shapefiles you'll need for the map from those selections. Before you close this ticket, please acknowledge the assistance that Leo has given you by clicking the Up Arrow ("This post was helpful") and the check mark ("Click to mark this post as the answer")
... View more
02-26-2014
08:49 AM
|
0
|
0
|
2064
|
|
POST
|
I believe this issue is caused by the fact that a FeatureLayer is based on a GraphicLayer, which will always display at the top. This works correctly when using an ArcGISDynamicMapServiceLayer, according to this modification to your Fiddle: http://jsfiddle.net/s8ksF/1/
... View more
02-26-2014
08:34 AM
|
0
|
0
|
3767
|
| Title | Kudos | Posted |
|---|---|---|
| 3 | a week 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
|