Skip to content

Commit cf9885f

Browse files
HUSSAR-mtrelatishko0dkamburovMarielaTihovaskrustev
authored
hotfix map hover (#664)
* added grid and hgrid remote paging samples * docs(grid): initial implementation excel style editing * docs(grid): initial excel style editing sample * docs(grid): updated sample * docs(grid): added numpads to case * docs(grid): fixed column targeting on enter nav * chore(grid): fixed type missed warning * Add default separator the clipboard operations samples. * Reorder avatar size sample to match the wc one. * Fixed console errors for Hgrid remote paging * Adding Divider Samples * Resolving key errors in browser console * Correcting the duplicate key * chore(divider-samples): format tsx files * Adding changes from build igniteui-xplat-examples-output+PRs_2024.9.13.1 * Fix missing gridRef current argument use. * docs(grid): removed old sample * docs(grid): removed perPage from constructor * Renaming the sample so it doesn't cause build error (#652) Co-authored-by: Ivan Kitanov <[email protected]> * fix(grid): updated excel style to navigate on single enter click if in edit mode * fix(grid): removed extra sample to avoid confusion * chore(*): update ig to 18.7.2-beta.0 * chore(*): update ig to 18.7.3 * Adding changes from build igniteui-xplat-examples-output+PRs_2024.10.21.1 (#656) Co-authored-by: tfsbuild <[email protected]> * add map selection (#660) * add "react-icons * fix styling in Map Selection * fix labels * fix(grid): fixed grid overlay container scrolling (#659) * update map selection * fix hover in map selection --------- Co-authored-by: ttonev <[email protected]> Co-authored-by: Deyan Kamburov <[email protected]> Co-authored-by: Mariela Tihova <[email protected]> Co-authored-by: skrustev <[email protected]> Co-authored-by: Ivan Kitanov <[email protected]> Co-authored-by: ddaribo <[email protected]> Co-authored-by: tfsbuild <[email protected]> Co-authored-by: Vasya Kacheshmarova <[email protected]> Co-authored-by: Ivan Kitanov <[email protected]> Co-authored-by: Deyan Kamburov <[email protected]> Co-authored-by: IMinchev64 <[email protected]> Co-authored-by: azure-pipelines[bot] <36771401+azure-pipelines[bot]@users.noreply.github.com>
1 parent bdb4564 commit cf9885f

File tree

2 files changed

+95
-101
lines changed

2 files changed

+95
-101
lines changed

samples/maps/geo-map/shape-selection/src/MapElectionStyleUtility.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export class ShapeComparisonStyling extends ShapeStyling {
4242

4343
let itemValue = this.getValue(this.itemMemberPath, record);
4444
let itemStroke = this.getValue("KeyRace", record) > 0 ? "black" : "white";
45+
let itemSelected = this.getValue("IsSelected", record);
4546

4647
if (itemValue === null || itemValue === "") {
4748
return this.defaultStyle;
@@ -50,10 +51,11 @@ export class ShapeComparisonStyling extends ShapeStyling {
5051
for (const mapping of this.itemMappings) {
5152
if (mapping.itemValue === itemValue) {
5253
const shapeStyle = new Style();
54+
5355
shapeStyle.opacity = mapping.opacity || this.defaultOpacity;
54-
shapeStyle.fill = mapping.fill || this.defaultFill;
56+
shapeStyle.fill = itemSelected ? (mapping.hover || this.defaultFill) : (mapping.fill || this.defaultFill);
5557
shapeStyle.stroke = mapping.stroke || this.defaultStroke;
56-
shapeStyle.strokeThickness = mapping.strokeThickness || this.defaultThickness;
58+
shapeStyle.strokeThickness = mapping.thickness || this.defaultThickness;
5759
return shapeStyle;
5860
}
5961
}
@@ -68,5 +70,6 @@ export class ShapeComparison {
6870
public opacity?: number;
6971
public fill: string;
7072
public stroke?: string;
71-
public strokeThickness?: number;
73+
public thickness?: number;
74+
public hover: string;
7275
}

0 commit comments

Comments
 (0)