if you got the solution ignore my reply....

your doing operations with map before it's adding to the
stage(something like adding controls or calling map methods)...


On Jun 25, 2:38 am, micho8402 <[email protected]> wrote:
> HI
>
> I'm getting this error when i try to set a center position or a place
> marker into a map control:
>
> Error: Object not initialized
>         at com.google.maps.wrappers::Wrapper$/checkValid()
>         at com.google.maps.wrappers::IMapWrapper/setCenter()
>         at single_geomap/onMapPreinitialize()[D:\Projects\Pixerilis\GMapViewer
> \src\single_geomap.mxml:53]
>         at single_geomap/__fGMap_mapevent_mappreinitialize()[D:\Projects
> \Pixerilis\GMapViewer\src\single_geomap.mxml:16]
>
> I'm developing on flex, inside the initialize method of the map
> control i'm just loading values from a xml file and trying to set
> those values as latitude, longitude and zoom for map center like this:
>
> var _CenterLatitude:Number = _Xml.CenterLat;
> var _CenterLongitude:Number = _Xml.CenterLong;
> var _Zoom:int = _Xml.Zoom;
>
> fGMap.setCenter(new LatLng(_CenterLatitude, _CenterLongitude), _Zoom,
> MapType.NORMAL_MAP_TYPE);
>
> I don't have two maps on the mxml or any other events related to the
> map control... IT'S JUST THAT !
>
> This is the mxml tag:
>
> <maps:Map id="fGMap" key="ABQIAAAAchDHojXJR-
> pSAaigKssV0RT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSzc_cPviakGcsS2EB-OVn6WT1OGA"
>                 width="530" height="350" x="0" y="120"
>                          
> mapevent_mappreinitialize="onMapPreinitialize(event)"/>
>
> Can anyone help me on this one please ?
>
> thanks a lot.

-- 
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.

Reply via email to