Closed (fixed)
Project:
Openlayers
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Apr 2010 at 18:27 UTC
Updated:
28 May 2010 at 15:20 UTC
Jump to comment: Most recent file
Currently for vector layer types like KML, OpenLayers Views Vector, WFS, etc., we just have a long list of projections they support. This isn't a good idea, because it isn't true - they support any projection, via reprojection. This should be a property of the layer type and should be taken into account when showing layer lists, etc.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | vector_layer_type_property.patch | 3.77 KB | tmcw |
Comments
Comment #1
tmcw commentedAn initial patch
Comment #2
zzolo commentedComment #3
zzolo commentedOverall this seems pretty cool. Basically you are adding a "vector" property to layers, then with some logic, allowing them to show up in any list. I am confused because it does seem like you are providing a projection to the layers as well as denoting vector, is this necessary?
Some small details.
This is pretty ugly, it is probably better to have a block of comments above the if statement, like so:
I'm on crack. Are you, too?
Comment #4
tmcw commentedzzolo: the layers will need a projection, because they do indeed have them. While KML is limited to 4326, more complex vector formats like GML can support multiple projections, so we shouldn't abandon projection entirely for them.
I'll see how it goes with inline comments. I adhere to the 80-chars-per-line rule pretty strictly.
Comment #5
zzolo commentedSorry, confused about layer projection and display projection. Sounds good.
Sorry, my comment was aimed at the style of commenting, not the length of the line; feel free to change as needed.
Comment #6
zzolo commentedI don't think the patch applies anymore, but I would say this looks good to me.
Comment #7
tmcw commentedFinished, re-tested, committed: http://drupal.org/cvs?commit=367038