Apply a hover style over a layer cluster using V2 API

We are looking to apply a hover style that would highlight the [radius/extent/polygon] that contains the features that fall under a cluster. We are using V2 API. Any ideas !!!

Hi,
Did you try this?
See my VectorLayer of Customers
// define and use the Customers theme
        vectorLayer = new OM.layer.VectorLayer("vectorlayer2",
            def:{
                type:OM.layer.VectorLayer.TYPE_PREDEFINED,
                dataSource:"mvdemo", theme:"customers",
                url: baseURL,
                loadOnDemand: true
        var variableMarker = new OM.style.VariableMarker(
          classification:"logarithmic",
          marker:new OM.style.Marker({ vectorDef: [
                            shape: {type: "circle", cx: 5, cy: 5, width: 10, height: 10},
                            style: {fill: "#ff00ff", stroke: "#000000"}
          startSize:20,
          increment:5,
          numClasses:10
        vectorLayer.enableClustering(true,{clusterStyle:variableMarker,minPointCount:5, maxClusteringLevel:8, threshold:40});
          vectorLayer.setHoverStyle(new OM.style.Color({strokeThickness:8})); //MY HOVER STYLE DEFINITION
Regards,
Renan

Similar Messages

  • Sound problem while transimission over the network by using JMF API

    i had done an application which transmit audio and video over the network by using JMF API in JAVA. All my application work very well but i have a problem with the sound while i transmit it. this sound has a very bad quality (i am using AVReceive2.java) .
    has anyone an indication or solution for my problem
    it's very urgent, please help me.
    regards
    sar

    you can try modifing de Capture example from JMF Solutions.
    change this function:
    public int startCapture() {
         int result = -1;
         enableComponents(false);
         buttonStart.setLabel("Pause");
         buttonEnd.setEnabled(true);
         startMonitoring();
         try {
    processor.start();
    DataSource clone = Manager.createCloneableDataSource(datasource);
         MediaLocator ml2 = new MediaLocator("file://capture.mov");
    System.out.println("Content Type " + clone.getContentType());
    datasink = Manager.createDataSink(processor.getDataOutput(), ml2);
         datasink.open();
    datasink.addDataSinkListener(this);
         datasink.start();
    result = 0;
         } catch (Exception e) {
         System.err.println("DataSink Exception " + e);
    result= -1;
    Regards.
    Fernando

  • Hover style on li tag

    I need to apply hover style on li like if i have 5 items in repeater control as below
    first li
    second li
    third li
    fourth li
    fifth li
    then if i hover over any item then whole items must be yellow,i want to hover whole li not the anchor tag,code for repeater control is below
    <asp:Repeater ID="rptListItems" runat="server">
     <ItemTemplate>
     <li><a class="LinkText" href='<%# DataBinder.Eval(Container.DataItem, "Link").ToString() %>'><%# DataBinder.Eval(Container.DataItem, "Title")%></a></li>
     </ItemTemplate>
     </asp:Repeater>
     protected void rptListItems_ItemDataBound(object sender, RepeaterItemEventArgs e)

    Hi,
    To apply the hover style on page elements, we can create a custom CSS to achieve it.
    I suggest you use IE Developer(F12) to investigating the HTML source of the page and find out the corresponding elements of these “li”, then use CSS Selector to select them and
    apply your custom style to them.
    Here are two links about
    CSS Selectors:
    http://www.w3schools.com/cssref/css_selectors.asp
    http://code.tutsplus.com/tutorials/the-30-css-selectors-you-must-memorize--net-16048
    For the
    hover style:
    http://www.w3schools.com/cssref/sel_hover.asp
    http://www.w3schools.com/css/css_link.asp
    Feel free to reply if there still any questions.
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to Apply A Font Style in Mail?

    This seems like a simple question, but I can't seem to find an answer by searning this forum.
    I'm new to Mail (recently converted over from Entourage). Quite often, the e-mails I compose are a hodge podge of cut and pastes from other messages and documents. The result is a mix of fonts and font formats.
    I would like a simple way to highlight all of the text in a document and apply a single style. Essentially, I want a way to apply a single style to all of the text in a mail message.
    I can't seem to find this in Mail. I've tried to "apply" the default style using the Format --> Style ... menu, but that doesn't work as expected (I don't think it changes anything). Looking up "Style" in the Help menu brings up nothing of help.
    Any suggestions?

    you could also select Verdana 12pt as your Fixed-width font and your Message font in preferences under fonts/colors, then check the box that says "use fixed-width font for plain text messages"
    then you could select your text command-A, then Shift-Command-A (to convert to plain text) which would convert everthing to verdana 12pt, then if you wanted rich text message again, just press Shift-Command-A again and it will stay with Verdana 12pt but be a rich text message.
    This would only be 2 and at the most 3 key combos with no mouse clicks to achieve what you mentioned in your previous post.

  • Fonts default to 50 point when applying a paragraph style

    I have run into this several times.  When updating an InDesign file from an older version (now using CS5) when I apply a paragraph style the font defaults to 50 point no matter the style settings.  Is there some way to avoid this.  Currently I'm copying and pasting the graphics into a new file and having to reset the text.  If I copy any of the old text over it causes the same problem.
    Most of our text is copied and pasted from Microsoft Word (old version and new text edits), however, the text that was already in the document and the new text both do the same thing when a style is applied.
    CS5
    Win 7 Pro 64bit

    My original "body" style isn't base on any style and the other styles are based on "body" but none of them (including Basic Paragraph), have 50 as the size.
    I had it wrong in my original question, it's not 50 point size, it's 30 point with 50 point leading, bold, and Myriad Pro (which is my body font) that everything converts to no matter which style I choose.  My basic paragraph style is Times New Roman 12/14.  Body font that everything is based on is Myriad Pro, regular, 10/14.

  • Apply a layers style to all frames in an animation?

    Hi so what i've done it imported a video to frames.
    I've added some text to go on every frame. But when i edit the texts style (outline etc) it only applies to one. I can't select all or some of the layers/frames for the text style to appear on.
    Do I have to do it manually one by one?
    Thanks in advance.

    Could you please post a screenshot with the pertinent Panels visible?
    Styles can be applied to multiple Layer in CS5 either from the Styles Panel or with Paste Layer Style (after Copy Layer Style naturally).

  • How do I apply a character style to a sentence that has an '&' in it?

    Hi all,
    I'm trying to apply the Character style 'See Figure' to any mention of of the phrase (See Figure x) which  I've figured out is: \(See Figure \d+\)
    The problem I'm facing is that sometimes I will need to list multiple figure references. It will need to read (See Figure x&y) and in rare cases (See Figure x,y&z)
    NOTE: There are no spaces in the above listed numbers.
    Thank you  for your help.

    That works perfectly, thank you very much.
    Can you break it down for me in English if you have a moment please? I think I'm reading it wrong.
    Digit followed by an Ampersand (I'm confused by the square bracket and plus...)

  • How do I apply a grep style to the plus (+) sign?

    I was able to apply a grep style to the minus and equal sign, but not the plus sign "+".  It appears the plus sign means 'apply to all' in the grep style box.  Can some assist me with this? Thanks in advance.

    Thank you. It worked perfectly.

  • How can I apply a GREP style to a text variable?

    Hello everybody,
    I have a question concerning GREP styles inside Paragraph styles.
    1. I've created a text variable to generate a recurring title on the upper side of the page based on the main title paragraph style;
    2. The recurring title is in Adobe Garamond Small Caps, all letters in lower case, and it is formatted with a paragraph style sheet in the master page;
    3. I want to create a GREP style for the recurring title, according to which every time that in the recurring title appear an apostrophe or the double quotes, they are automatically lowered 2pt on the baseline
    (I already created the character style sheet that lowers letters of 2pt).
    What I need is the correct GREP formula to automatically apply the character style sheet to apostrophes and double quotes, in the line of text generated by the text variable...
    Thanks for your  help
    p.

    Hi,
    As I said, using Power Headers is the best way to do it.
    As Power Headers treats the header as "live text", you can use a simple grep style inserted in the header para style:
    … to obtain:
    For the sample, I use a char style named "-2pts" with Shift -5 pts and Green color to show you the place of ' and ".
    Don't forget that, even Power Headers treats the header as "live text", you only have to update Power Headers to make an update of the headers! 
    Even I use in another cases Tomaxxi's [JS] and it's a good way to treat the question, Jean-Claude Tremblay's solution is less interesting because the variable used is converted in text. If the variable text content changes, it's more complicated to manage the update!

  • How to apply multiple paragraph styles to one sentence?

    I'm using paragraph styles but is not helpful because I'm trying to apply 2 different styles within the same sentence which is not working.
    To make it work I select the sentence, apply the style, for instance "xfont-regular" then I select the word within the sentence that I want it to have a different style and I choose from the font list maybe italic so that it looks "something like this"
    Obviously by doing this, I'm loosing all the benefits of using p styles and of course it's so time consuming. Is there any way to break the sentence, keeping it in the same line, so that I can apply different styles to it? and still keep the benefits of just going to the styles and make the changes to the whole document that have that style applied.
    Thank you

    pchinique wrote:
    I'm using paragraph styles but is not helpful because I'm trying to apply 2 different styles within the same sentence which is not working.
    To make it work I select the sentence, apply the style, for instance "xfont-regular" then I select the word within the sentence that I want it to have a different style and I choose from the font list maybe italic so that it looks "something like this"
    Obviously by doing this, I'm loosing all the benefits of using p styles and of course it's so time consuming. Is there any way to break the sentence, keeping it in the same line, so that I can apply different styles to it? and still keep the benefits of just going to the styles and make the changes to the whole document that have that style applied.
    Thank you
    As Diane King mentioned, nested character styles may work for your need. Her example was an initial dropped capital (multi-line first one or several letters of a paragraph.) Dropped caps are a specific type of nested style - always the first one or more characters in a paragraph, two or more lines high.
    To use the general kind of nested style, you need to be able to identify the word or words within the paragraph that gets the nested character style. For example, the third word, or the first two words after the first semi-colon. If there is no pattern of word(s) that can be identified by position or sequence, it's possible that a GREP style can be used to find a common pattern of characters and apply a character style to it, for example a telephone number, date, or currency amount that's identified by a dollar sign, pound, or yuan.
    Search InDesign Help and Google for "InDesign nested style," "InDesign grep style," and similar terms (without quotes) for details. There have been many discussions of GREP on this forum.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Help: photoshop cs4 crashes when i drag a layer under or over another layer/try to change layer orde

    help: photoshop cs4 crashes when i drag a layer under or over another layer/try to change layer order
    this problem orcurred suddenly after having used the programm for years.
    i tried to reinstall cs4 and install all available updates, but it di not help...
    please help ! thanks

    What is the exact version and what’s your OS?
    What does the crash report state?
    Boilerplate-text:
    Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by pressing command-alt-shift/ctrl-alt-shift while starting Photoshop until the appropriate dialog appears after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.)

  • How to apply a Character Style that's already been made in a template document?

    First of all I'd like to thank everyone that helps. I'm a complete beginner at scripting and appreciate all your help.
    I'm basically using GREP expressions to find patterns in a document and apply a Character Style which has already been made. This Character style was not made using script, but just in InDesign when making and setting up the template.
    var myDoc = app.activeDocument;
    //Clear the find/change grep preferences.
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    //Set the find options.
    app.findChangeGrepOptions.includeFootnotes = false;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;
    //GREP Expression for finding all HEADERS
    app.findGrepPreferences.findWhat = ".+\n";
    //Applying formatting changes to put into All Caps, Bold and changing the font size to 12 pt.
    app.changeGrepPreferences.capitalization = Capitalization.allCaps;
    app.changeGrepPreferences.fontStyle = "Bold";
    app.changeGrepPreferences.pointSize = "12";
    myDoc.changeGrep();
    //Clear the find/change preferences after the search.
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    This is how I currently have it. I will manually define the changes to the text. The problem is, each template uses a different set of fonts and not all of them use Bold e.g. Sabon can use CE Bold.
    I would like to learn how to apply a Character Style and have tried looking around but nothing seems to work.
    Any help would be much appreciated.
    Thanks.

    select the text where u went  and run below  script after change group as per ur template.
    var myDoc = app.activeDocument;
    var mySel = app.selection[0];
    //Clear the find/change grep preferences.
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    //Set the find options.
    app.findChangeGrepOptions.includeFootnotes = false;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;
    //GREP Expression for finding all HEADERS
    app.findGrepPreferences.findWhat = "role";
    //Applying formatting changes to put into All Caps, Bold and changing the font size to 12 pt.
    //app.changeGrepPreferences.capitalization = Capitalization.allCaps;
    //~ app.changeGrepPreferences.fontStyle = "Bold";
    //~ app.changeGrepPreferences.pointSize = "12";
    app.changeGrepPreferences.appliedCharacterStyle=myDoc.characterStyleGroups.item("Style Group 1").characterStyleGroups.item("Style Group 2").characterStyles.item("Header")// Header is name of character name
    mySel.changeGrep();
    //Clear the find/change preferences after the search.
    app.findGrepPreferences = NothingEnum.nothing;
    app.changeGrepPreferences = NothingEnum.nothing;
    If it's help then click yes
    Mi_D

  • [JS][CS3] Applying an Object Style

    Hi.
    This is a simple one, I am trying to apply an already made Object Style to a text frame.
    I am using a similar method as used to apply a paragraph style:
    myFrame.appliedObjectStyle.name= "GreenBox";
    and also
    myFrame.appliedObjectStyle= "GreenBox";
    But these dont work.
    I have researched the forums and found something like:
    myFrame.applyObjectStyles(GreenBox , true);
    and
    myFrame.applyObjectStyles(GreenBox);
    but these dont work either.
    Can someone give me a hand with the correct syntax please?
    Thanks in advance
    Roy

    void applyObjectStyle (using: ObjectStyle[, clearingOverrides: bool=true][, clearingOverridesThroughRootObjectStyle: bool=false])
    Applies the specified object style.
    Parameter
    Type
    Description
    using
    ObjectStyle
    The object style to apply.
    clearingOverrides
    bool
    If true, clears the Button's existing attributes before applying the style. (Optional) (default: true) (Optional)
    clearingOverridesThroughRootObjectStyle
    bool
    If true, clears attributes and formatting applied to the Button that are not defined in the object style. (Optional) (default: false) (Optional)
    -- so you can use one or even two trues; it's default is 'true'.

  • Is there a script for applying a certain style to several thousands of words arranged in a list?

    Hello, I have tried using FindChangeByList, but I'd pretty much do all the work of pasting every word on the brackets, so i could as well apply the styles by hand.
    So my project involves applying the same style to around 11 thousand words that appear in a book. Those words are mostly names and brands, and they appear throughout the whole text, so applying that style manually would be quite time-consuming.
    I have those words set aside in a list.txt
    Does anyone know if I could use that in any script and apply the style automatically?
    Like I said, pasting every single word into FindChangeByList is out of the question, just like applying the style word by word, it would take forever...
    ...thanks!

    Okay, for anyone that might be interested in this as I was, I found a solution.
    If you want to have a particular text expression on your .txt list to be used as a search parameter by your script, here are a few tips:
    Let's say you want to add the following 2 expressions on your list, without the quotation marks:
    a) "test, test."
    b)"[test] {test}"
    1 - Like Jongware said, you MUST abide by GREP syntax.
    2 - If you want to put an expression on your .txt list that DOES NOT uses characters that represent GREP syntax (example a) with regular text, commas and simple punctuation), you may simply add them to your list between parentheses:
         a) (test, test.)
    3 - If you want the script to search for an expression that DOES CONTAIN characters that are also used by GREP syntax (example b) you can try stuff like:
         b) (\p{Ps}test\p{Pe})
         note the parentheses, because it's a specific text expression
         then note the \p{Ps} and \p{Pe} that mark opening or (s)tarting and closing or (e)nding punctuation such as brackets, braces, parentheses...
    Here is a file with the GREP expressions that helped me solve my problems:
    http://www.kahrel.plus.com/indesign/grep_mapper.pdf
    Although this is a very specific matter and probably easily solvable by all the professional scripters here, I thought I'd share it since it took 3 whole days of studying for me to conclude everything.
    Thanks again, specially to Jongware

  • How do I delete items in my calendar when it doesn't work when I hover them over the trash can?

    How do I delete items in my calendar when it doesn't work when I hover them over the trash can?

    There are several ways
         - Selecting the event and hitting the "delete" key on your keyboard (as Wayne Contello said)
         - Selecting the event and opening the "edit" dropdown menubar item, and then selecting "delete"
         - Selecting the event and right clicking, then selecting "cut" (this option puts the event on your clipboard)

Maybe you are looking for