Hi,
My entire code for this view is:
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:supportClasses="spark.skins.mobile.supportClasses.*"
xmlns:valueObjects="valueObjects.*"
xmlns:population="services.population.*"
xmlns:country="services.country.*"
xmlns:maps="com.google.maps.*"
xmlns:mx="http://www.adobe.com/2006/mxml"
title="map">
<maps:Map xmlns:maps="com.google.maps.*" url="http://code.google.com/
apis/maps/" x="237" y="190" id="map"
mapevent_mapready="onMapReady(event)"
width="100%" height="100%" key="98765432123"
sensor="false"/>
url="http://code.google.com/apis/maps/"
<mx:Script>
<![CDATA[
import com.google.maps.LatLng;
import com.google.maps.Map;
import com.google.maps.MapEvent;
import com.google.maps.MapType;
private function onMapReady(event:Event):void {
this.map.setCenter(new LatLng(40.736072,-73.992062), 14,
MapType.NORMAL_MAP_TYPE);
}
]]>
</mx:Script>
<!-- Place non-visual elements (e.g., services, value objects)
here
-->
</s:View>
My inspiration was:
http://sheetalnilwant.wordpress.com/2010/12/04/google-maps-api-using-flash-builder-burrito/
and
http://code.google.com/apis/maps/documentation/flash/tutorial-flex.html
I found many samples, but nowhere mentioned that i do not need Key.
How to contact Google Maps team to ask?
It is specific, when i create "stand alone" application which runs on
tablet.
Thanx for any help.
Mitja
On May 23, 10:12 pm, Daniel <[email protected]> wrote:
> What does your MXML look like for your map object? Do you have the url
> property declared?
>
> url="http://code.google.com/apis/maps/" key="*your_api_key*"
> sensor="*true_or_false*"
>
>
>
>
>
>
>
> On Mon, May 23, 2011 at 10:12 AM, Mitja <[email protected]> wrote:
> > Not working :(
> > "Initialization failed: please specify an API or client id" when using
> > "Map3D" component.
> > If using "Map" component is says "Initialization failed: prese specify
> > an application URL"
>
> > I entered 643765(random number) as key.
>
> > Any idea?
>
> > Mitja
>
> > On May 23, 5:19 am, Daniel <[email protected]> wrote:
> > > You don't need a api key for mobile apps. I uses a generic number and it
> > > works fine. Maybe try using false or some random numbers.
>
> > > On Sun, May 22, 2011 at 9:17 AM, Mitja <[email protected]> wrote:
> > > > Hi,
>
> > > > I am developing application for BlackBerry Playbook with Flex (Flash
> > > > Builder 4.5).
>
> > > > I am trying to embed Google maps, but I need API key.
>
> > > > When signing for it, it says I have to enter URL of my page… but it
> > makes
> > > > no sense when my app runs on tablet.
>
> > > > Does anyone knows, how to obtain Key for Blackberry tablets? I found
> > > > know-how only for ipad and Android so far.
>
> > > >http://code.google.com/apis/maps/signup.html
>
> > > > --
> > > > 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.
>
> > --
> > 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.
--
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.