Google Map Customizing into Pano2VR

Using Pano2VR/Object2VR SWF files with your own Flash projects
Post Reply
User avatar
hum@no.id
Posts: 945
Joined: Sat Sep 09, 2006 10:35 pm
Location: Dark side of the Moon
Contact:

Hi all!
well... GM show into P2VR... it's good - http://www.mmgfx.com/rs02_.swf
with simple code via external connect (from http://code.google.com/intl/en/apis/map ... flash.html)

Code: Select all

import com.google.maps.controls.MapTypeControl;
 import com.google.maps.controls.ZoomControl;
       import com.google.maps.InfoWindowOptions;
       import com.google.maps.LatLng;
       import com.google.maps.Map;
       import com.google.maps.MapEvent;
       import com.google.maps.MapMouseEvent;
       import com.google.maps.MapType;
       import com.google.maps.overlays.Marker;
       import com.google.maps.overlays.MarkerOptions;
       import flash.display.Sprite;
       import flash.events.Event;
       import flash.geom.Point;
      var map:Map = new Map();
var marker:Marker;  // marker
//map.addControl(new ZoomControl());  // zoom
//map.addControl(new MapTypeControl());// map type
map.key = "Y_KEY";

map.setSize(new Point(stage.stageWidth, stage.stageHeight));
map.addEventListener(MapEvent.MAP_READY, onMapReady);
this.addChild(map);
function onMapReady(event:Event):void {
  map.setCenter(new LatLng(51.128829,71.427108), 14, MapType.NORMAL_MAP_TYPE);
  // marker
    var marker = new Marker(new LatLng(51.128829,71.427108), new MarkerOptions({
     strokeStyle: {color: 0x000000,alpha: 1},
     fillStyle: {color: 0xFFFFFF,alpha: 0.6},
     label: "o",
     labelFormat: {bold: true},
     tooltip: "This is a marker",
     radius: 24,
     hasShadow: true,
     clickable: true,
     draggable: false,
     gravity: 0.5,
     distanceScaling: false
   }))
               marker.addEventListener(MapMouseEvent.CLICK, onClick);
               map.addOverlay(marker);
}
function onClick(e:Event):void {
                  marker.openInfoWindow(new InfoWindowOptions( { content:"enter" } ));
           }
Can someone show me a working by *.FLA Gmap simple example with custom bitmap (png) buttons: zoom in \ out, def. center\ pan left\right\up\down (and maybe zoom slider)???
Any help would be greatly appreciated!

tips - http://gmaps-samples-flash.googlecode.c ... ustom.html

Flash GURU!!! please help
Thnx
Gumir J | VR Panoramic Photographer | mobile: +77055717171 | skype: gumirj
website: gumirj.com | google.com/+gumirj | facebook.com/gumirj | twitter.com/gumirj
chinaisme
Posts: 8
Joined: Mon May 30, 2011 12:16 pm
Contact:

so good! :D
Post Reply