Thank you James, indeed I was working on my local development
system... I will try uploading the scenario online and see wht
happens, but already I'm very confident that what you say will solve
my problem!
Thanks a lot!

ben


On 9 Giu, 12:03, James McGill <[email protected]> wrote:
> Hi Ben,
>
> You should pass a URL to the KMLLayer constructor, and use your .NET
> application to dynamically generate a valid HTTP response containing the KML
> data when that URL is accessed. The URL must be publicly accessible via the
> web, so this will not work if you are working on a local development
> instance.
>
> Try loading the URL directly and verifying that it outputs a valid KML file
> with the correct mime-type. You can use Google Earth to open the KML file
> locally.
>
> Regards,
> James
>
> On Wed, Jun 9, 2010 at 7:00 PM, benedetto.bozano <[email protected]
>
> > wrote:
> > Ciao Davide,
>
> > thank you for your reply. I use .NET as programming environment, and
> > I've been able to create an output response stream with the correct
> > MIME type; I'm sure that the size and the number of features are
> > inside the allowed limits, since at this stage I'm just making simple
> > tests. However, I don't know how to use this response in the KML Layer
> > constructor...
> > In mi .NET application I have an HTTPHandler which retrieves desired
> > data from db, creates the KML string and sends back the response with
> > the correct MIME type... Should I put the HTTPHandler path as URL in
> > the constructor parameter? I tried that, but with no success... I also
> > tried retrieving the KML string as return value of a jQuery ajax
> > callback, and then passing that to the KML Layer constructor, again
> > without success...
> > Yes, I'm thinking about using Fusion Tables, however, if possible, I'd
> > like to go on with this approach...
> > ciao
>
> > On 9 Giu, 09:54, Davide Cremonesi <[email protected]> wrote:
> > > Ciao Benedetto,
> > > I used the same approach with an application written in java in the
> > > AppEngine.
> > > In that case I have a JSP page which outputs the KML (actually KMZ)
> > > dinamically.
> > > You should be able to do the same in any other language (PHP, phyton,
> > cgi):
> > > produce the KML in memory and write it to output. Pay attention to:
> > > - declare the correct Mime type
> > > - the number of features must be less then 10000
> > > - the size of the KML content must be less then 10 Mb
>
> > > Hope it helps,
> > > Davide
>
> > > PS Have you considered usign FusionTables layer? They are quite powerful
> > for
> > > filtering data dynamically.
>
> > > 2010/6/9 benedetto.bozano <[email protected]>
>
> > > > Hi all,
>
> > > > I have a database containing several paths, each with its lat/long
> > > > points. I need to retrieve a subset of these paths and display it on a
> > > > map. I thought of using a KML Layer to do this, but apparently I need
> > > > a phisical KML file stored on my web server to pass as a parameter to
> > > > the constructor. Of course in my scenario this is not the case, since
> > > > the best I can do is to build a properly formatted in-memory KML
> > > > string with the results I'm interested in. But then so far I did not
> > > > find a way to consume this data...
> > > > Is there another way to do this?
>
> > > > Many thanks in advance to anyone that can help!!!
>
> > > > ben
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Google Maps JavaScript API v3" group.
> > > > To post to this group, send email to
> > > > [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected]<google-maps-js-api-v3%[email protected]>
> > <google-maps-js-api-v3%[email protected]<google-maps-js-api-v3%[email protected]>
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Maps JavaScript API v3" group.
> > To post to this group, send email to
> > [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-maps-js-api-v3%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-maps-js-api-v3?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to