Image map is about condo units floor plan.
Everything is functional when the requirements changes.
For some area, altImage:'images/unit.png'
is used by default.
New Requirement:
- Show only the altImage when the unit is still Available
How to achieve the above new requirement? I already tried some test with hardcoded var
but altImage
is not showing. Please see my code below:
onClick: function (e) {
var unitStatus="Available";
$('#selections').html(xref[e.key]);
if (unitStatus == 'Available') {
$('img').mapster('set_options', {
areas: [{
key: "Unit1",
altImage:'images/unit.png',
altImageOpacity: 1,
altImageFill: true
}]
});
}
},
Note: I use onClick function above just to check if my js is properly executed. This is supposed to be dynamically triggered when the unit is *Available*.
Related Question: * Before (1 year ago) I tried to find ways to make some image overlay over an area using css to make it simpler but I find it really hard to accomplished using image mapster but still using it since I find it very lightweight than using flash.
This time, is this possible? or are there any ways to handle this type of overlay image setup? This is just my secondary question though.