Package com.volantis.mcs.protocols.widgets.attributes

Examples of com.volantis.mcs.protocols.widgets.attributes.MapAttributes


            calculatedImagePath = "/"+ GEN_IMAGE_PATH;
        } else {
            calculatedImagePath = "/"+ pageBase+"/"+GEN_IMAGE_PATH;
        }
       
        MapAttributes mapAttributes = (MapAttributes) attributes;
        mapAttributes.setImageAttributes(createErrorImage(protocol));
       
        if (attributes.getId() == null) {
            attributes.setId(protocol.getMarinerPageContext()
                    .generateUniqueFCID());
        }
View Full Code Here


        if (!this.containsMapView) {
            throw new ProtocolException("Missed widget:map-view element.");
        }
        this.containsMapView = false;
       
        MapAttributes mapAttributes = (MapAttributes) attributes;
       
        Styles styles = mapAttributes.getStyles();
       
        String mapStyle = "map";
         
       
        if (styles.getPropertyValues().getComputedValue(
            StylePropertyDetails.MCS_MAP_STYLE) == StyleKeywords.PHOTO) {
            mapStyle = "photo";
        } else if (styles.getPropertyValues().getComputedValue(
            StylePropertyDetails.MCS_MAP_STYLE) == StyleKeywords.HYBRID) {
            logger.warn("property-not-supported-yet",
                    new Object[]{"hybrid", "map"});
        }
       
        String pageBase = protocol.getMarinerPageContext().getVolantisBean().getPageBase();
        if(pageBase.length()>0){
            pageBase = "/"+pageBase;
        }

        StringBuffer scriptBuffer = new StringBuffer();
        scriptBuffer.append("Widget.register('").append(attributes.getId())
                .append("', new Widget.GoogleMap('").append(attributes.getId())
                .append("',{cacheOn : true,")
                .append("mode : '").append(mapStyle).append("', ")
                .append(prepareICSConfig(mapAttributes.getImageAttributes()))
                .append(",imageSize : ").append(StringConvertor.valueOf(this.imageSizePx))
                .append(",pageBase : '").append(pageBase).append("'")
                .append(getInitialLocation(mapAttributes)).append("},{")
                .append(createInitializationList())
                .append("}));");
View Full Code Here

        LocalizationFactory.createExceptionLocalizer(MapElement.class);
   
   
    public MapElement(XDIMEContextInternal context){
        super(WidgetElements.MAP, context);
        protocolAttributes = new MapAttributes();
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.widgets.attributes.MapAttributes

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.