Gemstone and Jewelry

Gemstone and jewelry informations and refernces (www.jewelinfo4u.com)
posts - 16, comments - 7, trackbacks - 18

Friday, October 17, 2008

Gemstone mines map using yahoo map webservices

Yahoo got fantastic web service components to use at free of cost. One of them which caught my attention to use for jewelinfo4u.com was yahoo map web services components. They have Adobe flex version yahoo map component, which gives flexibility to build custom map applications.

  I used yahoo flex map component to build gemstone mines map application using adobe flex builder 2.  Beauty of this application is the mines location is dynamic, in the sense the mines geometric locations (Lat, long) stored in a database and an xml web service is used to get the location information. The flex map component is used to display the maps in any format chosen by the user (satellite, hybrid, Map). The mine locations are denoted using markers by calling the xml web service.  Check the following pages for the action in live.

  http://www.jewelinfo4u.com/Amber_Mines.aspx

http://www.jewelinfo4u.com/Amazonite_Mines.aspx

http://www.jewelinfo4u.com/Turquoise_Mines_Map.aspx

http://www.jewelinfo4u.com/Onyx_Mines.aspx

http://www.jewelinfo4u.com/Aquamarine_Mines.aspx

http://www.jewelinfo4u.com/Ruby_Mines_Map.aspx

http://www.jewelinfo4u.com/Emerald_Mines.aspx

http://www.jewelinfo4u.com/Sapphire_Mines.aspx

http://www.jewelinfo4u.com/Interactive_Amethyst_Mines_Map.aspx

http://www.jewelinfo4u.com/Alexandrite_Mines.aspx

http://www.jewelinfo4u.com/Agate_Mines.aspx

    For more information on getting started guide for Yahoo flex map component: http://developer.yahoo.com/maps/flash/flexGettingStarted.html

  Sample code I used here:

 

                

    
        import flash.utils.getTimer;     
      import mx.controls.Alert;
      import com.yahoo.webapis.maps.methodgroups.*;
      import mx.rpc.events.ResultEvent;
      import mx.rpc.http.HTTPService;      
      import flash.events.*;
              import mx.collections.ArrayCollection;       
        private const SWFDOMID:String = "Amber_Mines";  
            private const UNIQUEID:int = getTimer();     
        private const YAHOOAPIKEY:String = "Yahoo  app key";     
        private const MAPSWF:String = "as2map.swf";
            private var latLonController:LatLonController;
      private var mapController:MapController;
                  private var service:HTTPService;
                                        public function GetMines(url:String):void
              {
                                    service = new HTTPService();
                                    service.url = url;
                                    service.addEventListener(ResultEvent.RESULT, resultHandler);
                                    service.send();
                                                 }
              private function resultHandler(event:ResultEvent):void
            {
                var result:ArrayCollection = event.result.Mines.Mine as ArrayCollection;    
                        var i:int;
                         for(i = 0; i <  result.length; i++)
                         {
                                    fillLatLong(result.getItemAt(i));
                                                             }  
            }
            private function fillLatLong(test:Object):void
            {
                var sName:String;
                var sPlace:String;
                var sState:String;
                var sCountry:String;
                sName = test.Name;     
                sState = test.State;
                sCountry = test.Country;
                                sState = sState+ ", " + sCountry;
                                 var markerArgs:Object = {index:'A!', title:sName,description:sState, markerColor:0xff0000, strokeColor:0xDFDFDF};               
                 latLonController.addMarkerByLatLon("CustomPOIMarker",Number(test.Lat), Number(test.Long),markerArgs);      
            }
                        private function init():void {     
              myAS2Map.addEventListener('onMapLoad', onMapLoaded);     
              myAS2Map.addEventListener('onMapError', onMapError);      
           }     
                            private function onMapLoaded(ev:Object):void {     
              var panTools:PanTool = new PanTool(myAS2Map);    
                panTools.setPanTool(true);   
                        mapController = new MapController(myAS2Map);
                                  var widgets:Widgets = new Widgets(myAS2Map);     
              widgets.showNavigatorWidget();     
              widgets.showSatelliteControlWidget();
                        latLonController = new LatLonController(myAS2Map);
            GetMines("http://www.jewelinfo4u.com/utils/GetMines.aspx "); 
                                                                                                                        }     
                            private function onMapError(errorCode:String, httpStatus:String):void {     
              Alert.show(errorCode + '\n' + httpStatus, 'Load Error');     
           }    
     ]]>     
 

           
               
                   
 
       
 

posted @ Friday, October 17, 2008 9:26 AM | Feedback (0)

Saturday, June 21, 2008

Tourmaline

posted @ Saturday, June 21, 2008 7:18 AM | Feedback (1)

Tanzanite

posted @ Saturday, June 21, 2008 7:17 AM | Feedback (4)

