[OpenLayers-Trac] [OpenLayers] #100: create a WMC parser

OpenLayers trac at openlayers.org
Wed Jan 9 07:13:10 EST 2008


#100: create a WMC parser
----------------------------+-----------------------------------------------
  Reporter:  hobu at hobu.net  |       Owner:  tschaub    
      Type:  feature        |      Status:  new        
  Priority:  minor          |   Milestone:  2.6 Release
 Component:  Map            |     Version:             
Resolution:                 |    Keywords:             
     State:                 |  
----------------------------+-----------------------------------------------
Comment (by bartvde):

 It will require a bit of a rewrite to get this sequence problem solved,
 since the sld elements are appended, and they should be inserted at the
 right level. For now, to continue my testing, I've commented those parts.

 Some clients (like PHP/Mapscript) depend on Window in the General section
 so I think it's wise to add this using map.getSize(), I see the code does
 not set context.size right now (in function mapToContext):

 {{{
 <Window width="750" height="450"/>
 }}}

 After this change there is still the problem with visibility (should be
 reversed):

 {{{
 hidden: layer.visibility ? "true" : "false"
 }}}

 Note, that Mapserver 4.8 only understands hidden 0 or 1 and not
 true/false.

 Last note: I think it might be safer to use a <Style> element with an
 empty Name or Name default instead of an empty Style element completely.
 So:

 {{{
 <Style>
   <Name>default</Name>
 </Style>
 }}}

 I see now the code thinks it should be <Style>mystylename</Style> but if
 you look at the schema Style can have 4 children, one of them is Name.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/100#comment:19>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list