Skip to content

Commit

Permalink
Minor style adaptions.
Browse files Browse the repository at this point in the history
According to the comments by @marcjansen some minor style adaptions are
added by this commit.
  • Loading branch information
chrismayer committed Nov 26, 2014
1 parent 19ed96e commit 37d7102
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/grid/feature-grid-w-proxy.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

<style>
div.olControlAttribution {
background-color: #157FCC;
background-color: rgb(237,237,237);
background-color: rgba(237,237,237,0.7);
}
</style>

Expand Down
15 changes: 14 additions & 1 deletion examples/grid/feature-grid-w-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,22 @@ Ext.application({
graphicName: "circle"
};
var style = new OpenLayers.Style(template);
var defStyle = new OpenLayers.Style(template);
var selStyle = new OpenLayers.Style(
Ext.apply(
Ext.apply({}, template),
{
strokeWidth: 3,
pointRadius: 15,
fontSize: "15px",
fontWeight: "bold"
}
)
);
var vecLayer = new OpenLayers.Layer.Vector("vector", {
styleMap: new OpenLayers.StyleMap({
'default': style
'default': defStyle,
'select': selStyle
})
});
map.addLayers([wmsLayer, vecLayer]);
Expand Down

0 comments on commit 37d7102

Please sign in to comment.