Closed (fixed)
Project:
Openlayers
Version:
7.x-2.x-dev
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Jul 2010 at 22:55 UTC
Updated:
7 Apr 2012 at 02:10 UTC
It would be cool to support a Drupal path for the style graphics. Currently, it just is a regular path and can easily break if you move the site with a different web directory structure.
This isn't a big deal, but just dont have time to address and figured I would put it here to remind me later. The one question that comes to mind is should this be handled by the UI (like in the form submit) or in the API (like when rendering styles). We could also do it on the JS side, but I dont think its worth the processing.
Marking as minor.
Comments
Comment #1
strk commentedI think the goal is to have drupal paths in the exportable so most likely need to be resolved at rendering (or load) time.
Surely not on form submit/save time. I'd be also interested in having such support for KML layer urls.
Comment #2
zzolo commentedAlso note that I am a fool. Saving the full path (rendering path on submit) would be pointless. :(
Comment #3
tmcw commentedI think that this is a good goal - to keep style graphics resolving even if you move around a site or a feature, but this is the wrong way to look at it - styles should 'own' their graphics - whether this means that the graphics should be uploaded parts of the exportable that are managed by OpenLayers or it's enforced that graphics are relative to an owning module and its exported styles.
Comment #4
zzolo commentedThough I agree with the idea of creating a stronger link between styles and icon paths (without sacrificing usability), I think we should simply allow for more flexible paths now and look at creating that stronger link later on.
Comment #5
zzolo commentedCommitted in D7:
http://drupal.org/commitlog/commit/4156/025bb538f9397eb96f805425fc047c67...
Comment #6
dgastudio commentedzzolo, and how to make it work?
Comment #7
zzolo commentedHi @kervi. You should be able to simply put in a Drupal, absolute, or full path in the field. What specific problems are you having?
Comment #8
zzolo commentedThis is fixed. Please open a support issue if needed.