Ruby

posted @ Saturday, June 21, 2008 7:15 AM | Feedback (1)

Peridot

posted @ Saturday, June 21, 2008 7:14 AM | Feedback (0)

Lapis Lazuli Video

posted @ Saturday, June 21, 2008 7:11 AM | Feedback (0)

Agate Video

posted @ Saturday, June 21, 2008 7:09 AM | Feedback (0)

Wednesday, June 18, 2008

Opal Video

Opal Video... Courtesy: http://www.opalzone.com

posted @ Wednesday, June 18, 2008 5:14 AM | Feedback (1)

Sapphire Video

Blue star sapphire video... courtesy : apsara.co.uk

posted @ Wednesday, June 18, 2008 5:11 AM | Feedback (3)

Saturday, June 14, 2008

World Most famous diamonds

CARATS  NAME  COLOUR  SHAPE  ORIGIN  OWNER   
545.67 Golden Jubilee  Gold brown  Cushion  South Africa  King of Thailand 
530.2 Cullinan I  White  Pear  South Africa  English Crown 
407.48 Incomparable  Yellow brown  Triolette  Africa  For sale NY 1988 
317.4 Cullinan II  White  Cushion  South Africa  English Crown 
237.85 Centenary  White  Heart  South Africa  De Beers   
245.35 Jubilee  White  Cushion  South Africa  Paul-Louis Weiller 
234.5 De Beers  Light yellow  Cushion  South Africa  Sold in Geneva in 1982 
205.07 Red Cross  Yellow  Square brill  South Africa  Sold in Geneva in 1973 
200.87 Without Name  Yellow  Pear  Polished in NY 
190 Darya-I-Nur  Light pink  Rectangular  India  Teheran   
189.6 Orlov  Whitish  Rose  India  Kremlin Museum 
184.5 Jacob-Victoria  White  Oval  South Africa  Nizam Hyderabad 
183 Moon  Pale yellow  Round  South Africa  Sold in London in 1942 
180.85 Without Name  Yellow  Broilette   
170.49 Star of Peace  Yellow brown  Pear  Private Collection 
160.18 Tablet of Islam  Black  Emerald  Diamond & Gem Corp. 
152.16 Without Name  Slightly tinted  Old cut  South Africa  Tehran   
151.91 Hope of Africa  Fancy yellow  Cushion  South Africa  Graff Di.London 
150 Without Name  Yellow  Emerald  SIBA   
141.23 Without Name  Pear  Private collection 
140.5 Regent  Blue white  Cushion  India  Louvre-Paris 
137.82 Paragon  White  Kite  Brazil  Graff Di.London 
137.27 Florentine  Pale yellow  Double rose  India  Stolen    
137.02 Premier Rose  White  Pear  South Africa  Sold in 1979 
135.92 Queen of Holland  Blue white  Cushion  India  Sold in 1978 
135.45 Without name  Cape  Cushion  South Africa  Teheran   
135.03 Algeiba Star  Yellow  Old brill.  South Africa  Private collection 
132.42 Golden Hue  Yellow  Cushion  South Africa  Sold In Geneva in 1983 
130 Great Brazilian  White  Brazil  -  
128.8 Star Of South  White  Oval  Brazil  Rustomjee Jamsetjee  
128.51 Tiffany  Yellow  Cushion  South Africa  Tiffany NV 
128.25 Niarchos  White  Pear  South Africa  Stavros Niarchos 
127.02 Portuguese  White  Cushion  Brazil  Smithsonian  
126.76 Light of peace  White  Pear  Sierra Leone  Private collection 
125.35 Jonker  White  Emerald  South Africa  Private collection 
123.93 Without name  Light white  Cushion  South Africa  Teheran   
123 Stewart  Yellow  Brilliant  South Africa   
116.6 Vainer Briolette  Yellow  Briolette  South Africa  Sultan of Brunei 
115.06 Taj-I-Mah  White  Old cut  India  Teheran   
115 Edna Star  White  Emerald   
114.03 Without name  Yellow  Cushion  South Africa   H. Winston 
111.59 Earth Star  Brown  Pear  South Africa  Private collection 
107.46 Rojtman  Yellow  Cushion  South Africa  Stephen Zbova 
107.1 Without name  Brown  Cushion  Private collection 
107.07 Cartier  White  Pear  South Africa  Private collection 
105.6 Koh-I-Noor  White  Oval  India  English Crown 
105.54 Golden sun  Yellow  Emerald  Private collection 
105.51 Star of Egypt  White  Emerald  India  Private collection 
104.88 Deepdene  Yellow  Cushion  South Africa  Harry Winston 
104.15 Chrysanthenum  Pear  South Africa  Julius Cohen 

posted @ Saturday, June 14, 2008 7:28 AM | Feedback (2)

Powered by: