|
POST
|
You can try the code that Stephen Lead provides in this thread. I could not get it to work with my desktop application, however. I did discuss this with one of the devs at the ESRI UC and the good news is that they recognize that this needs improvement, and they are working on it. The bad news is that I don't know the timeframe is for a fix. The APIs seem to be updated every 5-6 weeks so maybe in a few months? At least that's my hope. 😉
... View more
07-24-2013
09:13 AM
|
0
|
0
|
1547
|
|
POST
|
You don't really describe the origin of the point version but.... The easiest option might be to convert the polygons to points using ArcToolbox. This way all the attributes are carried over to the point features. In your web map, you simply set up an infoWindow for the points and then another for the polygon layers. Using the scale based visibility for the two layers, everything should work fairly easily. If the points are the centroid locations of the polygons, I guess once a user clicks on a point, you can use that shape and query the polygon features to retrieve the actual attribute content (buffer the point's extent slightly, though). A third option (but a maintenance PITA) would be to attach the feature IDs of the polygons to its point representation. Once again, when a user clicks on the point representation, you retrieve the feature ID of the polygon version and then perform the query based on the feature ID. I think the 1st option would be the easiest to implement. Steve
... View more
07-24-2013
07:27 AM
|
0
|
0
|
2000
|
|
POST
|
My advice would be this: Put the offending text inside a div with a unique ID In your CSS add the "display:none" CSS property for that item At the end of your init routine, add some javascript code to reverse the CSS visibility: theDiv = document.getElementById("<your Div ID here>"); theDiv.setAttribute("display","inline"); If you need to support an older version of IE, which code you use to set the CSS property might change. Note: Dojo also has a way to set the CSS properties of a DOM element. Steve
... View more
07-23-2013
11:01 AM
|
0
|
0
|
824
|
|
POST
|
I haven't personally done this but I'm thinking that you need to create a custom Level of Detail (LOD) option that you would specify when you create your new map. Look at the new map options section for LODs. This sample isn't quite what you need to do but it does illustrate some of what you will need to do. I think you can just mimic the default LOD levels for your satellite basemap but add the additional LODs for zooming in beyond it's maximum detail.
... View more
07-22-2013
07:15 AM
|
0
|
0
|
3237
|
|
POST
|
I use this on featureLayers but it basically adjusts the transparency option for the layer. It uses the dijit.form.HorizontalSlider. The HTML I have is: <p style="font-size:140%;margin-left: 10px">Use this slider to adjust the transparency of the Demographic Data Overlays:</p>
<div id="theOpacitySlider" dojoType="dijit.form.HorizontalSlider" name="horizontal1"
onChange="applyOpacity"
value="40"
maximum="100"
minimum="0"
discreteValues="11"
pageIncrement="100"
showButtons="false"
intermediateChanges="false"
slideDuration="500"
style="width:290px; height: 20px;margin-left:auto;margin-right:auto"
id="slider1">
<ol dojoType="dijit.form.HorizontalRuleLabels" container="topDecoration" style="height:1.2em;font-size:90%;font-weight:bold" count="6" numericMargin="0"></ol>
<div dojoType="dijit.form.HorizontalRule" container="topDecoration" count=11 style="height:5px;"></div>
<div id = "theOpacityRuler" dojoType="dijit.form.HorizontalRule" container="bottomDecoration" count=2 style="height:10px;"></div>
<ol dojoType="dijit.form.HorizontalRuleLabels" container="bottomDecoration" style="height:1em;font-size:90%;font-style:italic">
<li>Solid</li>
<li>Transparent</li>
</ol>
</div><br />
<table>
<tr>
<td><SPAN style="font-weight:bold">Current Transparency Setting: <input readonly id="sliderInput" size="2" value="40%" style="padding-left:5px"></SPAN></td>
</tr>
</table>
The javascript code is: function applyOpacity() {
var theAmount;
theAmount = arguments[0];
theOpacity = 1 - (theAmount / 100);
map.getLayer('your Layer ID here').setOpacity(theOpacity);
} Be sure to also include the necessary dojo.requires: dojo.require("dijit.form.HorizontalSlider");
dojo.require("dijit.form.HorizontalRuleLabels");
dojo.require("dijit.form.HorizontalRule"); I also included a screenshot to give you an idea of what it looks like. Good luck! Steve
... View more
07-15-2013
09:06 AM
|
0
|
0
|
1327
|
|
POST
|
In your second code block, simbolo1, simbolo2, and simbolo0 are actually text strings and not symbol objects. Try this instead: var array = new Array();
array[1] = simbolo1;
array[2] = simbolo2;
array[3] = simbolo0;
for (var indice in array) {
renderer.addValue(parseFloat(indice), array[indice]);
}
... View more
07-05-2013
06:57 AM
|
0
|
0
|
533
|
|
POST
|
A guess but verify that the actual SHAPE attribute field is turned on in the one layer that's not returning features. In Arcmap, Layer Properties -> Fields and then make sure the checkbox next to the Shape field is checked.
... View more
07-03-2013
11:24 AM
|
0
|
0
|
721
|
|
POST
|
I'll echo Brittney's suggestion. This is basically what I do, although I fire off my code to display my splash screen in dojo.Ready(). I like using a JQuery modal dialog since they look nicer than Dojo's offerings. The result is something like the attached screenshot.
... View more
07-01-2013
12:19 PM
|
0
|
0
|
2611
|
|
POST
|
Set your height to 100% as desired but also add overflow: hidden to the CSS properties of #mapDiv. That should prevent the scrollbar from appearing.
... View more
06-18-2013
06:55 AM
|
0
|
0
|
1699
|
|
POST
|
Wow. +100 internets to you, Ryan for this. So much better than the default panning behavior. I also need to support pre IE-9 so I'll wait on the sidelines until you get that bug worked out. Great job!
... View more
06-03-2013
08:04 AM
|
0
|
0
|
2364
|
|
POST
|
You can't modify what ESRI provides straight out of the box because the leaders are actually portions of images (called sprites) which are extracted from a larger mosaic of images. That being said, if you are a masochist, I think you could accomplish this but you would have to put in some serious time creating all new sprites and tweaking the associated CSS so that it all works well. For that, I think someone from ESRI would have to chime in with some pointers. This is the actual image from the v3.3 API which all the leaders are extracted. Perhaps this could be an enhancement request for a second set of longer leaders for the infoWindows which would be enabled as an option parameter when creating the map (leaderType: normal / extended)? Steve
... View more
06-03-2013
07:28 AM
|
0
|
0
|
1359
|
|
POST
|
If you want the documentation as it was at version 3.2, you'll have to download the v3.2 SDK at this link.
... View more
05-24-2013
03:32 PM
|
0
|
0
|
962
|
|
POST
|
Ok, two things- For some reason, the map graphics layer has a feature with a 0,0 coordinate extent so that's why the zeros show up in your popup. I inserted this line of code into yours just before you add your points to the map graphics and the zero dimension graphic was removed: map.graphics.clear(); map.graphics.add(graphic); map.graphics.add(graphic2); I only found this by using a DOM element inspection tool and looked at the map.graphics.graphics object and saw that it had three items in it instead of the two that you would expect. The second thing, and I don't know if this is really critical or not, was that your coordinate pairs were missing the spatial projection so I added it like this: var point = new esri.geometry.Point(-73.986268, 40.735812,new esri.SpatialReference({ wkid: 4326 })); var point2 = new esri.geometry.Point(-77.03756, 38.907332,new esri.SpatialReference({ wkid: 4326 }));
... View more
05-23-2013
12:05 PM
|
0
|
0
|
3328
|
|
POST
|
Use esri.graphicsExtent and pass it the array of graphics.
... View more
05-23-2013
09:20 AM
|
0
|
0
|
3328
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 5 hours ago | |
| 1 | 8 hours ago | |
| 1 | 8 hours ago | |
| 1 | yesterday | |
| 1 | a month ago |