Sha256: 311561cacbc7777146ace860c83fdcccaccff23e8f38a49acb2fcffded7bd6c4

Contents?: true

Size: 1.11 KB

Versions: 21

Compression:

Stored size: 1.11 KB

Contents

    <script type="text/javascript">
        var requestState = {
            <% if user_signed_in? %>
            user: '<%= current_user.login %>',
            <% end %>
            mainRequestedTopic: '<%= @topic_name %>',
            backRequestedTopic: null,
            mainDefaultTopic: '<%= @main_default_topic %>',
            backDefaultTopic: null,
            offlayers: <%= raw @offlayers.to_json %>,
            scaleDenominator: <%= @scale %>,
            mapPos: [<%= @x %>, <%= @y %>],
            <% if @selection_valid %>
            selection: {
                seltopic: '<%= @seltopic %>',
                sellayer: '<%= @sellayer %>',
                selproperty: '<%= @selproperty %>',
                selvalues: <%= raw @selvalues.to_json %>,
                selbbox: <%= raw @selbbox.to_json %>
            },
            <% else %>
            selection: null,
            <% end %>
            filter: {
                    filtertopic: '',
                    filterlayer: '',
                    filtersql: ''
            },
            redlining: <%= raw @redlining.to_json %>
        };
    </script>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
gb_mapfish_appserver-0.0.1 app/views/apps/_request_state.html.erb