hmm very odd since I am doing the same thing. Could you do me a favor and send me the flex project so I can test it on my machine. Are you using IE, FF???
thx r On Mon, Mar 7, 2011 at 12:49 PM, Daniel <[email protected]> wrote: > This worked just fine. I used a switch statement to rotate through the > different view modes to check each one. I did notice that I had some > performance issues when I went from perspective to orthogonal. I thought > this was a little odd since I thought that orthogonal had less overhead. > Check it out and see if it was just my computer at the time. > > vewMode is an int -- so if you want to see what the current view mode is I > wrote the viewMode type next to each case in the switch statement. > > protected function changeView_clickHandler(event:MouseEvent):void > { > switch(map.viewMode) > { > case 0://2D > map.viewMode = View.VIEWMODE_PERSPECTIVE; > //This is a label I had on the stage to I can see > what the current view mode is > mapStatus.text = map.viewMode.toString(); > break; > case 1://PERSPECTIVE > map.viewMode = View.VIEWMODE_ORTHOGONAL; > mapStatus.text = map.viewMode.toString(); > break; > case 2://ORTOHOLOGICAL > map.viewMode = View.VIEWMODE_2D; > mapStatus.text = map.viewMode.toString(); > break; > default: > mapStatus.text = "invalid view mode"; > } > } > > On Mon, Mar 7, 2011 at 6:10 AM, Ralph Krausse <[email protected] > > wrote: > >> thanks, I appreciate that. It would be great if I could get this >> working... >> >> On Fri, Mar 4, 2011 at 5:55 PM, Daniel <[email protected]> wrote: >> >>> okay. I'll try it later and see if I can change the map type >>> programically >>> On Mar 4, 2011 2:54 PM, "Ralph Krausse" <[email protected]> >>> wrote: >>> > Flex >>> > >>> > On Fri, Mar 4, 2011 at 10:42 AM, Daniel <[email protected]> wrote: >>> > >>> >> Are you using flash or flex? >>> >> On Mar 4, 2011 4:13 AM, "Ralph Krausse" <[email protected]> >>> >> wrote: >>> >> > I tried that but the map doesn't change. I didn't want to re-new an >>> >> object. >>> >> > I was hoping that switch would work but didn't know if I was missing >>> >> > something. >>> >> > >>> >> > thx >>> >> > r >>> >> > >>> >> > -- >>> >> > 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. >>> >> > >>> >> >>> >> -- >>> >> 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. >>> >> >>> > >>> > -- >>> > 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. >>> > >>> >>> -- >>> 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. >>> >> >> -- >> 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. >> > > -- > 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. > -- 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.
