Hi hong007, Thanks for your message.
This works great at getting my map monochrome but I would really like to get the map style as scripts working. Thanks you. On May 28, 2:29 am, hong007 <[email protected]> wrote: > It is a sorry Korean site. > You understand it if you watch an image. > http://cafe.naver.com/gisapplication/37 > > Source of Flex > > public function MapColorMode(nMode:Number):void > { > var spriteGMap:Sprite; > var mat:Array; > var colorMat:ColorMatrixFilter; > if (nMode == 0) > mat=[0.3086,0.6094,0.082,0,0,0.3086,0.6094,0.082,0,0,0.3086,0.6094,0.082,0,0,0,0,0,1,0];// > Monochrome Mode > else mat=[nMode,0,0,0,0, 0,nMode,0,0,0, 0,0,nMode,0,0, > 0,0,0,nMode,0]; > colorMat = new ColorMatrixFilter(mat); > var a:Sprite = Application.application.map.getChildAt(1) as > Sprite; > spriteGMap = a.getChildAt(0) as Sprite; > spriteGMap.filters = [colorMat]; > } > > 1. DEFAULT colors : MapColorMode(1); > 2. Monochrome background : MapColorMode(0); > 3. The light and shade is slightly bright : MapColorMode(1.3); or > MapColorMode(1.5); > 4. Example : StyledMaps (...simplest way to achieve a similar > effect...only need to change map colors...) > mat=[0.662904905678828,0.619009250252693,-0.281914155931521, > 0, 0, 0.115722647986765, > 0.738062820513036, 0.146214531500198,0, > > 0,0.44450851034143,0.11345679523423,0.442034694424339,0,0,0,0,0,1,0]; > > ■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□ > 카페 :http://cafe.naver.com/gisapplication > 싸이월드:http://www.cyworld.com/srhong007 > ■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□■□ -- You received this message because you are subscribed to the Google Groups "Google Maps API For Flash" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api-for-flash?hl=en.
