Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be really cool to have some nice control images by default. The ones made by MapBox and Dev Seed are awesome. We can easily make this a default value.
So, the questions, specifically for @tmcw and Dev Seed, are the following:
* What is the license on these files?
* It is alright if we use these?
* It is alright if we include them in the module?
Comment | File | Size | Author |
---|---|---|---|
#26 | ol - missing pieces.tar_.gz | 84.6 KB | ndagire |
#25 | ol - missing pieces.tar_.gz | 77.94 KB | ndagire |
Comments
Comment #1
phayes CreditAttribution: phayes commentedI would also see if we can integrate openlayers_plus by default
Comment #2
tmcw CreditAttribution: tmcw commentedUnsure about this - the images are BSD licensed.
And, openlayers_plus, as well as being BSD licensed, is a very large chunk of non-OL-native code - something that we've been trying to avoid here.
Comment #3
phayes CreditAttribution: phayes commentedWould dev-seed be willing to dual-license these as BSD / GPLv2?
Comment #4
mailking CreditAttribution: mailking commentedThat would be interesting. If not, is there a simple way to custom [make your own] controls?
Adventurous greetings,
Coen
Comment #5
zzolo CreditAttribution: zzolo commentedHi @mailking. The basics are just creating new images with the same name that OpenLayers expects them, then put them in a directory, and point to them when making a map. Requires icon making skills.
@tmcw, would DevSeed be offended if we hosted them somewhere else, added the rest of the icons, and pointed to them by default. Since we are already using OpenLayers external resources, this would not be any sort of performance issue (as long as where it is hosted is stable).
Comment #6
mailking CreditAttribution: mailking commentedI really like what DevSeed did with the preparedness maps and interaction. I would really like to build such a map and interface for our worldly wanderings. Kudo's. Would I be able to replicate it in D7?
Adventurous greetings,
Coen
Comment #7
tmcw CreditAttribution: tmcw commented@zzolo: I've added a GPLv2 to the openlayers_themes repo, so consider it dual-licensed. Feel free to fork, or host or whatnot. Though... the OpenLayers 'hosted Javascript' scenario has always been a pile of failure, and I think the only valid reason for having the module use the hosted version is the BSD-licensing of the project.
Comment #8
zzolo CreditAttribution: zzolo commentedMany thanks, @tmcw.
Comment #9
zzolo CreditAttribution: zzolo commentedHere's the thing that may have been overlooked. Though the mapbox/devseed images are awesome, they are not a complete set of images that OpenLayers would assume are there. But those images are BSD.
So, ideally we would make a full set of images to include in the module (probably based off the Mapbox designs). Otherwise, we can't really put the images in this repository.
The other option is to combine the two sets, and have someone host them for us. Not a huge fan of this one.
Comment #10
jeffschuler+1 for this, and for zzolo's first option:
What are we missing?:
$ diff openlayers_themes/dark OpenLayers-2.10/img/ | grep -v Binary
Comment #11
zzolo CreditAttribution: zzolo commentedHi @jeffschuler. The thing is that those images are BSD licensed so we can't include those in this module by default. The big one is the cloud popup image as this will make all the popups look real bad.
Comment #12
phayes CreditAttribution: phayes commented@zzolo, I believe as per tmcw's #7 these are now dual licensed GPLv2 and BSD, so we can include them.
Comment #13
zzolo CreditAttribution: zzolo commented:) Right, but the issue is that the MapBox icons are now GPL which is awesome, but we still dont' have a complete default icon set that the OL library expects that is GPL, specifically the popup is the biggest missing piece.
Comment #14
phayes CreditAttribution: phayes commentedAh, I see. Any pop-up artists out there????
Comment #15
zzolo CreditAttribution: zzolo commentedSo, as I am trying to get some designers/artists to help out, I am going to spell this issue out a bit more.
Goal
We want to provide a nice set of images (and possibly CSS) for the OpenLayers interface to use. (We usually call this an OpenLayers theme)
Background
OpenLayers, the library, uses a default set of images to pull in icons for interface controls. These are named specific files. By default, the library pulls them from the hosted directory of images. This can be overridden by using the ImagePath setting, which will set a new directory for OpenLayers to use, which contains images of the same name.
MapBox Theme
MapBox (ie Development Seed) put together a great set of icons to use. Mapbox provides a limited set of icons for OpenLayers that they have been really nice to license as GPL as well.
The Problem
The default OpenLayers images are licensed under BSD and cannot be offered as part of this module (and are ugly). And, the MapBox set is incomplete.
The Solution
So, we need to create a full set of images. Given that there is already work done, and source available, for some nice looking icons from MapBox, it would make sense to just fill in the missing icons using the same design. But if someone wants to start a new design, that would be cool too.
Bonus
Comment #16
rootwork+1 subscribe, and marking this for myself, as I may be able to help contribute designs for this. The lack of the popup image was killing me until I realized what was going on. We definitely don't want to enable something with missing images by default.
Comment #17
kae76 CreditAttribution: kae76 commentedo/
I'm up to help out :) Thanks @zzolo
Comment #18
ndagire CreditAttribution: ndagire commentedI had started up on something similar. Will definitely go through the missing images, would be nice for me too.
Comment #20
zzolo CreditAttribution: zzolo commentedThanks everyone for wanting to help out! It would also be great if there was coordination, so if people have created an image, just posting it here would be fine, and we can start to create the whole set.
Comment #21
kika CreditAttribution: kika commentedsubscribing
Comment #22
ao2 CreditAttribution: ao2 commentedI too am interested in a better default style.
Listing explicitly the missing images and stylesheets can help people decide what they can/want to help on.
Comment #23
dasjocoming here in order to change openlayers controls to the maki set
Comment #24
dasjoaccidentally changed the component.
using https://github.com/pigletto/openlayers_themes/tree/master/dark works for me so far
see also #928268: Add cloud-popup-relative.png to Dark theme
Comment #25
ndagire CreditAttribution: ndagire commentedHi everybody, I spent some time on the missing icons, open layers - in ref. to MapBox.
Let me know what you think.
Comment #26
ndagire CreditAttribution: ndagire commentedI had missed a few. Ok, this is it
Comment #27
steinmb CreditAttribution: steinmb commentedGreat work :-D
I have not taken them for a spin in OL yet, but wanted to let you know that what I thought. I really like mono-icons.
Comment #28
jeffschulerHey, nice work ndagire! These are looking good.
I wonder about using the "+" symbol in markers. These would make me think I can add something by clicking the icon...
Also noticed that some items have a different shade of dark background than others. I haven't seen this in the context of a map yet. Was this intentional?
Comment #29
ndagire CreditAttribution: ndagire commentedHey, thanks guys.
Jeff, about the + plus, I thought about it. The marker is sort of a place holder, before define a place. Hence the +.
But yeah, with feedback coming in, we can always revise the set.
In the open layers set, there some icons that are slightly bigger than those from the editing tool bar. Still to get a screen dump as they appear on the map.
Steinmb, mono-icons are great, had done a few on a recent project, so I thought these could be a little different in reference to the icon set from Map Box.
Comment #30
jeffschulerndagire: I'm not sure what you mean by "The marker is sort of a place holder, before define a place." I think these are general-purpose markers and shouldn't really indicate any other meaning.
Comment #31
jeffschulerThere's probably a much easier way to demo/test all of these new icons, but I crawled http://openlayers.org/dev/examples/, re-set those pages up on my own server, and replaced the images with the ndagire's additions (plus the Mapbox set.)
See: http://openlayers-images.websubstrate.com/examples/
I had to do some fiddling, but most examples work. Most, though, don't actually show many of the icons. A few that make use of the new icons are:
Comment #32
zzolo CreditAttribution: zzolo commented@ndagire, great work! These are awesome. Hopefully I will have some time soon to put these into the module as the default.
Comment #33
ndagire CreditAttribution: ndagire commentedI would like to refer to the, resizing marker issue.
If the new marker is not working on this, it's because it has a fixed width and height like the previous open layers icon.
Alternatively, we could have an image replacement on different zoom levels. I don't know hw this could work.
Or, have one marker icon which can be resized from different levels. Low zoom level to high, small to big. May be using image pre-sets or any other developer tools you might like to use.
Comment #34
ao2 CreditAttribution: ao2 commentedThanks @ndagire, what about the shade of the background?
jeffschuler in #28 noted that it is a bit different from the mapbox ones (maybe a different opacity value?)
Also, what about adding a dark version of the tooltip bubble?
Finally, a .svg with the old AND the new icons would be great to have :)
Thanks,
Antonio
Comment #35
zzolo CreditAttribution: zzolo commentedDone! I added the images, and set them as the default for maps, as well as updated some style for the layer switcher. It will not affect already existing maps (and had to add some logic for that). Please test out.
Thank you for all your hard work on this. Please feel free to re-open to add new images.
http://drupalcode.org/project/openlayers.git/commit/a9a33b4