如何将CSS应用于一半的点功能?(How to apply CSS to half of a point feature?)
由于我不能使用服务器端的StyledLayerDescriptor(SLD)编码,我也不想加载外部图形我想使用CSS来设置我的OpenLayers的点功能。 详细地说,我想用不同颜色填充一半(或1/3)点特征。
CSS代码可能是
#OpenLayers\.Geometry\.Point_111{ fill: red !important; background: -moz-linear-gradient(-45deg, #ce275f 50%, #1e5799 50%, #207cca 50%, #7db9e8 100%) !important; /* FF3.6+ */ }
该功能未分配给类。 那可能吗? 还有其他可能性吗?
Due to I can not use server-side StyledLayerDescriptor (SLD) coding, neither I want to load external graphics I would like to use CSS to style my OpenLayers' point features. In detail I would like to fill half (or 1/3) of a point feature with different colors.
A CSS code might be
#OpenLayers\.Geometry\.Point_111{ fill: red !important; background: -moz-linear-gradient(-45deg, #ce275f 50%, #1e5799 50%, #207cca 50%, #7db9e8 100%) !important; /* FF3.6+ */ }
The feature is not assigned to a class. Is that possible? Are there any other possibilities?
原文:https://stackoverflow.com/questions/27944241
最满意答案
答案并不是我的方法错了,事实上我需要在我的组中添加我正在搜索其域名的前缀:
if (!String.Equals(group, @"DOMAIN\DeployUsersProd", StringComparison.OrdinalIgnoreCase)) { continue; }
特别感谢@DJ KRAZE提供的链接,这些链接促使我编写了自己的控制台应用程序来输出组,以便我能够解决这个问题!
The answer wasn't that my approach was wrong, it was the fact that I needed to prefix my group that I was searching for with its domain:
if (!String.Equals(group, @"DOMAIN\DeployUsersProd", StringComparison.OrdinalIgnoreCase)) { continue; }
Special thanks to @DJ KRAZE for the links that led me to writing my own Console app that outputted the groups so I could figure this out!
相关问答
更多-
TCP/IP模型是一个________。[2023-10-02]
a -
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
您可以创建另一个模型和控制器来处理用户请求 创建request.rb模型 class Request < ActiveRecord::Base belongs_to :user belongs_to :cliq end 创建requests_controller.rb 。 class RequestsController < ApplicationController before_action :set_group before_action :auth_group_owner ...
-
尝试添加组成员资格时,PowerShell无法在AD中找到用户(PowerShell can't find user in AD when trying to add group membership)[2022-07-12]
我会建议总是,特别是在脚本中,使用参数名称。 这样参数的顺序并不重要。 Add-ADGroupMember -Members $userDN -Identity '2Citrix Users' I would recommend to ALWAYS, espacially in scripts, use the parameter names. This way the order of the parameters does not matter. Add-ADGroupMember -Members ... -
如何查找用户是否拥有服务中特定全局组的成员资格?(How to find if a user has a membership to a specific Global Group in a service?)[2023-12-23]
答案并不是我的方法错了,事实上我需要在我的组中添加我正在搜索其域名的前缀: if (!String.Equals(group, @"DOMAIN\DeployUsersProd", StringComparison.OrdinalIgnoreCase)) { continue; } 特别感谢@DJ KRAZE提供的链接,这些链接促使我编写了自己的控制台应用程序来输出组,以便我能够解决这个问题! The answer wasn't that my approach was wrong, it was the ... -
尝试使用IUserFetcher.Memberof 。 ActiveDirectoryClient activeDirectoryClient = new ActiveDirectoryClient(serviceRoot, async () => await GetTokenForApplication()); IList
groupMembership = new List (); IUse ... -
根据标准,只能对组中的成员属性(由Microsoft Active Directory使用)进行“计数”。 RFC 4519第2.17节规定:“'member'属性类型包含列表或组中对象的可分辨名称。每个名称都是此多值属性的一个值。” memberOF(由Microsoft Active Directory使用)和groupMberShip(由eDirectory使用)是添加到用户的特定于实现的属性。 memberOF (由Microsoft Active Directory使用)属性由服务器控制,不可修改 ...
-
在您的CliqMemberships控制器的销毁操作中,在销毁CliqMembership之前,您可以检查current_user对该组的所有权,就像您正在检查他/她的成员身份一样。 我假设您想要一个实现,其中如果所有者离开该组,您希望该组及其所有成员资格也被自动销毁。 (如果我错了,请纠正我。)在这种情况下,你可以添加dependent: :destroy to has_many :cliq_memberships 如果current_user恰好是所有者,那么你可以完全破坏cliq,这反过来也会破坏它的 ...
-
我已经复制了你的问题并发现通过更改以下行,搜索者返回了值: mySearcher.Filter = "(&(ObjectClass=User)(distinguishedName=" & userDN & "))" 我不确定sAMAccountName的问题,因为你没有包含一个例子。 i have replicated your problem and found that by changing the below line the searcher returned values: mySearche ...
-
为什么不在连接模型中包含确认状态? 因此,假设您有一个用户,一个组模型,并且他们通过成员模型加入。 将具有格式DateTime的属性“accepted_on”添加到成员资格模型中(或者如果您不关心它们何时被接受,则只是一个布尔值。)然后创建一个视图,列出仅对管理员可见的所有成员资格,其中包含链接只有他们可以访问哪个将“accepted_on”属性设置为Time.current 。 在您的用户/组模型中,您可以执行以下操作: class User < ActiveRecord::Base has_many ...