•  
      CommentAuthorPepitaL
    • CommentTimeJul 14th 2009
     
    If you want to specify your own CAM file (Chameleon file) in Javascript, you need to associate the file to the TileLayer when creating it:
    Using Javascript API from GB 2.8:
    mainMap.addLayer("tiles", new TileLayer(mainMap, framework.settings
    ["telogis.geobase.serviceUrl"] + "tile.aspx?s=<CAMfileName>&"));


    Using Javascript API from GB 3.0:
    Maps.mainTiles = new TileLayer ({map: Maps.main, tileConfig: {args: {'s': '<CAMfileName>'}, satellite: true}, transitionConfig: {stepCount: 1}});

    Note:
    - in both cases, the file name is without the extension".cam"
    - the file is stored in ...\Geostream\server\Bin\styles\
    •  
      CommentAuthorPepitaL
    • CommentTimeJul 20th 2009
     
    Matt,
    Using your own CAM file, you can customize the map style, that is to say you can modify the object render aspect such as background color, type of pen used to draw the shape, labelling, ...
    •  
      CommentAuthorPepitaL
    • CommentTimeJul 20th 2009
     
    Matt,

    Yes, you can use the color you wish. It is actually easier to use the Chameleon Workbench interface to define colors.
    You can also specify the width, type and color of the pen used to draw the object, so that can apply for the road, border. There is much more detailed information in the documentation under the "Chameleon Custom Map Style" section.
    •  
      CommentAuthorPepitaL
    • CommentTimeJul 20th 2009
     
    Matt,
    To answer your last question: CAM files affect only the look of the map. I am not sure what you mean by "creating maps for different screen size" but you can modify tha appearance of the map to suit better the screen size.