No problem.

You need to pass "?sensor=true" if you are using a mobile device that
requests a user's location, like so:

<script src="http://maps.google.com/maps/api/js?sensor=true";
type="text/javascript"></script>

Just define this once (in your case, in your MasterPage)

If you want to read more on this, please see:
http://code.google.com/apis/maps/documentation/javascript/basics.html#DetectingUserLocation

Cheers

On Jun 22, 1:52 pm, AngelicCore <[email protected]> wrote:
> thank you very much pete. I'll be looking at these solutions next.
> One last question please, my site includes GPS, but it's just an
> option for demonstration because it requires an external gps unit
> which isn't very common i believe.
> Do i have to call the sensor = true part
> and if i do, do i have to do it all the time or just when the user
> calls the gps function or just never.
> thanks :)
>
> On Jun 22, 5:33 am, pete <[email protected]> wrote:
>
> > AngelicCore,
>
> > Firstly, in your .NET MasterPage, you can reference files with a root
> > path, so it works inside other directories.
> > <script src="/Scripts/GMaps.js" type="text/javascript"></script>
> > or
> > <script src="~/Scripts/GMaps.js" type="text/javascript"></script>
>
> > Secondly, Everytime I've wanted to inject AJAX to an infoWindow, I use
> > the CustomInfo Window class, as it offers much more control
> > See 
> > here:http://gmaps-samples-v3.googlecode.com/svn/trunk/infowindow_custom/in...
>
> > Now, say you write a custom AJAX function to return the HTML markup
> > for your rating system (e.g. from an ASHX handler).
> > You can then call the function (let's call it getRating()) Inside the
> > following method
>
> > InfoBox.prototype.draw = function() {
> >     ...
> >     ...
> >     getRating();
>
> > }
>
> > This function will only fire when an infoWindow is invoked, so using a
> > technique similar to this, you can get & inject HTML via ajax to your
> > infoWindow
>
> > Hope this helps you somewhat
>
> > Thanks
> > Pete
>
> > On Jun 22, 4:25 am, AngelicCore <[email protected]> wrote:
>
> > > thanks for the link larry.
>
> > > On Jun 21, 8:28 pm, "[email protected]" <[email protected]>
> > > wrote:
>
> > > > On Jun 21, 9:40 am, AngelicCore <[email protected]> wrote:
>
> > > > > it's alright, thanks for your help though
> > > > > Anyone else? :)
>
> > > > There was a similar question on the v2 
> > > > group:http://groups.google.com/group/google-maps-api/search?group=google-ma...
>
> > > > It may help you.  Without a link to your map, from what you have
> > > > posted, and without a link to your map, I can't.
>
> > > >   -- Larry
>
>

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