Zum Hauptinhalt gehen

FeatureActions - Zoom

Kommentare

4 Kommentare

  • Conner Leverett

    Hi Walter,

    It looks like a couple of things are going on:

    1. A comma is missing after "commandParameter": "1:500"

    2. According to the HTML5 admin guide, the command parameter should only be the denominator, so it should look like "commandParameter": "500",

    Cheers,

    -Darren

    0
  • Permanently deleted user

    Darren,

    thanks for your response. I'll give that a try tomorrow.

    Walter

    0
  • Permanently deleted user

    A lot of us developers here @ Latitude use (http://jsonlint.com/) JSONLint , it's great for verifying that your JSON configs are syntactically correct. Highly suggest!

    0
  • Permanently deleted user

    Gents,

    The proper syntax that Darren provided worked, it that the viewer didn't complain about any issues. But my objective was to over ride the zoom scale

    and i was wishing that the Action: Zoom to Feature would take me beyond that, which it did not. Here's a portion of my config file:

    "text": "@language-menu-zoom",

                      "description": "Zoom to Cemetery Plot",

     

                      "iconUri": "Resources/Images/Icons/arrow-right-alt-24.png",

     

                      "command": "ZoomToScale",

     

                      "commandParameter":"500",

     

                      "hideOnDisable": true

     

     

    Walter

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.