|
POST
|
If you post code to reproduce you're problem you're more likely to get a solution. This has come up from time to time in the past and is related to the CSS you're using. There are a couple of approaches to try: �??remove all padding and margin from the DOM node that you pass to the map constructor �??do not put the div for your drawing toolbar inside the div that you're using for the map �??call map.resize after you create your draw toolbar �??use dijit.layout widgets to layout your page components (map in one content pane, drawing toolbar in different content pane).
... View more
05-25-2012
08:40 AM
|
0
|
0
|
1233
|
|
POST
|
Class breaks or unique value doesn't make a difference. Once you've modified your renderer, apply it to your feature layer using setRenderer (and comment out your call to refresh()). Please let us know if that works.
... View more
05-24-2012
02:27 PM
|
0
|
0
|
1836
|
|
POST
|
So in other words the legend doesn't work on invisible layer period! In the context of a layer object, layer visibility and the visible scale range for a layer are mutually exclusive. This is not intuitive. We've discussed this internally but have not come up with a cleaner implementation for the API. A layer's visible property can be true (and when it is, it should be included in the legend), but if you're outside the visible scale range for the layer, you do not see it on the map. This is what I was suggesting. If it's not what you're seeing, please contact support and log a bug.
... View more
05-24-2012
02:15 PM
|
0
|
0
|
1614
|
|
POST
|
Are you using countryLayer.setRenderer() to update your symbology? Also, you should be seeing http 304s and very small response sizes when your feature layer fetches a URL more than once. Are you not seeing 304s?
... View more
05-24-2012
02:05 PM
|
0
|
0
|
1836
|
|
POST
|
I'm looking at your repro case, and you're loading a few non-SSL resources (all the Google CDN hosted stuff). I don't think this affects why the images aren't displaying, but it's one thing that contributes to IE showing a security warning. Anyway, I've confirmed that the requests for the images for your legend don't have a token appended to them. There is a token appended in the example I posted. Can you open a ticket with support and have them look into this further?
... View more
05-24-2012
01:43 PM
|
0
|
0
|
2661
|
|
POST
|
Using refresh() might not be the best way to do this. Apologies for sending you down that road. The legend respects layer visibility so if you're using respectCurrentMapScale: false, and you toggle your layer's visibility, the legend should update correctly. Instead of trying to manually refresh the legend, can your event handler that fires when your drop-down changes update a layer's visibility? That would look something like:
var layer = map.getLayer(layerId);
layer.setVisibility(!layer.visible);
... View more
05-24-2012
01:06 PM
|
0
|
0
|
1614
|
|
POST
|
The constructor you use (ArcGISTiledMapServiceLayer or ArcGISDynamicMapServiceLayer) needs to match your map service type. It sounds like you are using a dynamic service. For the "notes" you mention, can you elaborate on that? Is that a feature layer? If you can post a simple html/css/js page to repro the issue that would be helpful.
... View more
05-24-2012
11:35 AM
|
0
|
0
|
656
|
|
POST
|
Rather than digging into the svg or vml properties, can you swap out the graphic's symbol using setSymbol()?
... View more
05-24-2012
11:34 AM
|
0
|
0
|
2816
|
|
POST
|
Does LoadLegend run throughout the life of your app or is RecreateLegend called from other places?
... View more
05-24-2012
11:32 AM
|
0
|
0
|
1614
|
|
POST
|
Glad to help! And thanks for marking this one answered 🙂
... View more
05-24-2012
09:10 AM
|
0
|
0
|
2923
|
|
POST
|
Try calling refresh() and pass in layerInfos for the layers you want to show.
... View more
05-24-2012
09:09 AM
|
0
|
0
|
3386
|
|
POST
|
By default, the legend only displays info for visible layers. You can override this via a boolean constructor parameter called respectCurrentMapScale.
... View more
05-24-2012
08:05 AM
|
0
|
0
|
3386
|
|
POST
|
What are you trying to do? Mixing and matching jQuery and dojo methods complicates things...if you can describe specifically what you're trying to do we might be able to come up with a cleaner solution.
... View more
05-24-2012
08:03 AM
|
0
|
0
|
2816
|
|
POST
|
Remove the "var" from in front of Lyr_StrokeUnit when you create your feature layer in the init function. Removing var will keep Lyr_StrokeUnit as a global. When you use var inside a function, you create a local variable. Because Lyr_StrokeUnit is local to init, that feature layer is not accessible in the drawBuffer function via the Lyr_StrokeUnit variable.
... View more
05-24-2012
06:32 AM
|
0
|
0
|
2923
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-23-2012 07:54 AM | |
| 1 | 05-28-2010 08:31 AM | |
| 1 | 11-12-2012 08:12 AM | |
| 3 | 02-23-2012 10:57 AM | |
| 1 | 06-27-2011 08:51 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|