So, after sending this email, I got the correct incantation, and it
was as simple as adding to my definition the line:
ex:mapConstructor="myMapConstructor"
So now I have that working. However, I'd still like to use the
various settings defined in my ex: settings, like zoom... In my div,
how can I grab the values of the various settings? I was trying to
do:
function myMapConstructor(div) {
var map = new GMap2(div);
map.setCenter(new GLatLng(35.21196570103912,
-80.95001220703125), Exhibit.MapView._settings.zoom);
map.setMapType(G_NORMAL_MAP);
return map;
}
]]>
To get the ex:zoom value. I am thinking of changing the call to
myMapConstructor to hand in the settings object, but that seems icky.
Eric
On Jan 12, 11:55 am, Eric Pugh <[email protected]>
wrote:
> Hi all,
>
> I am looking at this
> thread:http://groups.google.com/group/simile-widgets/browse_thread/thread/e1...
>
> And trying to figure out how to get my custom Google Map into
> Exhibit. Right now it works outside of Exhibit, but I want to
> leverage it inside. For Timeline I did a custom constructor, but
> dont' seem to be getting it to work the same way with a Google
> Map..... Any pointers to a sample?
>
> Eric
>
> -----------------------------------------------------
> Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467
> |http://www.opensourceconnections.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---