Select to view content in your preferred language

Popup Legend similar to Nliu's

3689
11
07-22-2013 08:31 AM
RyanWhiley
Emerging Contributor
Hello everyone,

Right now I am currently working on trying to get a popup legend on the side of my map very similar to Nliu's" rel="nofollow" target="_blank">http://maps.charlottenc.gov/templates/basicviewer/?webmap=460... Example where you would click a button in the toolbar and the left panel would pop out with the information you want.  I looked through the code to see what they were using to make that work and I found no leads.  I tried to use a floatingPane but that did not work how I wanted it to.  So I was wondering if anyone could give me an idea of what I would use to start this process.


Thanks a lot!
Ryan
0 Kudos
11 Replies
KenBuja
MVP Esteemed Contributor
In a Fiddle, you have to use this as the TOC location

    <script>
        var dojoConfig = {
            parseOnLoad: true,
            packages: [{
                "name": "agsjs",
                //"location": location.pathname.replace(/\/[^/]+$/, "") + '/agsjs'
                "location": 'http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.04/xbuild/agsjs' // for xdomain load
            }]
        };
    </script>
0 Kudos
DianaBenedict
Frequent Contributor
Ken, that did it. I tried using the example for xdomain to specify the location but I guess I had a typo. 

Ryan, I tried updating the fiddle but the state with the changes is not persistent. I update the code, then select "update" and then "run" and it all looks great. 

I think that if you use the same fiddle and go to one of the versions that I created it should work /14

http://jsfiddle.net/K32Qu/14/

Sorry I am new to fiddle so I am probably doing this wrong.
0 Kudos