public final void setDefaultStyle ( final Map < String , Style > defaultStyle ) { this . defaultStyle = new HashMap <> ( defaultStyle . size ( ) ) ; for ( Map . Entry < String , Style > entry : defaultStyle . entrySet ( ) ) { String normalizedName = GEOMETRY_NAME_ALIASES . get ( entry . getKey ( ) . toLowerCase ( ) ) ; if ( normalizedName == null ) { normalizedName = entry . getKey ( ) . toLowerCase ( ) ; } this . defaultStyle . put ( normalizedName , entry . getValue ( ) ) ; } }
Set the default styles . the case of the keys are not important . The retrieval will be case insensitive .