Closed (works as designed)
Project:
Openlayers
Version:
6.x-2.x-dev
Component:
OpenLayers Layers
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
7 Sep 2009 at 03:06 UTC
Updated:
16 May 2024 at 00:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
zzolo commentedAt first glance, this patch looks good, but I don't necessarily have time to test this out (installing Domain Access and the such). If someone can actually test out this patch, I would be happy to put this in.
I think our plans for 6-2.x will conflict with this, but we can address it later.
Comment #2
Anonymous (not verified) commentedDoesn't work. Looking into it...
Comment #3
Anonymous (not verified) commentedOk, this one works. I was adding it to the .inc file but apparently you have to add it to the .module file.
If no one else wants to test this you can just commit, it's working for me.
Comment #4
zzolo commentedhttp://drupal.org/user/147331
I actually did not use your patch. I abstracted the form elements form the admin page, and re-used them properly. I also did the same thing with main openlayers module and the main settings. Also, updating project page.
BWPanda, if you are able, please test this out. Thanks.
Comment #5
zzolo commentedNeeds to be ported to 2.x. Note how we are changing how we are doing layers, so not sure if that part will apply.
Comment #6
phayes commentedComment #7
phayes commentedComment #8
Anonymous (not verified) commentedI haven't tested the code yet, but I wouldn't imagine you'd need to have separate settings for each domain...
The only reason we needed to support the domain module was because the API keys (for Google at least) only apply to a specific domain. We therefore need a different API key for each domain, but I don't think we need different settings as well...
Comment #9
zzolo commentedWell, I don't see how it could hurt anything. It's all ust setting variables anyway, and if a site is using domain and has different variable tables, then it could be useful. Thanks.
Comment #10
Anonymous (not verified) commentedI still haven't tested yet, but I figure this would work one of two ways:
1: Users configure the main settings which are applied to all domains. Users can then change the domain-specific settings on any of their domains thereafter.
2: Settings aren't applied to all domains and so users have to configure the settings for each domain separately.
If it turns out that it works the 2nd way, this could be a problem as I currently have about 30 domains (and am constantly adding more) and I've heard there are users out there with hundreds of domains. Having to configure each domain separately would be a pain...
If it turns out the 1st way, that should be fine.
Comment #11
Anonymous (not verified) commentedOk, I've tested this out and have some thoughts...
- Get rid of the 'OpenLayers Source' and 'OpenLayers Debug Options' settings. As Domain Access only uses the one database and directory structure, the OpenLayers library will be the same for each domain, no point having it configurable per domain...
As for the debug options, if someone's wanting to test the output, they'd probably want to test across all domains. Getting rid of this setting saves them having to enable it for each domain (since it's generally only a temporary setting anyway).
- I suppose I can see the value in having a per-domain setting for the 'OpenLayers Default Preset', but if you're going to keep it there I'd highly recommend adding another (default) option being 'Use primary domain settings'. This would mean users don't have to update all their domains when they want to change the preset to something else.
All the other select lists have this option (provided by the Domain module itself), so it shouldn't be too hard to add in...
- Wrap all OpenLayers settings in a common fieldgroup for a nicer layout (the settings I mentioned above are currently just sitting on the page and it's unclear they relate to OpenLayers).
Other than that, looks good :)
BTW, I wasn't sure whether to set this back to 6.x-1.x-dev or not... I'll let you mark this issue as appropriate.
Comment #12
Anonymous (not verified) commentedAny update on this?
I also had the thought that we should add support for batch editing. Domain Access allows for exposing your setting to their batch editing screen, this'll make it easier to add API keys to each domain all on one screen.
Comment #13
tmcw commentedI've changed the layout of API keys in 2.x, so that they can be supported by contrib modules and are cleanly built into the ctools plugin architecture instead of hardcoded into the module. If you enable a new module that provides a layer with API keys required, it can add its form to that page. However, here it seems like spaces enables us to support multi-domain sites in a much more clean fashion than Domain Access and has similar levels of adoption.
Comment #14
tmcw commentedI've removed domain access integration in 2.x, since it isn't going to blend with the ctools/per layer settings concept, and because spaces does its job without required integration.