Google map use afcs

I have problem.
I whrite like http://demo.ashorten.com/gmapcocomo/ .
Use afcs share google map in same room.
But I have to  create new room first ,and  enter my create room.
example: I create first room ,name is new. After enter room(new),I can look map and if other people come in, I change LatLng and  their map also
change.Like URL.
But when I create second room or more, map can't show.Only first room can use. I don't know why.
I create room anyone collectionNodes  have ShareMap.
thx.
map code:
<?xml version="1.0" encoding="utf-8"?>
<SuperPanel xmlns="net.brandonmeyer.containers.*" xmlns:mx="http://www.adobe.com/2006/mxml" title="Google map"
allowClose="true" allowDrag="true" allowMaximize="true" allowMinimize="true" close="PopUpEffect.Hide(this);" allowResize="true"
width="550" height="400" fontSize="12" xmlns:rtc="AfcsNameSpace"
  xmlns:maps="com.google.maps.*"  >
<mx:Script>
  <![CDATA[
  import com.google.maps.services.GeocodingEvent;
  import com.google.maps.services.ClientGeocoder;
  import mx.events.ItemClickEvent;
  import mx.managers.PopUpManager;
  import com.google.maps.styles.FillStyle;
  import com.google.maps.styles.StrokeStyle;
  import com.google.maps.InfoWindowOptions;
  import com.google.maps.MapMouseEvent;
  import com.google.maps.overlays.Marker;
  import com.google.maps.overlays.MarkerOptions;
  import com.google.maps.MapZoomEvent;
  import com.google.maps.controls.MapTypeControl;
  import com.google.maps.controls.ZoomControl;
  import com.google.maps.controls.PositionControl;
  import com.adobe.rtc.session.ConnectSession;
  import com.google.maps.MapMoveEvent;
  import com.google.maps.LatLng;
  import com.google.maps.MapEvent;
  import com.google.maps.MapType;
  import mx.controls.Alert;
  import session.session;
  protected var _sharedMapModel:SharedMapModel;
  private var marker:Marker;
  private var markerList:Array = new Array();
  private var zoomControl:ZoomControl = new ZoomControl();
  private var mapTypeControl:MapTypeControl = new MapTypeControl();
  private var positionControl:PositionControl = new PositionControl();
  private function init():void {
    auth.userName=session.session.user_name;
    cSession.roomURL="http://connectnow.acrobat.com/ncyumis/"+roomname;
  private function onMapReady(event:MapEvent):void {
    map.visible = false;
    this.map.setCenter(new LatLng(45.468799,9.188004),14, MapType.NORMAL_MAP_TYPE);
    addMapControls();
    setupSharedMap(); 
  private function addMapControls():void {
    map.addControl(zoomControl);
    map.addControl(mapTypeControl);
    map.addControl(positionControl);
  private function removeMapControls():void {
    map.removeControl(zoomControl);
    map.removeControl(mapTypeControl);
    map.removeControl(positionControl);
  private function setupMapListeners():void {
    map.addEventListener(MapMoveEvent.MOVE_END, onMapMoveEnd);
    map.addEventListener(MapZoomEvent.ZOOM_CHANGED, onMapZoom);
    map.addEventListener(MapEvent.MAPTYPE_CHANGED, onMapTypeChange);
  private function setupSharedMap():void {
    _sharedMapModel = new SharedMapModel();
    _sharedMapModel.subscribe("sharedMap");
    _sharedMapModel.addEventListener("subscribed",onSubscribed);
    _sharedMapModel.addEventListener("latLngChange",onPositionChange);
    _sharedMapModel.addEventListener("zoomChange",onZoomChange);
    _sharedMapModel.addEventListener("mapTypeChange",onMapTypeChanged);
    _sharedMapModel.addEventListener("markerChange",onMarkerChange);
  private function addMarkerToMap():void {
    marker = new Marker(map.getCenter(),new MarkerOptions({draggable:true,strokeStyle: new StrokeStyle({color: 0x000000}),fillStyle: new FillStyle({color: 0x0000FF, alpha: 0.8}),tooltip:ConnectSession.primarySession.userManager.getUserDescriptor(ConnectSession. primarySession.userManager.myUserID).displayName}));
    map.addOverlay(marker);
    marker.addEventListener(MapEvent.OVERLAY_MOVED, onOverlayMove);
    _sharedMapModel.marker = marker;
  private function onSubscribed(p_evt:Event=null):void {
    _sharedMapModel.removeEventListener("subscribed",onSubscribed);
    setupMapListeners();
    addMarkerToMap();
    map.visible = true;
  private function onMapMoveEnd(event:MapMoveEvent):void {
    _sharedMapModel.latLng = map.getCenter();
  protected function onPositionChange(p_evt:Event=null):void {
    map.removeEventListener(MapMoveEvent.MOVE_END, onMapMoveEnd);
    map.setCenter(_sharedMapModel.latLng);
    map.addEventListener(MapMoveEvent.MOVE_END, onMapMoveEnd);
  private function onMapZoom(event:MapZoomEvent):void {
    _sharedMapModel.zoomLevel = map.getZoom();
  protected function onZoomChange(p_evt:Event=null):void {
    map.removeEventListener(MapZoomEvent.ZOOM_CHANGED, onMapZoom);
    map.setZoom(_sharedMapModel.zoomLevel);
    map.addEventListener(MapZoomEvent.ZOOM_CHANGED, onMapZoom);
  private function onOverlayMove(event:MapEvent):void {
    _sharedMapModel.marker = marker;
  protected function onMarkerChange(p_evt:Event=null):void {
    markerList.push(_sharedMapModel.marker);
    for each (var currentMarker:Marker in markerList) {
    if (currentMarker.getOptions().tooltip == _sharedMapModel.marker.getOptions().tooltip) {
      map.removeOverlay(currentMarker);
    map.addOverlay(_sharedMapModel.marker);
  private function onMapTypeChange(event:MapEvent):void {
    _sharedMapModel.mapType = map.getCurrentMapType().getName();
  protected function onMapTypeChanged(p_evt:Event=null):void {
    map.removeEventListener(MapEvent.MAPTYPE_CHANGED, onMapTypeChange);
    switch (_sharedMapModel.mapType)
    case "Map":
      map.setMapType(MapType.NORMAL_MAP_TYPE);
      break;
    case "Satellite":
      map.setMapType(MapType.SATELLITE_MAP_TYPE);
      break;
    case "Hybrid":
      map.setMapType(MapType.HYBRID_MAP_TYPE);
      break;
    case "Terrain":
      map.setMapType(MapType.PHYSICAL_MAP_TYPE);
      break;
  public function searchAddress(addr:String):void
    var geocoder:ClientGeocoder = new ClientGeocoder();
      geocoder.addEventListener(GeocodingEvent.GEOCODING_SUCCESS,
    function(event:GeocodingEvent):void
            var placemarks:Array = event.response.placemarks;
            if (placemarks.length > 0)
              map.setCenter(placemarks[0].point);
              _sharedMapModel.latLng = map.getCenter();
    geocoder.addEventListener(GeocodingEvent.GEOCODING_FAILURE,
    function(event:GeocodingEvent):void
      Alert.show("Geocoding failed");
    geocoder.geocode(addr);
  ]]>
</mx:Script>
<rtc:AdobeHSAuthenticator id="auth"  />
    <rtc:RoomSettings autoPromote="true" roomBandwidth="auto" id="roomSettings"/>
    <rtc:ConnectSessionContainer visible="false" id="cSession" authenticator="{auth}" autoLogin="true" initialRoomSettings="{roomSettings}" />
<mx:HBox width="100%" height="24" verticalAlign="middle">
  <mx:TextInput id="searchStr" enter="searchAddress(searchStr.text)" width="250"/>
  <mx:Button label="Search" click="searchAddress(searchStr.text)" />
    </mx:HBox>
<maps:Map id="map" top="70" left="0" right="0" bottom="0" width="100%" height="100%"
  key="map Key"
  mapevent_mapready="onMapReady(event)" />
</SuperPanel>

Hi Cha Yi,
Is it possible you can share the example of the googlemap collaboration using Adobe LCCS? I am stuck at creating the MapSharedModel class...
Regards,
Tan

Similar Messages

  • How do you insert an image into a google map using a macbook?

    I am trying to put images into a Google map using my MacBook, but cannot seem to find any help. How do I insert an image into my Google map using my MacBook?

    Nothing complicated with your menu - very clear "ADD Image" but my menus are not as simple. Everytime I need to add an image I spend 5-10 minutes searching again. Wonder why so hard. I generally find Acrobat menus cryptic and unclear and I am big Adobe fan - use Illustrator, Photoshop, Dreamweaver, Premier, Fireworks etc - but Acrobat menus are like calculus in the dark.

  • Google maps uses to much computer power

    Hi,
    First I want to say that dont understand much about computers.
    So my problem is everytime I open the new google maps (using the latest chrome) in couple of minutes my computer becomes really how and I start hearing the fans going. I am using iStatsPro to look at some parameters and GPU goes up to 90 degrees celcius.
    I want to ask if this is normal?
    I study civil engineering and my hoppy is photography so I use photoshop, autocad, sketchup and at the same time have mails, itunes, skype and evernote open for exapme and I dont really the fans when I am using this programs and in my opinion they require much more power than google maps. (gave you this info just so that you know what I usually run)
    I play games from time to time like Guild Wars 2 and then I can hear the fans but this is normal
    My computer is the latest MacBook Pro 15" (the more powerful one).
    Sorry for my language and hope that I have given you guys enough informations.

    Chrome appears to be about the worst choice for Browsers in your situation. It has know problems including memory leaks.
    I suggest you switch to Firefox or Safari, and you will have much less trouble.

  • Google Map--Using Distance Measuring Tool

    Dear Everyone,
    I have created a Google Map with Multiple Markers, I want to now implement the distance measuring tool in it.
    The Scenario is this way,
    User Enters his location,
    Now User wants to find the distance between that particular entered location and a particular Marker.
    Distance between : User entered Location - Marker(already placed).
    KINDLY REPLY ME AS SOON AS POSSIBLE, EVEN YOU HAVE A LITTLE KNOWLEDGE ABOUT THE DISTANCE MEASURING IN GOOGLE MAP.
    Regards,
    Ashish Samant

    Hi There,
    Here is how you use the AjaxMapViewer component in Creator, not sure if you can use distance viewer etc with it
    http://www.netbeans.org/kb/samples/tapping-google-maps.html?me=1
    http://developers.sun.com/jscreator/learning/tutorials/2/ajaxmapviewer.html
    Thanks
    K

  • Find direction for address using google map using web Applet.

    Hi all,
    Please help me solve this .
    i want to see the (way)direction from office to account address in google map below each each contact details.
    i created a Account Web Applet, it is showing account address correctly
    http://maps.google.com/?q=%%%Bill_To_ADDR_Address1%%%,+%%%Bill_To_CITY_City%%%,+%%%Bill_To_COUNTRY_Country%%%
    But i want to see the direction from office, ..
    Thanks in Advance.
    [email protected]
    Uthaya.

    Hello,
    This is what you have to use as an example
    http://maps.google.com/maps?f=d&source=s_d&saddr=Collins+Street,+Melbourne,+Victoria,+Australia&daddr=Elizabeth+Street,+Melbourne,+Victoria,+Australia
    h5. This is the from address
    Collins+Street,+Melbourne,+Victoria,+Australia
    h5. This is the end location
    Elizabeth+Street,+Melbourne,+Victoria,+Australia
    What you will need to do is relace these values with %%%Bill_To_Addr_Address1%%% and so on

  • How to Find the Location in Google Maps using Latitude and Longitude

    Hai,
    I need to find the Location from Google Maps, which is match with the Latitude and Longitude values we are sending.
    This will be done by using pure java class i need, can anyone having the sample code for this.
    It's Urgent, please help me
    Expecting replies...

    Yes we were having the performance issues when it is getting locked? in this what i want to know
    why it happens suddenly?
    or what package this piece of code is calling?
    or is there any possiblity of system will degrade the performance like sys user etc...?
    where exactly i found the root cause for further analysis?
    so that next time onwards if particular objects is locking we come to know why it happens is there any logical false or how do we eliminate this issue last time?
    coz in our environment sometimes most of lockings are from the same table?
    pls let me know where i have to concentrate for debug and how to troubloshoot and reslove this
    sorry for the inconvience.. i m expecting the answer from here. if anybody wants some more info i ll let him know.
    as of till now i got some docs i start to read this.
    Regards
    M.Murali..
    Note: will system/sys degrade the performance ?if so how ?

  • How much data does google maps use

    how much data does google maos use ?

    That question has a lot of variables. If you are just looking up an address it should not using very much. If you are using  it for an 8 hour drive it will use quite a bit.

  • We are traveling to france in rural areas of brittany and want to know approx. how many megabytes does google maps use.

    HOw ow many megabytes does googles apps use?

    12.6 MBs according to iTunes Store where you can find the same information.

  • Can I use Google Maps in iPhone application and charge for it?

    I'm looking to create a location-based application for the iphone that uses a map to display locations. I'd like to use a UIWebView to display Google Maps using their javascript API which shows a map hosted on my web site.
    When my app is finished, can I charge for it in the App Store, or will this be a violation of the Google Maps API Terms of Use?
    Are there any other non-free iPhone apps that embed Google Maps?
    Thanks, Scott

    My interpretation of the following:
    Google Maps API Terms of Service wrote:
    The API may be used only for services that are generally accessible to consumers without charge. Accordingly, You may not use the API for any service that requires a subscription or other restricted access, or for which a fee is charged.
    ... is that there's no way you can charge for an app that uses the API.

  • Dynamically generated Google Map in new window

    I've got a detail page for restaurants and would like to have
    a "MAP IT"
    link that, when clicked, opens a map of the location in a new
    window,
    preferably using Google maps since I like them (but that's
    not critical).
    I've got the WebAssist extension but it will only embed the
    map and you have
    to enter the address to create it. so, my questions are:
    1. How can I generate a Google map using fields from my
    Recordset (I'd need
    at least street and zip but it's probably better to use the
    city and state
    too)?
    2. How can I have it open in a new browser window?
    An extension would be best and easiest, but I'm open to any
    possibility that
    doesn't require a degree in advanced rocket science.
    BTW, I have a Google Maps API for this site. I'm using PHP
    and MySQL.
    Thanks!
    Mad Dog

    "Mad Dog" <[email protected]> wrote in
    message
    news:f5hnhb$qrh$[email protected]..
    >I found the answer and it turned out to be simple. The
    info is here for
    >both Google maps and Yahoo maps, though a couple of
    things were confusing
    >(like what's with the "+" signs?):
    >
    http://www.gdsland.com/tutorial/googlemap.php
    >
    > Here's what I ended up using for Google and it works
    like a charm.
    >
    > <a href="
    http://maps.google.com/?q=loc:<?=$row_Recordset['street'
    > <?=$row_Recordset['city']?>,
    <?=$row_Recordset['state']?>
    > <?=$row_Recordset['zip']?>" target="new">MAP
    IT!</a>
    >
    > One thing that messed me up for a while is it turns out
    Google maps
    > doesn't like a "#" coming at it. It truncates the
    address at that point. A
    > test record I was using had that as a suite number so
    once I changed that
    > in the database all is well and good.
    I believe this is because the "#" is seen as the beginning of
    the "hash"
    value (location.hash)
    See
    http://www.tjkdesign.com/articles/locationobject.asp?who=MD&where=SF#boulange
    > Good work, Mad Dog!
    Yes indeed!
    Thierry
    Articles and Tutorials:
    http://www.TJKDesign.com/go/?0
    The perfect FAQ page:
    http://www.TJKDesign.com/go/?9
    CSS-P Templates:
    http://www.TJKDesign.com/go/?1
    CSS Tab Menu:
    http://www.TJKDesign.com/go/?3

  • Google map in internet explorer

    anybody out there that can help me embed a google map using dreamweaver cs4 that will display correctly in internet explorer?
    or any map for that matter!
    Running dreamweaver cs4 on a G5 imac

    google maps will not display in internet explorer, feel free to try it and prove me wrong
    Ok I will.  The following sites are using Google Maps and are all working for me in IE 8.0.6001.18702
    Burger King - http://www.bk.com/en/us/restaurant-locator/index.html
    Perkins - http://www.perkinsrestaurants.com/locations
    Outback - http://www.outback.com/restaurant/locations/
    Advance Auto Parts - http://shop.advanceautoparts.com/webapp/wcs/stores/servlet/StoreLocatorView?storeId=10151& catalogId=10051&langId=-1
    PF Changs - http://www.pfchangs.com/locations/
    University of Alabama - http://tour.ua.edu/dirmap.html
    TD Bank Garden - http://www.tdgarden.com/getting-here/index.html
    Do I really need to continue?  What is the issue you are having?  What version of IE?

  • Text a location with google maps?

    Hi:
    I just bought a iphone yesterday and I am curious if this is possible:
    Sending a message to someone (SMS) saying, lets meet at this location, and post a google maps link to that location so that person can click on it and go to that location online through google maps and look up directions on how to get there.
    That other person has an iphone too.
    Thanks.
    MP

    There is no URL provided with the Google Maps application but you could do this with Google Maps using Safari but the iPhone does not support copy/cut/paste at the present time anyway.

  • Google map plugin and multiple addresses

    I was wondering if it was possible to show 2 or more locations in the google maps plugin? Either have two non-labelled markers or the A,B,C marker system that google maps uses.
    Can this be done within the Google maps plugin within iWeb?
    Thanks.

    Can this be done within the Google maps plugin within iWeb?
    No, not with iweb.
    Either have two non-labelled markers or the A,B,C marker system that google maps uses.
    Yes, you can have as many placemark in google map with 'My Maps' (required to have google account).
    Once you have you map+placmarks, just copy+paste the code to your iweb page using HTML Snippet.
    You can do a lot more if you know how stuff work and mash them up. not just placemark but with photo thumbnail and geotag, etc... this is my example:
    http://www.cyclosaurus.com/iWeb2/AlumRock_Park_GoogleMaps.html

  • Google maps have been replaced by swinging sign

    I now have a swinging sign that says "Mobie Me Closed" where my Google Maps used to be.  Efforts to reset them have resulted in the same sign showing up.  I realize that IWeb did not migrate to the cloud, but this is rediculous.  I can put other Google apps on from the Widgets collection, but not maps.  What is going on and how do I correct this?

    All you do is go to Google maps and get the map you want and then you need to embed it into your website.  Just copy the resultant html code and then paste this in to an ordinary html snippet and click on Apply and you will get your map back.
    The Google map widget does not work because some of the info was stored on MobileMe which does not exist any longer, so the map widget does not work, but the solution is simple.
    Perhaps you should have searched this form first and you would have found the answer to this several times over if you had.

  • Google maps stopped working, & won't re-install

    My Goolge maps app suddenly decided to not open up. After restarting etc, I uninstalled it & try to re-install but I just get 'Online Certificate Check Failed'
    Any ideas please?
    Nokia N8 on Belle

    davej65 wrote:
    try to re-install but I just get 'Online Certificate Check Failed'
    Does this help?
    davej65 wrote:
    My Goolge maps app suddenly decided to not open up.
    Make sure not to disable Wi-Fi. If you disable Wi-Fi via the notification bar, Google Maps opens for a seconds and closes rigth away again. Google Maps uses the Wi-Fi API for detecting your location faster. Obviously, Google does not expect the Wi-Fi to be turned off.

Maybe you are looking for