Has anyone worked with the MMap component in HTML5Builder? The documentation says that the map can be referenced in JavaScript my using the componentname_map but that object does not exist in the DOM. I have used FireBug to try and snoop out the global variable to no luck. Has anyone used the map and how do you reference it in code?

Has anyone worked with the MMap component in HTML5Builder? The documentation says that the map can be referenced in JavaScript my using the componentname_map but that object does not exist in the DOM. I have used FireBug to try and snoop out the global variable to no luck. Has anyone used the map and how do you reference it in code?

Thanks,
Jim

Comments

  1. There is an html5builder update that contain a fix about mmap component.
    HTML5 Builder XE3 Update 1 at http://edn.embarcadero.com/article/42728.
    Bug fixes should be include: "The map object in GoogleMap and MMap is now globally available."
    i try to download it ...

    ReplyDelete
  2. ok, finally it worked.
    Example component name : MMap1
    //inizialize map
    MMap1_map.panTo(new google.maps.LatLng(latitude, longitude));
    // set a marker on the map
    var marker = new google.maps.Marker({ map: MMap1_map });
    marker.setPosition(new google.maps.LatLng(latitude, longitude));

    ReplyDelete
  3. After the update, I am having better luck with the component as well.

    ReplyDelete

Post a Comment