Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9214803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:03:19+00:00 2026-06-18T02:03:19+00:00

I have created Map view using following code var map = Ti.Map.createView({ mapType:Titanium.Map.STANDARD_TYPE, regionFit:

  • 0

I have created Map view using following code

var map = Ti.Map.createView({   

    mapType:Titanium.Map.STANDARD_TYPE,
    regionFit: true,
    animate: true,
    touchEnabled: true,
    userLocation:true,
    region:{

        latitude: 19.076719,
        longitude: 72.878583,
        latitudeDelta:0.5,
        longitudeDelta:0.5
    }   

 }); 

I am creating Annotation using following code

var pin = Ti.Map.createAnnotation({

    latitude:19.076719,
    longitude:72.878583,
    title:  "Dronzer",
    image:"pin.png"

});
map.addAnnotation(pin);

Question: How to replace this image with number “12” to show it on map?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:03:20+00:00Added an answer on June 18, 2026 at 2:03 am

    After few days some how I have found the solution.

    1. Create a Label

        var price = Ti.UI.createLabel({
      
                      text : "  "+data.price,//Number=12 Input from server
                      color : 'black',
                      font : {fontSize:'15dp',font:"monospace",fontWeight:"bold"},
                      height : '30dp',
                      width : '30dp',
                      left: '50%',     
                      backgroundImage:"red_pin1.png",
      
                  });
      
    2. Create an ImageView and set its image property as a blob.

      var anImageView = Ti.UI.createImageView({
                      image : price.toImage(), //setting label as a blob
                      width : 'auto',
                      height : 'auto',
                  });
      
    3. Create an Annotation and set its image property as blob.

      var pin = Ti.Map.createAnnotation({
      
                      myid:data._id,
                      latitude:data.latitude,
                      longitude:data.longitude,
                      title:  data.vendor_name,
                      image:anImageView.toBlob() //setting ImageView as blob
      
                  });
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to display the map i have created using the Iterator. The
I am using Google Map API V2 and i have created a custom InfoWindow
I have created a simple geographic map using Report Builder 3.0. In order to
I am new to iphone development.I have created map applications and displayed the cuurent
I have created a map marker that is positioned on my map by finding
So, I have created many map applications before, but the one that I am
I have an ArcGIS map created with Flex. The labels created dynamically are the
I have created 3 classes as following Ext.mine.TextParent - Inherting from Textfield Ext.mine.child.TextChildA -
I have created a Conceptual Model in my project using a table in my
I have an isometric .TMX file created with Tiled, I'm using AndEngine GLES1. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.