Hi,
This patch adds an option to set OpenLayers.ImgPath to any directory desired. It's pretty essential for styling the OpenLayers controls, because without it, the default OL graphics are used from their site. It simply adds a new default option and a tiny bit of code in renderMap to hook that option in.
| Comment | File | Size | Author |
|---|---|---|---|
| image_path.patch | 2.07 KB | tmcw |
Comments
Comment #1
tmcw commentedMore appropriate status
Comment #2
zzolo commentedThanks tmcw. Looks like a pretty simple patch. I will try to get it in tonight.
Hey, if you are working on some nice looking controls, I would love it if you could contribute it back. I think one of the more limiting factors of openlayers is its unappealing controls, so it would be really great to have some better looking ones as the default for the Drupal OL maps.
Comment #3
zzolo commentedCommitted: http://drupal.org/cvs?commit=227022
HAd made some new commits so patch did not apply, so manually put in. Feel free to test. Thanks for the work.
Comment #5
yhahn commentedFYI, the committed code and the patch code are different. The committed version does not work -- OpenLayers.js checks for the
ImgPathproperty on the globalOpenLayersobject, so the correct code is:Comment #6
tmcw commentedCommitted: http://drupal.org/cvs?commit=245410
Comment #7
zzolo commentedYou're right, Young. My fault.
Looks like someone beat me to the punch: http://drupal.org/cvs?commit=245410