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
Thanks,
Jim
There is an html5builder update that contain a fix about mmap component.
ReplyDeleteHTML5 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 ...
ok, finally it worked.
ReplyDeleteExample 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));
After the update, I am having better luck with the component as well.
ReplyDelete