Skip to content
Snippets Groups Projects
Commit 6e85d08f authored by Glenn Vorhes's avatar Glenn Vorhes
Browse files

fix map popup style

parent 6abf05f7
No related branches found
No related tags found
No related merge requests found
......@@ -128,7 +128,11 @@ export declare class MapPopupCls extends MapInteractionBase {
* @param {object|function} [selectionStyle.olStyle=undefined] an openlayers style object or function
* @returns {object} a reference to the ol selection layer
*/
addVectorPopup(lyr: LayerBaseVector, popupContentFunction: popupCallback, selectionStyle?: ol.style.Style | Array<ol.style.Style> | ol.StyleFunction): ol.layer.Vector;
addVectorPopup(lyr: LayerBaseVector, popupContentFunction: popupCallback, selectionStyle?: {
color?: string;
width?: number;
olStyle?: ol.style.Style;
}): ol.layer.Vector;
/**
*
* @param {LayerBase} lyr - layer
......
This diff is collapsed.
......@@ -469,7 +469,7 @@ export class MapPopupCls extends MapInteractionBase {
* @returns {object} a reference to the ol selection layer
*/
addVectorPopup(lyr: LayerBaseVector, popupContentFunction: popupCallback,
selectionStyle?: ol.style.Style|Array<ol.style.Style>|ol.StyleFunction) {
selectionStyle?: {color?: string, width?: number, olStyle?: ol.style.Style}) {
let selectionLayer = this._addPopupLayer(lyr, selectionStyle);
this._arrPopupLayerIds.push(lyr.id);
this._arrPopupLayerNames.push(lyr.name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment