I use OpenLayers to show my trekking data. I have successfully created a content type with a File field to download a GPX file and a Geocoded field to get the data from that file into a linestring, and a map containing a Placeholder for Geofield Formatter layer on top of e.g. Google Maps layer, to show my data. When I leave the default color selection in Layers & Styles for that map, the line (as well as the markers, if any) is shown on the map in dark-yellow (see e.g. http://personal.kozub.in.ua/test-trek-1, http://personal.kozub.in.ua/test-trek-2). However, if I select e.g. "Marker Red", the markers (if any) become red indeed, but the trek line becomes black.

I am not sure whether this is a bug, but if OL does it by design, it is worth describing somewhere in the documentation.

Comments

Maksym Kozub’s picture

Issue summary: View changes

Punctuation corrected :).

Pol’s picture

Did you tried geofile ?

http://drupal.org/project/geofile

Demonstration: http://geo.nid-de-poule.be/

Maksym Kozub’s picture

Thank you, Pol. I did not know about your module; now I have tried it, and there is exactly the same behavior:
default color -> yellow line, yellow markers;
Marker Red -> black line, red markers.

Frankly speaking, on the line color side I would not expect anything different from Geofield when using your Geofile. I am not a developer, but I suspect that those line and marker colors depend on how OpenLayers handles such overlay layers, not about any particular formatter module used to create the overlay layer. This is why I created this issue here in OL in the very first place (and not in Geofield issues).

Maksym Kozub’s picture

Issue summary: View changes

URLs corrected.

basvredeling’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)

Cleaning up the issue queue for #2670484: Stable 7.x-2.0 release.

The urls are no longer valid. Closing this issue.

FYI: line colours are related to point colours as defined in the openlayers styles. Change the style used on the relevant map layer and the line colour might well change with it.