Hey jack-
Not sure what's the problem exactly; hard to tell with partial code.
Here are a couple tips:
- Use the onMapPreinitialize event to set the center (docs here:
http://code.google.com/apis/maps/documentation/flash/basics.html#MapOptions)
- Set the position of the OverviewMapControl using position in
OverviewMapControlOptions instead of setControlPosition (our docs are
outdated for control positions).
- pamela
On Thu, Oct 16, 2008 at 12:04 PM, jackdee <[EMAIL PROTECTED]> wrote:
>
> I have a flex google map that i created using the code in the demo
> with an onMapReady function of
>
> private function onMapReady(event:Event):void {
> map.enableScrollWheelZoom();
> map.enableContinuousZoom();
> map.addControl(overview);
> overview.setSize(new Point(165,165));
> overview.setControlPosition(new
> ControlPosition(ControlPosition.ANCHOR_BOTTOM_RIGHT,2,2));
> map.setCenter(new LatLng(-33.87205, 151.203874),14,
> MapType.NORMAL_MAP_TYPE);
> map.addControl(new (zoomControl));
> }
>
> I have a doGeocode function that Geocodes for me.
>
> When I first go into the map it sets to a zoom level of 14 smack ontop
> of Sydney Australia. If I try and zoom in or out the zoom works but
> the slider level on the zoom control duplicates. I.e. the marker at
> zoom level 14 remains there. As soon as I run a geocoding event I go
> back to a single zoom slider level and clicking on the slider level is
> ok. I think it's something to do with my map.setCenter function
> above but I can't seem to prevent it happening.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API For Flash" 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/google-maps-api-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---