How to change the colour for round blue circle pin

I am using bing map on asp.net application, the default pin icon 'pin55light' which is in blue color is shown on the map. I am wondering if there is any way to change it to orange and make a size bit bigger?
Here is the code, for pin2 i am using custom icon but pin1 is having default icon. Is there any quick way to change the back color of default blue circle icon?
function themesModuleLoaded() {
map = new Microsoft.Maps.Map(document.getElementById('myMap'), {
credentials: BingMapKey,
zoom: 7,
center: new Microsoft.Maps.Location(546, 787),
theme: new Microsoft.Maps.Themes.BingTheme()
dataLayer = new Microsoft.Maps.EntityCollection();
map.entities.push(dataLayer);
var infoboxLayer = new Microsoft.Maps.EntityCollection();
map.entities.push(infoboxLayer);
infobox = new Microsoft.Maps.Infobox(new Microsoft.Maps.Location(0, 0), {
visible: false,
offset: new Microsoft.Maps.Point(0, 20)
infoboxLayer.push(infobox);
AddData();
function AddData() {
var offset = new Microsoft.Maps.Point(-3, 2);
var pin1 = new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(44, 66));
pin1.Title = 'Vendor';
pin1.Description = 'description';
Microsoft.Maps.Events.addHandler(pin1, 'click', displayInfobox);
dataLayer.push(pin1);
var pin2 = new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(11, 55), {
icon: '~/images/icons/pushpins/pins/pur.png',
width: 30,
height: 40,
text: '1',
textOffset: offset
pin2.Title = 'title';
pin2.Description = 'description';
Microsoft.Maps.Events.addHandler(pin2, 'click', displayInfobox);
dataLayer.push(pin2);
}function displayInfobox(e) {
          if (e.targetType == 'pushpin') {
              infobox.setLocation(e.target.getLocation());
              infobox.setOptions({
                  visible: true,
                  title: e.target.Title,
                  description: e.target.Description,
                  width: 170,
                  height: 100,

The whole idea of the theme module is that it changes all the look and feel of the map. You can't override those. You are better off using a custom pushpin without the theme module.
http://www.bingmapsportal.com/ISDK/AjaxV7#Pushpins2
https://rbrundritt.wordpress.com/2014/10/02/correcting-anchoring-pushpins-to-the-map/
http://rbrundritt.wordpress.com

Similar Messages

  • How to change the colour of chart in WAD.

    Hi,
    I have problem with web report. The web report with bar charts used to show with different colours earlier. Now when I execute the web report, the chart displays in single colour (All the rectangular bars in the charts are displayed in single colour say for example red). customer would like to see the chart with different colours. Please put some lights on it how to change the colour of chart in the report.
    Thanks,
    Sravan.

    Hi Krish,
    I have followed the steps which you suggested, but I am unable to see the changes when I execute the web report.
    I could able to see the colour changes to the bars in the chart in the preview (i.e when I select the series 1 and change the colour for series 1 under Area properties). Like that I have done for all the 5 series, then I have clicked on Complete button, saved the web template and executed it, and I could able to see the changes in the preview but not in the report after execution.
    I have two charts in my case, one is <b>Job function</b> chart and the other is <b>Job type</b> chart. The Job function chart is displaying with different colours from the begining, but the job type chart is displays all the columns in RED colour.
    Is there any setting I need to do after selecting the colour at the series level.
    Please correctt me if I am worng in doing the procedure.
    Please update me how to do it...It is usefull if you can come back to me ASAP .
    Thanks,
    Saravanan.
    Message was edited by:
            SARAVANAN PAYANI
    Message was edited by:
            SARAVANAN PAYANI
    Message was edited by:
            SARAVANAN PAYANI

  • I cannot find how to change the language for labels in a quiz

    I cannot find how to change the language for labels in a quiz

    You have to be aware that this will only change labels if you edit before adding quiz slides: Preferences, Quiz, Default Labels. You will have to edit the labels, choosing another language will not change them automatically.

  • How to change the Icon for a JFileChooser ?

    Has anyone figured out how to change the icon for an instance of JFileChooser from the coffee cup to something else?
    I'm on 1.4
    Thanks,
    Ken

    Never mind. I figured it out.
    You have to use an instance of JFrame in the call to showXxxxDialog(Component c). Set the icon of the JFrame to what you want the JFileChooser's icon to be.

  • How to change the color for HTML words in JEditorPane?

    Hi Sir,
    In the JTextPane , we could change the word's color by using:
    Style style = doc.addStyle("test",null);
    StyleConstants.setForeground(style, Color.red);
    doc.setCharacterAttributes(10,20,syle,true);
    we can change the text into red color,which range is from 10 to 30.
    But how to change the color for HTML words in JEditorPane?

    Hi,
    you can use an AttributeSet to apply the foreground color. Let's say, doc is a HTMLDocument, then SimpleAttributeSet set = new SimpleAttributeSet();
    doc.getStyleSheet().addCSSAttribute(set, CSS.Attribute.COLOR, "#0D0D0D"); would apply a color to a given AttributeSet. The AttributeSet with your color then can be applied to a selected range of text in a JEditorPane by   /**
       * set the attributes for a given editor. If a range of
       * text is selected, the attributes are applied to the selection.
       * If nothing is selected, the input attributes of the given
       * editor are set thus applying the given attributes to future
       * inputs.
       * @param editor  the editor pane to apply the attributes to
       * @param a  the set of attributes to apply
      public void applyAttributes(JEditorPane editor, AttributeSet a) {
        ((HTMLDocument) editor.getDocument()).getStyleSheet().addCSSAttribute(set, CSS.Attribute.COLOR, "#0D0D0D");
        editor.requestFocus();
        int start = editor.getSelectionStart();
        int end = editor.getSelectionEnd();
        if(end != start) {
          doc.setCharacterAttributes(start, end - start, a, false);
        else {
          MutableAttributeSet inputAttributes =
            ((SHTMLEditorKit) editor.getEditorKit()).getInputAttributes();
          inputAttributes.addAttributes(a);
      } Ulrich

  • How to change the Schedule For settings for an object

    Hi All,
    do you know how to change with BO Enterprise SDK Java the schedule settings for an object?
    I mean these settings that can be changed manually In the Objects management area of the CMC, selecting a report object, Schedule tab, Schedule For link:
    - Schedule only for myself
    - Schedule for specified users and user groups
    Rest of settings can be managed with ISchedulingInfo, but I don´t know how to change the "Schedule for" property.
    Should I use other SDK?
    We have Webi Documents, BOXIE R2 SP2
    thanks,
    regards,

    Hi,
    I think I´ve solved it,
    we can use
    ISchedulingInfo.getMultiPassObjects()
    that returns a java.util.Set of user/usergroup IDs on the schedule for multipass.
    and then we can work with this Set (adding or removing users and groups).
    Setting manually to "Schedule only for myself" in the CMC is the same that removing all the elements from the getMultiPassObjects() set.
    thanks,

  • How can I change the colours for read/unread emails on a Samsung S6?

    The only difference between the colours for read and unread emails on a Samsung S6 is a very pale grey versus white background.  Is it possible to change these colours, or font colours, so that the difference between the read and unread emails is more obvious?

    Hm, I belive it has nothing to do with phone, most likely it's the email application that handles settings. You need to fire your email application and check the settings. Unfortunately at least in GMail app there is no way to change the theme, you might want to look for other email clients that offer customisable themes or simply more themes to select from.  Appologies that I don't have any recommndations to make 

  • How to change the colour of text property in Radio button?

    Hello All,
    I am having some radio buttons in my application. i want to change the colour of text property by default it is black.
    Could any one please suggest me how to do it?
    Thanks in advance.

    Currently you cannot, it is a known (and hopefully reported, and at least addressed for next version) bug (or limitation, as they rushed to get the components out before JavaOne...).
    People reported they just put an empty text and put a label beside the component. Ugly workaround (bad when the component will be complete) but if it works... :-)

  • How to change the colour of selected item in itemrenderer

    Hello guys
    please tell me how to change the selected image( which is in itemrender of tilelist).so that the colour sholud be shown within  image not its outer part due to renderer.
    Thanks in Advance
      vineet sharma

    Currently you cannot, it is a known (and hopefully reported, and at least addressed for next version) bug (or limitation, as they rushed to get the components out before JavaOne...).
    People reported they just put an empty text and put a label beside the component. Ugly workaround (bad when the component will be complete) but if it works... :-)

  • How to change the colour of a table cell boder?

    I have just changed from Dreamweaver MX t CS5 and cannot find how to add a colour to the borders of a table and table cells.  In the old MX it was easy just selected the colour for border in properties but in CS5 this option is not availble.  Have tried formatting with CSS but this only colurs the outer boarder can anyone help?

    Not sure what you mean by a custom class would it be possible to give me an example?

  • How to change the colours of squares in ical

    How do I change the colours of squares (that show days) in ical?

    How do I change the colours of squares (that show days) in ical?

  • How I change the icon for iTunes songs?

    When I drag iTunes songs onto my desktop the icon is white with a gray iTunes icon. How can change this icon for all of my iTunes songs?

    Thanks Patrick. I used Control-Click on the actual audio file on my desktop opened the Show View Options menu and turned off the icon preview option. That changed my icons from gray with a white background to red with a white background which is exactly what I wanted.  You pointed me in the right direction. Appreciate it.

  • How to change the icon for print dialog?

    Hello,
    I have a JTable, and with the print() method, I'm able to bring up the Print dialog and successfully print the contents of the table. Example:
    myTable.print( JTable.PrintMode.FIT_WIDTH, myHeaderFormat, myFooterFormat );This works great, but one small detail I'd like to change is the icon in the top-left corner of the dialog. The icon is currently the default Java coffee cup icon, while the rest of my application uses my custom icon. I couldn't find any documentation in the API or tutorials that Java has listed which shows how to change the icon, so I'm not even sure if it's possible (but why shouldn't it be?).
    My question is this: Is it possible to change the default icon in the print dialog? Or do I have to either make my own print dialog somehow, or use a third-party print dialog?
    Thanks

    tjacobs01: Appreciate the assistance (despite your sass). I've already searched the API, tutorials, and this forum. I'm already well aware of the setIconImage() method for JFrame -- after all, that's how I set the icon for my other frames as I previously mentioned. However, I want to set the icon for the print dialog called from the print() method of JTable.
    How would I use setIconImage() for the print() method of JTable? The print() method returns a boolean value, not a JFrame, so I'm just not sure how to implement what you're saying.
    Thanks

  • How to change the width for adf shuttle without modify the skin file

    Dear Professionals
    I haven an ADF Shuttle component in my jsp screen , How can i change the width for the two boxes without modify the skin files.(I know i can do that by skin but what i want to change one shuttle just in one screen not change all shuttles on other screens).
    Regards
    Wish79

    Okay, I didnt try with the trinidad selectmanyshuttle, but this worked for me on the af:selectmanyshuttle..
            <af:selectManyShuttle label="Label 1" styleClass="mycustcss">
              <af:selectItem label="Label1" value="value1"/>
              <af:selectItem label="Label2" value="value2"/>
            </af:selectManyShuttle>
            <af:selectManyShuttle label="Label 1">
              <af:selectItem label="Label1" value="value1"/>
              <af:selectItem label="Label2" value="value2"/>
            </af:selectManyShuttle>        And in my css file, I have
    af|selectManyShuttle.mycustcss::content { width: 800.0px;}
    The first selectManyShuttle came up very wide and the second one came up in the default width..
    Julian.

  • How to change the width for af:selectManyShuttle by skins

    i need to change the width for selectManyShuttle by skin i can do that by change the width for .AFFieldText but this method change the all select* and textfiled width,so i just want to change the width for selectManyShuttle component.
    and i hope to know how to change the header color for selectManyShuttle ,the default color for it is green.

    Thanks ,It is working
    Could you please tell me how to change the header text color for af:selectManyShuttle
    Regards
    Wish79

Maybe you are looking for