Page 1 of 1

Google Map Customizing into Pano2VR

Posted: Sat May 14, 2011 4:32 pm
by hum@no.id
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

Re: Google Map Customizing into Pano2VR

Posted: Wed Jun 15, 2011 12:09 pm
by chinaisme
so good! :D