Content deleted Content added
→Support for fill-opacity: new section |
|||
Line 75:
{{Maplink|frame=yes|plain=yes|frame-width=325|frame-height=325|type=shape-inverse|title=Manhattan|stroke-width=3|id=Q11299}}
<mapframe frameless="1" align="center" height="200" width="290">{"properties":{"stroke-width":6,"stroke":"#ff0000","title":"ExpandTemplates"},"type":"ExternalData","service":"geomask","ids":"Q11299"}</mapframe>
== Support for fill-opacity ==
{{ping|Evad37}}Can support for {{para|fill-opacity}} be added for geoshape and geomask. I think the following code should do it, applying opacity only when fill is explicitly set.
<pre>
-- insert after line 20
opacity = "fill-opacity",
</pre>
<pre>
--insert after line 277
local opacity = getParameterValue(contentArgs, 'opacity')
if opacity then
data.properties['fill-opacity'] = tonumber(opacity)
end
</pre>
It works on the infobox at [[London]] using, but I'm reluctant to make the change myself as I don't have a comperhensive set of examples to test generally. I don't see why it should cause problems elsewhere, but I'm not familiar enough with the module use to be sure. <span style="font-family:Arial;background:#d6ffe6;border:solid 1px;border-radius:5px;box-shadow:darkcyan 0px 1px 1px;"> [[User:Jts1882|Jts1882]] |[[User talk:Jts1882| talk]] </span> 06:47, 27 September 2019 (UTC)
|