Code Monkey home page Code Monkey logo

Comments (4)

jamietre avatar jamietre commented on May 27, 2024

Right now you cannot separate display groups from rendering option groups. You would have to assign the style to each unique area (with a unique key) separately. You can just write a loop to generate the "areas" array to automate this.

This is actually something that came up for another person recently and it's a pretty minor change to make it work. If you can hold tight for a little while I should have an update today or tomorrow.

from imagemapster.

mapoubelle35 avatar mapoubelle35 commented on May 27, 2024

thank you for your answer
Maybe you mean this example: http://jsfiddle.net/JDTT9/7/
This is exactly what I want to do : changing the color upon availability of a section.
I'll try to do it tonight with your tip, otherwise I would wait your update tomorrow.
In any case thank you very much
mapoubelle35

from imagemapster.

mapoubelle35 avatar mapoubelle35 commented on May 27, 2024

Thanks a lot.
I'ts ok I managed to to it with a loop and an id to each area
Now i try to highlight all area with respective color :
$('#dispo').bind('mouseover', function() {
$('#seat').mapster('set', true, '10,11,12');
});
I don't understand why only last seat highlights ? It isn't possible to use array here ?
Thanks in advance
mapoubelle35

from imagemapster.

jamietre avatar jamietre commented on May 27, 2024

That's valid - it should select all of them. I'd have to see all the markup & code to know why it isn't working, if you create a fiddle i can look.

from imagemapster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.