Skip to main content

Map Tip difference between Tablet and Desktop

Comments

9 comments

  • Permanently deleted user

    You can set this in your config.json files on the tablet config it may be set differently.

    0
  • Jeff Siemens

    Hi Mike,

    As it turns out, this is probably a misconfiguration in our default configuration files.  The good news is that it's easy to change through configuration.

    In the MapTips module, there should be a property that looks like this:

    "contentField": "description"

    In order to get the long description in tablet, you can change it to:

    "contentField": "longDescription"

    The rational behind this is that we didn't want to have too much content shown in the mobile shell due to limited real estate, so we configure the map tip to just show the description, whereas in the desktop shell, where there is a lot more real estate we can show the long description.  Tablet, unfortunately, has been configured the same way as for mobile - to use the description.  I don't think this should be the case, and tablet should be configured to use the long description by default.  I will make that change to our default configuration.

    Jeff

    0
  • Permanently deleted user

    Thanks Nick and Jeff, that did the trick.  And yes I agree that Tablet and Desktop should have the same settings, since they have similar real estate.  But I also think setting the value to different fields is confusing, regardless of the device.  I have been thinking that I would have to create a different site for handhelds in any case since the labels that work on the tablet are too small and unreadable in the handheld.  I will just change what is in the long description for the handheld if I wanted to use less space...

    0
  • Permanently deleted user

    Are there JSON files that are used to create new sites with?  It would be nice to go to the source, so I wouldn't have to make changes to any new site that I create...

    0
  • Permanently deleted user

    I just started doing this and I created some new configs which can be used in a similar fashion to the silverlight viewer. In your html pages (index, handheld, tablet.html) you can define url parameters for viewer configs in the dojo.ready function. I attached a sample below of what it looks like in my index html. You then can then use a url similar to what is listed below to use different configs in the same html pages. You will need to set these up in each page so it works with the redirect.

    Url Param config in HTML pages

    var viewerConfig = {

     

                        "configurations": {

     

                            "default": "Resources/Config/Default/Desktop.json.js",

     

                            "traffic": "Resources/Config/traffic/Desktop.json.js",

     

                            "crime": "Resources/Config/crime/Desktop.json.js"

     

                        },

                        "viewerConfigUri": null

     

                    };

     

    example address: http://yoursite/index.html?viewer=traffic

     

    0
  • Permanently deleted user

    Nick,

    I'm not sure what you are saying.  Is this to duplicate Layer Themes?  My question had to do with setting map tips to look at longDescription - being able to set it in a master file somewhere that Geocortex uses to create the new JSON files when a new HTML5 viewer is added to a site.

    0
  • Permanently deleted user

    I thought you were referring to new sites. I see what your getting at with the map tips and I am not sure about that you would most likely need to dig into the template for the viewer.

    0
  • Permanently deleted user
    It could be on a new site, or on an existing site that I add an HTML5 viewer for the forst time. I'm still curious what you were referring to - with Traffic and Crime, it sounds like layer themes... or are these different sites?
    0
  • Permanently deleted user

    The viewer doesn't support themes but it allows me to have one set of html files with multiple configs including using different sites and workflows.

    0

Please sign in to leave a comment.