Re: [Google Maps API v3] Re: Infowindow

2019-02-15 Thread Michael Geary
This group was shut down years ago, but a few of us old-timers still
monitor it.

If a Maps API update broke your app, a likely reason may be that you were
using undocumented features.

Here is an example:

https://stackoverflow.com/questions/15395387/how-to-properly-use-google-maps-api/15395503#15395503

Beyond that, it's impossible for anyone to tell what the problem is, unless
you post a link to your map so we can look at it.

On Fri, Feb 15, 2019 at 1:46 AM Menghuy  wrote:

> Thank you very much for your reply
>
> On 15 Feb 2019 15:47, "ralfwessels"  wrote:
>
> Hi Menghuy,
>
>
> it is possible that the problems are related to the version change of the
> Google Maps API a few days ago.
> Try to use another (older) version to see if it helps.
> More information about the API versions you'll find here:
> https://developers.google.com/maps/documentation/javascript/versions
>
> --
> You received this message because you are subscribed to the Google Groups
> "[deprecated] Google Maps JavaScript API v3. Please use the latest post."
> group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-maps-js-api-v3+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-maps-js-api-v3@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "[deprecated] Google Maps JavaScript API v3. Please use the latest post."
> group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-maps-js-api-v3+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-maps-js-api-v3@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"[deprecated] Google Maps JavaScript API v3. Please use the latest post." group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/d/optout.


Re: [Google Maps API v3] Adding a google.maps.Map object to the DOM messes up web page's fonts

2017-11-26 Thread Michael Geary
I don't know if anyone can advise you without more information. What is
"mapscript.js", and what is the "MapControl" class? These are not part of
the Google Maps API.

There is a MapControl in the Bing Maps API; is that what you're referring
to? Or is this some wrapper around the Google Maps API?

The Google Maps API code is pretty careful to not interfere with other
styles on your page. But that doesn't help if this "mapscript.js" messes up
the styles.

On Sun, Nov 26, 2017 at 3:51 PM, Tom Tanner 
wrote:

> I currently have an `index.html` set up something like this:
>
> 
>   ... Load local CSS files ...
> 
> 
>  
>  
> 
>
> In my JS, I have this:
> var mapControl= new MapControl(mapControlForm, mapDiv);
>
> `mapDiv` is of course defined as 
> `document.getElementsByClassName("product")[0]`.
> When I load `index.html` in my browser, I see the fonts I set for a split
> second before they change. When I go to other pages on my site, my fonts
> work fine. When I remove the line of code defining `mapControl`, the fonts
> work, but the map does not load.
>
> How do I make sure my fonts don't get messed up when my browser loads the
> JS file that puts a GMap on the DOM?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-maps-js-api-v3+unsubscr...@googlegroups.com.
> To post to this group, send email to google-maps-js-api-v3@googlegr
> oups.com.
> Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/d/optout.


Re: [Google Maps API v3] streetview outage? (partially)

2017-07-30 Thread Michael Geary
This stopped being an official Google support channel several years ago.

I would use the Send Feedback link at the bottom of the sidebar menu on
maps.google.com to report the problem.

On Thu, Jul 27, 2017 at 11:33 PM, Z. Huang  wrote:

> Hi guys,
>
> I just noticed that Streetview service in google maps js api (v3) and
> google maps app are both having issues for some places (mostly not in US?).
>
> I am getting 404 responses for those locations whenever I try to open
> streetview by using pin man (or calling API). Same happening on google maps
> app, the screen becomes black and not responding at all. (I can see the
> same 404 responses in console, btw)
>
> A test address I tried just now: Whylandra St, Dubbo NSW 2830, Australia.
>
> Please take a look.
>
> Thank you
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-maps-js-api-v3+unsubscr...@googlegroups.com.
> To post to this group, send email to google-maps-js-api-v3@googlegr
> oups.com.
> Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/d/optout.


Re: [Google Maps API v3] Can I use a third-party routing service with a Google Map?

2017-05-03 Thread Michael Geary
In general, you can add just about anything you want to a Maps API map.

There are some conditions around this: for example, if you are using the
free access to the Maps API, then the additional content you provide must
also be free to the general public.

And of course you need to have legitimate access to whatever data you're
providing, including the right to display that data to your map's users.
But that's a matter between you and the data provider, not Google.

To learn more, read the Google Maps APIs Terms of Service
. In particular, search the page
for "*Your Content*", but you should definitely read the whole thing to
understand the terms.

And naturally, if in doubt, it is good to consult a lawyer. But the terms
are mostly written in plain English, not "legalese", so they are pretty
easy to understand.

On Wed, May 3, 2017 at 10:06 AM, Zachary Earle  wrote:

> I'd like to use Google Maps as the base layer for a project. However,
> instead of using their Directions API to draw a route on the map, I'd like
> to use a third-party service. Is this a violation of Google's Terms of
> Agreement? I'm aware that I cannot use Google Maps data without using a
> Google Map - but for the reverse situation - are there limitations on what
> 3rd party information I can display on a Google map?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-maps-js-api-v3+unsubscr...@googlegroups.com.
> To post to this group, send email to google-maps-js-api-v3@googlegr
> oups.com.
> Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/d/optout.


Re: [Google Maps API v3] Google Maps not resolving

2017-04-12 Thread Michael Geary
On Wed, Apr 12, 2017 at 7:23 AM, Kedar Dixit  wrote:

> Markers get plotted but map fails to render further.
> However map loads when we add an javascript alert to function where we
> load map.
>

This almost always means you are handling some asynchronous activity
incorrectly, e.g. you are assuming that some data is available before it is
ready. When you make an asynchronous server request (e.g. a $.ajax() call),
you can't assume that the data is available when the call *returns*. You
have to provide a callback function that will be called when the server
sends down the data.

In a quick skim of your code, I don't see any asynchronous calls. I suspect
that the problem is somewhere else in your code, in the part you didn't
show here.

Specifically, where in your code does the refreshMap1() function get
called, and what data is passed in for the srverfilteredarray parameter?

Also note that Maps API support has moved to Stack Overflow. This mailing
list doesn't get much activity an more. So you might want to post your
question on SO instead of here.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/d/optout.


Re: [Google Maps API v3] Google maps dot display

2016-07-18 Thread Michael Geary
Sorry for the multiple messages! One last thing... The code on your test
page has both an initMap reference in the Maps API script tag and an event
listener for the 'load' event that references init_map.

If you're loading the Maps API asynchronously you should use only a
function reference in the Maps API script tag.

But why do you need to use the asynchronous loading at all? There's no
benefit to it the way you're using it. You could just load the Maps API
synchronously and make things a little simpler.

On Mon, Jul 18, 2016 at 5:06 PM, Michael Geary  wrote:

> Also, the version on your test page uses initMap in one place and init_map
> in another. Anyway, get familiar with the developer tools and you will be
> able to track these things down on your own. Happy hacking!
>
> On Mon, Jul 18, 2016 at 5:04 PM, Michael Geary  wrote:
>
>> The HTML and JavaScript on your test site is very different from the code
>> you listed. The script tags are in a different order, and there are spaces
>> in the Maps API script URL.
>>
>> If you use the actual code you listed in your message it should work.
>>
>> But more important than that is to learn how to debug JavaScript code so
>> it won't be a mystery.
>>
>> Open the JavaScript console and look at the errors it shows. If you're
>> not familiar with the browser developer tools, it's time to learn them. For
>> Chrome, start here <https://developer.chrome.com/devtools>. Every
>> browser has similar tools.
>>
>> -Mike
>>
>> On Mon, Jul 18, 2016 at 2:53 AM,  wrote:
>>
>>> Hi I just tried out google maps on my website
>>>  http://www.frenchhouse.website/gmap.html
>>> But it wont work.
>>> This is the simple map sample with my api.
>>> 
>>>   
>>> 
>>>   #map {
>>> width: 100%;
>>> height: 400px;
>>>   }
>>> 
>>>   
>>>   
>>> My Google Maps Demo
>>> 
>>> 
>>>   function initMap() {
>>> var mapDiv = document.getElementById('map');
>>> var map = new google.maps.Map(mapDiv, {
>>> center: {lat: 44.540, lng: -78.546},
>>> zoom: 8
>>> });
>>>   }
>>> 
>>> https://maps.googleapis.com/maps/api/js?key=</a>
>>> AIzaSyAwRsfs4UeGT5iBr7yvffQ3SAcO6tLuBjk&callback=initMap">
>>> 
>>>   
>>> 
>>> Any help welcome thanks
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Maps JavaScript API v3" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-maps-js-api-v3+unsubscr...@googlegroups.com.
>>> To post to this group, send email to
>>> google-maps-js-api-v3@googlegroups.com.
>>> Visit this group at
>>> https://groups.google.com/group/google-maps-js-api-v3.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/d/optout.


Re: [Google Maps API v3] Google maps dot display

2016-07-18 Thread Michael Geary
Also, the version on your test page uses initMap in one place and init_map
in another. Anyway, get familiar with the developer tools and you will be
able to track these things down on your own. Happy hacking!

On Mon, Jul 18, 2016 at 5:04 PM, Michael Geary  wrote:

> The HTML and JavaScript on your test site is very different from the code
> you listed. The script tags are in a different order, and there are spaces
> in the Maps API script URL.
>
> If you use the actual code you listed in your message it should work.
>
> But more important than that is to learn how to debug JavaScript code so
> it won't be a mystery.
>
> Open the JavaScript console and look at the errors it shows. If you're not
> familiar with the browser developer tools, it's time to learn them. For
> Chrome, start here <https://developer.chrome.com/devtools>. Every browser
> has similar tools.
>
> -Mike
>
> On Mon, Jul 18, 2016 at 2:53 AM,  wrote:
>
>> Hi I just tried out google maps on my website
>>  http://www.frenchhouse.website/gmap.html
>> But it wont work.
>> This is the simple map sample with my api.
>> 
>>   
>> 
>>   #map {
>> width: 100%;
>> height: 400px;
>>   }
>> 
>>   
>>   
>> My Google Maps Demo
>> 
>> 
>>   function initMap() {
>> var mapDiv = document.getElementById('map');
>> var map = new google.maps.Map(mapDiv, {
>> center: {lat: 44.540, lng: -78.546},
>> zoom: 8
>> });
>>   }
>> 
>> https://maps.googleapis.com/maps/api/js?key=</a>
>> AIzaSyAwRsfs4UeGT5iBr7yvffQ3SAcO6tLuBjk&callback=initMap">
>> 
>>   
>> 
>> Any help welcome thanks
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Maps JavaScript API v3" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-maps-js-api-v3+unsubscr...@googlegroups.com.
>> To post to this group, send email to
>> google-maps-js-api-v3@googlegroups.com.
>> Visit this group at https://groups.google.com/group/google-maps-js-api-v3
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/d/optout.


Re: [Google Maps API v3] Google maps dot display

2016-07-18 Thread Michael Geary
The HTML and JavaScript on your test site is very different from the code
you listed. The script tags are in a different order, and there are spaces
in the Maps API script URL.

If you use the actual code you listed in your message it should work.

But more important than that is to learn how to debug JavaScript code so it
won't be a mystery.

Open the JavaScript console and look at the errors it shows. If you're not
familiar with the browser developer tools, it's time to learn them. For
Chrome, start here . Every browser
has similar tools.

-Mike

On Mon, Jul 18, 2016 at 2:53 AM,  wrote:

> Hi I just tried out google maps on my website
>  http://www.frenchhouse.website/gmap.html
> But it wont work.
> This is the simple map sample with my api.
> 
>   
> 
>   #map {
> width: 100%;
> height: 400px;
>   }
> 
>   
>   
> My Google Maps Demo
> 
> 
>   function initMap() {
> var mapDiv = document.getElementById('map');
> var map = new google.maps.Map(mapDiv, {
> center: {lat: 44.540, lng: -78.546},
> zoom: 8
> });
>   }
> 
> https://maps.googleapis.com/maps/api/js?key=
> AIzaSyAwRsfs4UeGT5iBr7yvffQ3SAcO6tLuBjk&callback=initMap">
> 
>   
> 
> Any help welcome thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-maps-js-api-v3+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-maps-js-api-v3@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/d/optout.


Re: [Google Maps API v3] How does geocode iterate ?

2016-03-09 Thread Michael Geary
That URL doesn't link to anything because of the disguised domain. But I
can tell you what is almost certain to be the problem: you have a loop that
iterates over an array of the marker locations, and inside the event
listener for a marker there's code that references "places[i]", assuming
that "places" is the name of that array and "i" is your loop variable.

The problem is that the "i" loop variable won't contain the value you
expect inside asynchronous event handlers.

The easiest way to fix this is to use a closure in your loop. It can be as
simple as changing your code from this:

for( var i = 0;  i < places.length;  i++ ) {
// Do stuff with "places[i]" inside this loop.
// But that doesn't work in asynchronous event listeners!
}

to this:

places.forEach( function( place ) {
// All of your code to add the marker, display the infowindow, etc.
goes here.
// Use "place" in this code instead of "places[i]".
// "place" is available in asynchronous event listeners inside this
function.
});

More information about this issue, including some more complicated ways of
creating the closure:

https://www.google.com/search?q=google+maps+javascript+closure

-Mike

On Wed, Mar 9, 2016 at 8:58 AM, Nix Eus  wrote:

> Hello,
>
>
> I'm trying to do a webpage in order to display severals pushpins. I'm
> passing on the url : Name+Adresse+Code.
>
>
> *-> My pushpins are correctly displayed :) *
>
>
> Then i'm trying to do InfoWindows() when clicked. I would like to display
> on this info Winfows the code and the name of the place clicked.
>
>
> My problem is i get always the same informations (same code+same name)
> when i click on the pushpins :(
>
>
> I really don't use javascript often, i think my error is very simple...but
> unable to find it with the debugger. I'm thinking is related in the Geocode
> call.
>
>
> i'm using Google Maps api v3 :
>
>
> You can call the url like this :
>
>
>
> http://XX/MutliMaps.html?q=myFirstPlace@BOULEVARD%20DE%20L%20OISE,%2095000,%20CERGYT=V0130151N=myFirstPlace&q=myFirstPlace@9%20rue%20Henri%20Dunant,%2091072,%20BONDOUFLET=P0001568N=mySecondPlace&q=myThirdPlace@ROUTE%20DE%20VILLEJUST,%2091620,%20NOZAYT=P0007752N=myThirdPlace
> 
>
>
> I use the debugger but don't really find my error :s
>
>
> Anyone can help me ?
>
>
> Thanks a lot,
>
>
> Regards,
>
>
> Nixeus
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-maps-js-api-v3+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-maps-js-api-v3@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/d/optout.


Re: [Google Maps API v3] google.maps.LatLng is not returning the coordinates. I am using version of google maps API 3.9.

2016-02-18 Thread Michael Geary
On Thu, Feb 18, 2016 at 10:27 AM, Michael Geary  wrote:

> You need to use position.lat() and position.lng() to retrieve the latitude
> and longitude instead of the undocumented position.K and position.G
> properties.


And similarly, of course, use cityPoints[i].center.lat() and
cityPoints[i].center.lng().

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/d/optout.


Re: [Google Maps API v3] google.maps.LatLng is not returning the coordinates. I am using version of google maps API 3.9.

2016-02-18 Thread Michael Geary
You're using undocumented internal properties that may change arbitrarily
whenever Google recompiles the Maps API code. You need to use the
documented Maps API methods instead.

In your containsLatLng() function, the position variable and each
cityPoints[i].center property are google.maps.LatLng objects. You need to
use position.lat() and position.lng() to retrieve the latitude and
longitude instead of the undocumented position.K and position.G properties.

Based on the commented-out code, it looks like you've already had to change
this once or twice to keep up with new versions of the Maps API.

If you think about it, does it make sense that Google would name the
latitude K and the longitude G, or other arbitrary letters, and expect you
to update your code when those names change? Of course not. :-)

Don't use Maps API properties that you discover in the JavaScript console.
Use only the documented methods for any Maps API object and these problems
will go away. You should also search your code for any other similar use of
undocumented properties and change them to use the documented methods.

On Thu, Feb 18, 2016 at 6:34 AM, 'Neetu Patel' via Google Maps JavaScript
API v3  wrote:

> HI Michael,
>Here is the information you requested.
>
>
> //containsLatLng function
>
>
> var containsLatLng = function (cityPoints, position) {
> var i = cityPoints.length;
> while (i--) {
>
> //if (cityPoints[i].center.A == position.A &&
> cityPoints[i].center.G == position.G) {
> if (cityPoints[i].center.K == position.K &&
> cityPoints[i].center.G == position.G) {
> return i;
> }
> //else if( cityPoints[i].center.H == position.H &&
> cityPoints[i].center.L == position.L )
> //{
> //return i;
> //
> }
> return -1;
> };
>
>
>
>
>
> //Data in msg variable.(See the attached file)
>
> //JS file whole (See the Attached file)
>
> its an intranet site , so can't post the link.(Attached please see the
> screenshot)
>
>
>
>
>
>
>
>
>
>> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-maps-js-api-v3+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-maps-js-api-v3@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/d/optout.


Re: [Google Maps API v3] google.maps.LatLng is not returning the coordinates. I am using version of google maps API 3.9.

2016-02-17 Thread Michael Geary
There's a lot missing from your posted code: the containsLatLng() function,
the data in the msg variable, any errors shown in the browser's JavaScript
console, etc.

It's going to be hard for anyone to guess what may be going wrong without
seeing more. Can you post a link to the map page that is failing?

On Wed, Feb 17, 2016 at 9:06 AM, 'Neetu Patel' via Google Maps JavaScript
API v3  wrote:

> It stops suddenly in last 2 days. Before it was working fine. I am using
> it in two places to find the marker position on map and the center of map
> as highlighted.  Please suggest.
>
> Following code I am using for your reference:
>  var ShowGlobalDonorMap = function (msg) {
> var mapOptions = {
> zoom: 4,
> center: new google.maps.LatLng(50.971804, 10.623779),
> mapTypeId: google.maps.MapTypeId.ROADMAP
> };
> var cityPoints = [];
> var map = new
> google.maps.Map(document.getElementById(mapcontainerdiv), mapOptions);
> var pointId = 0;
> amountMin = msg[0].Income_Amt;
> amountMax = msg[0].Income_Amt;
> for (var i = 0; i < msg.length; i++) {
> var position = new google.maps.LatLng(msg[i].Donor.LAT,
> msg[i].Donor.LNG);
> var existingId = containsLatLng(cityPoints, position);
> if (existingId > -1) {
> cityPoints[existingId].addr = cityPoints[existingId].addr
> + "|" + msg[i].Donor.DONOR_NAME;
> cityPoints[existingId].Total_Income =
> cityPoints[existingId].Total_Income + msg[i].Income_Amt;
> cityPoints[existingId].Income_Amt =
> cityPoints[existingId].Income_Amt + "|" + msg[i].Income_Amt;
> cityPoints[existingId].Income_Amt_Map =
> cityPoints[existingId].Income_Amt_Map + "|" + msg[i].Income_Amt_Map;
> cityPoints[existingId].code = cityPoints[existingId].code
> + "|" + msg[i].Donor.DONOR_CODE;
> cityPoints[existingId].totalPoints =
> cityPoints[existingId].totalPoints + 1;
> cityPoints[existingId].donorcategory =
> cityPoints[existingId].donorcategory + "|" + msg[i].Donor.DONOR_CATEGORY;
> }
> else {
> cityPoints[pointId] = {
> center: position,
> id: pointId,
> addr: msg[i].Donor.DONOR_NAME,
> Total_Income: msg[i].Income_Amt,
> Income_Amt: msg[i].Income_Amt,
> Income_Amt_Map: msg[i].Income_Amt_Map,
> code: msg[i].Donor.DONOR_CODE,
> pointType: 'rp',
> totalPoints: 1,
> donorcategory: msg[i].Donor.DONOR_CATEGORY
> };
> pointId++;
> }
>
> if (msg[i].Income_Amt < amountMin)
> amountMin = msg[i].Income_Amt;
> if (msg[i].Income_Amt > amountMax)
> amountMax = msg[i].Income_Amt;
> };
>
> var i = cityPoints.length;
> while (i--) {
> GenerateMapCircle(cityPoints[i], "", i, map,'Global');
>
> }
>
> //var legend = document.createElement('div');
> //legend.id = 'mapLegend';
> //var content = [];
> //content.push('>80%');
> //content.push('>60%');
> //content.push('>40%');
> //content.push('>20%');
> //content.push('<=20%');
> //legend.innerHTML = content.join('');
> //legend.index = 1;
> //
>  map.controls[google.maps.ControlPosition.RIGHT_BOTTOM].push(legend);
> };
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-maps-js-api-v3+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-maps-js-api-v3@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at https://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/d/optout.


Re: [Google Maps API v3] MAP not showing suddenly... only logo and markers!!!

2015-10-20 Thread Michael Geary
Johnny...

Version control, my friend, version control.

Stop everything you are doing, right now, and adopt a version control
system.

You could use Git, or you could use Mercurial. Either one is fine. Git is
far more popular - you may want to pick it for that reason. But Mercurial
is also very nice and can be easier to understand.

You can even try both and see which you like. Either way, don't use the Git
or Mercurial command line. Use one of the GUI clients that are available
for both. My favorite is SmartGit (which also works with Mercurial). But it
is a bit complex to get started with, because it offers so many features.
You might try starting with GitHub's desktop Git client (even if you don't
use Git), or TortoiseHg if you find you like Mercurial. SourceTree is also
very nice. (And don't overlook SmartGit; it's not *that* difficult, just is
so feature-filled that it looks complicated at first.)

Once you create a Git or Mercurial repository, you can use it with any
client, or with the command line, so you won't be locked into SmartGit or
SourceTree or the GitHub client.

Start with a practice project. Create a skeleton HTML page or PHP file,
with almost nothing in it. Commit that. ("Committing" means creating a new
revision in the version control system.) Make a little change and test it.
Commit that change. Another little change. Commit it. Add a script. Commit
that. Add a feature. Commit that. Try a little refactoring: rename a
function or something. Commit that too.

Are you getting the idea? Commit, and commit, and commit again, after every
little change.

Every one of your commits goes into your version history, and you can go
back to any of them at any time. Once you commit a change to the version
control system, you never have to worry about losing it!

If you mess things up, you can even commit your messed-up version - and
then you can go back to an earlier version, or an earlier one than that, to
get back to a state where things worked. You can go back and forth between
the old working code and newer broken code, and see exactly when and how
things broke. The more often you commit your changes, the easier it is to
do this.

Of course, none of this will help with your current situation where the
code is broken and you're not sure what changes caused the problem. But you
will never have to have this happen again.

Do this. Do it now. It will be like gaining a superpower.

On Mon, Oct 19, 2015 at 4:25 PM, johnnypemail 
wrote:

> This is a custom google javascript api where address are loaded from
> database.
>
> The map was working great.. I started adding other functionalities to the
> site... lost track and now the map is not showing up .. please help! :(
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-maps-js-api-v3+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-maps-js-api-v3@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-maps-js-api-v3.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at http://groups.google.com/group/google-maps-js-api-v3.
For more options, visit https://groups.google.com/d/optout.


Re: [Google Maps API v3] Any chance of extension of the v2 api?

2013-05-18 Thread Michael Geary
How about an extra six months:

http://googlegeodevelopers.blogspot.com/2013/04/an-update-on-javascript-maps-api-v2.html


On Sat, May 18, 2013 at 7:19 PM, chris marx  wrote:

> Any chance of an extra week or month for the v2 api, I know the deadline
> was extended for the geocoding api, we would certainly welcome a bit of
> extra time-
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-maps-js-api-v3+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-maps-js-api-v3@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Re: [Google Maps API v3] Re: Advertising

2013-04-01 Thread Michael Geary
I usually open the Styled Maps Wizard and poke around with different
settings until I find what I want:

http://gmaps-samples-v3.googlecode.com/svn/trunk/styledmaps/wizard/index.html

https://developers.google.com/maps/documentation/javascript/styling


On Mon, Apr 1, 2013 at 4:11 AM, Enoch Lau (Google Employee) <
enoch...@google.com> wrote:

> No, there's no way to find out, but by and large, it should be fairly
> obvious which category it belongs to.
>
> On Monday, April 1, 2013 9:19:40 PM UTC+11, Andrew Leach wrote:
>
>> On 1 April 2013 08:19, Enoch Lau (Google Employee) 
>> wrote:
>> > +1 to what Barry said. You can hide the icons, which makes them
>> > non-clickable. This seems sensible since you wouldn't want both your
>> marker
>> > and Google's icon to be displayed.
>> >
>> > For the full list, see
>> > https://developers.google.com/**maps/documentation/javascript/**
>> reference#**MapTypeStyleFeatureType
>>
>> Thanks. Is there any way of finding out which class of POI a
>> particular one is? Or is it just trial and error?
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-maps-js-api-v3+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-maps-js-api-v3@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Google Maps API v3] Marker data

2013-03-29 Thread Michael Geary
Creating a marker with the Maps API doesn't send data to any Google server,
other than a request for the marker image if you use a stock marker image.
It's all done on the client in JavaScript.

You can provide your own marker image to avoid even that request.

Don't take my word for this, though. Verify it yourself. Here is a test
page you can use:

*http://jsfiddle.net/geary/sygRd/1/*

To test, open the page in Chrome, and then open the Developer Tools (F12 on
Windows, other key shortcuts on other OSes, or find it in the Chrome menu
under Tools). Select the Network tab in the developer tools, and use the
Clear icon (slashed circle) at the bottom to clear any previous network
trace.

Now click around on the map. It creates a marker every time you click. You
should see these two requests to Google servers:

closedhand_8_8.cur - this is the different cursor you see while the mouse
is down
marker_sprite.png - this is the default marker.

Neither of these requests leaks any information about the location you
clicked on. You can examine the request headers to confirm this. And you
can get rid of the marker_sprite.png request by using your own marker image.

Of course there are all sorts of other requests made to Google servers, for
the Maps API JavaScript code, the map tiles, cursors (including the one
mentioned above), etc. Those requests do log the IP address of the site
visitor, but you already know that.

Hope that helps!

-Mike

p.s. This is an interesting enough question that I would suggest posting it
on Stack Overflow so more people will see it. Maps API support has pretty
much moved over there; not too many people read this old support group any
more. If you post it there, ping me and I'll copy the answer too.

On Tue, Mar 26, 2013 at 5:03 PM, Jeff Zeminski  wrote:

> My company is considering using Google Maps API for Business to map health
> care info.  Does the marker data get sent to Google or is it kept on the
> client machine?
>
> When I say "marker data" I mean coordinates, label info, and icon image.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-maps-js-api-v3+unsubscr...@googlegroups.com.
> To post to this group, send email to
> google-maps-js-api-v3@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-maps-js-api-v3+unsubscr...@googlegroups.com.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
Visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Google Maps API v3] Map marker color-shift?

2013-01-17 Thread Michael Geary
One guess is that there is some transparency used in one of the two cases
but not the other.

Do you have a test page that shows this effect in action? I'd be curious to
take a look at it. Even a screenshot would be somewhat helpful, to see the
actual colors in question.

Which one has the actual correct color of your image: the marker on the map
or in the web page content?

Here's a good tool to look at stuff on the screen:

http://gipsysoft.com/zoomplus/

It lets you zoom in to see individual pixels, and if you roll the mouse
around it will show you the color value under the mouse pointer, in either
hex or RGB format. (Right click the titlebar and select the format from the
Options dialog.)

-Mike


On Thu, Jan 17, 2013 at 12:42 PM, JFrancis  wrote:

> Has anyone else noticed a shift in the color of a marker when placed on a
> map, and the same image when it is inserted onto a web page? I'm looking at
> a map where I have several makers of different colors next to a "legend"
> describing each of the markers, and the markers on the map are decidedly
> darker than the ones in the legend, the point where my orange marker almost
> looks red!
>
> I am using PNGs for the markers; should I be using GIFs instead?
>
> JF
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/gOHzp93F7cgJ.
> To post to this group, send email to
> google-maps-js-api-v3@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-api-v3+unsubscr...@googlegroups.com.
> 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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



Re: [Google Maps API v3] Find the given Point lie inside a polygon in serverside C#

2012-09-06 Thread Michael Geary
The code is very simple and uses language features that are common to most
C-like languages. It is easy to port it to C#, Java, JavaScript, Python,
Ruby, Go, you name it.

If you want code already written in C#, that's easy to find too:

https://www.google.com/search?q=c%23+point+in+polygon

-Mike

On Thu, Sep 6, 2012 at 2:55 AM, deep123 wrote:

>
>
> Please Provide me the code in C# . It's urgent.
>
> Thanks.
>
> On Thursday, September 6, 2012 3:14:34 PM UTC+5:30, Andrew Leach wrote:
>
>> On 6 September 2012 10:23, deep123  wrote:
>> >
>> >  I am creating a geofence as a polygon with multiple Poly coordinate
>> (not
>> > fixed the poly coordinates) on a map and saving its coordinates on
>> database.
>> > Now i am tracking a path with current latitude longitude using GPS .
>> Till
>> > here everything is working fine. Now i have to find out that Current
>> > latitude longitude is lying inside a polygon or not .  I need the code
>> in
>> > server side i can't use java script. I am using google map api v3.
>>
>> I used solution 1 at 
>> http://paulbourke.net/**geometry/insidepoly/
>>
>> It's in C, so porting to C# might be possible. I ported to PHP.
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/aoBYf01Ln9sJ.
>
> To post to this group, send email to
> google-maps-js-api-v3@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-api-v3+unsubscr...@googlegroups.com.
> 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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



Re: [Google Maps API v3] Re: More information about HeatMapLayer/HeatMapLayerOptions

2012-07-10 Thread Michael Geary
Clearly, you have an off-by-one error. Or maybe you need a closure. Or
something else is wrong.

Not much help, is it? :-)

Give us a link to a test page and you may get some more useful replies...

-Mike

On Tue, Jul 10, 2012 at 10:07 AM, Hunter McMillen wrote:

> I use a for in loop to iterate over the array so I don't believe that I
> could be reading past element 334, The extra comma would throw an error in
> firebug.
>
> 327: {"location":{"$a":-35.5,"ab":172},"weight":"11"} object music.js:730
> 328: {"location":{"$a":-36.5,"ab":151},"weight":"1"} object music.js:730
> 329: {"location":{"$a":-37.5,"ab":151},"weight":"1"} object music.js:730
> 330: {"location":{"$a":-37.5,"ab":168},"weight":"3"} object music.js:730
> 331: {"location":{"$a":-37.5,"ab":169},"weight":"6"} object music.js:730
> 332: {"location":{"$a":-39.5,"ab":161},"weight":"4"} object music.js:730
> 333: {"location":{"$a":-39.5,"ab":162},"weight":"5"} object music.js:730
> 334: {"location":{"$a":-39.5,"ab":165},"weight":"6"} object music.js:730
>
>
> This is what my data looks like, the error is thrown on element 334, but
> when I remove that element; the error just gets propagated to element 333.
>
> Hunter
>
> On Tuesday, July 10, 2012 12:53:19 PM UTC-4, Rossko wrote:
>>
>> > Any thoughts as to why this could be happening?
>>
>> Wild guesses:
>> You have a superflous comma at the end?
>> Your code attempts to read beyoend the last element?
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/Xw_1pUWNFpQJ.
>
> To post to this group, send email to
> google-maps-js-api-v3@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-api-v3+unsubscr...@googlegroups.com.
> 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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



Re: [Google Maps API v3] Object Created but not Consumed?

2012-06-10 Thread Michael Geary
Can you post the URLs of two versions of your map page, one working and one
showing the problem? Or at least a URL for the broken page?

On Sun, Jun 10, 2012 at 8:26 AM, A. Shore  wrote:

> Folks, in the snippet below, object marker_obj is created but with no
> further reference that I see.
>
> But beachMarker  icon doesn't display  unless marker_obj is indeed
> defined.
>
> Can someone explain the (apparently) invisible reference?
>
>
>function init() {
> // Called on the intiial page load.
>var map_obj = new
> google.maps.Map(document.getElementById('map_canvas'), {
>zoom: 14,
>center: new google.maps.LatLng(37.44, -122.14),
>mapTypeId: google.maps.MapTypeId.ROADMAP
>});
>
>var marker_obj = new google.maps.Marker({
>position: new google.maps.LatLng(37.43, -122.13),
>map: map_obj
>});
>
>var image_file = '
> http://code.google.com/apis/maps/documentation/v3/
> examples/images/beachflag.png
> ';
>var beachMarker = new google.maps.Marker({
>position: new google.maps.LatLng(37.45, -122.15),
>map: map_obj,
>icon: image_file
>});
>}   // end function init()
>
> --
> 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
> google-maps-js-api-v3@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-api-v3+unsubscr...@googlegroups.com.
> 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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



Re: [Google Maps API v3] map not rendering

2012-05-27 Thread Michael Geary
No, I didn't try it - I don't usually copy and paste HTML from posts to try
them out. Generally when you post HTML in a page instead of a link to a
testable page, you'll get wild guesses like mine.

But tell you what, I went ahead and saved a local copy and tried it in
Chrome on the desktop. The map does display OK here, although I notice a
few other problems:

1) 100% is the wrong height for the map_canvas. It doesn't take into
account the height of the top bar. Instead, you should definitely use
JavaScript to set the height and get rid of the 100% height in CSS.
Something like this:

var $map = $('#map_canvas');
$map.height( $(window).height() - $map.offset().top );

2) You are using ancient versions of jQuery and jQuery Mobile - and an
alpha version of Mobile at that. Current versions are 1.7.2 and 1.1.

3) The .live() method is obsolete and deprecated (it was a badly conceived
API). The only reason you're having to use it is that you have your jQuery
code in the header, before the .page-map div is created. Either move your
jQuery code to the end of the file, or put it inside a $(document).ready()
callback. Then you can use .bind() or .on() instead of .live().

-Mike

On Sun, May 27, 2012 at 4:56 PM, James Ward  wrote:

> still same. Did it work on your system?
>
>
>
>
> On Sun, May 27, 2012 at 5:47 PM, Michael Geary  wrote:
> > I'll bet your map_canvas div is not getting the height you expect. Have
> you
> > checked its actual height?
> >
> > You may be able to fix it by adding these styles:
> >
> > html { height: 100%; }
> > body { height: 100%; }
> >
> > Or a certain fix is to set the height explicitly in JS, e.g.
> >
> > $('#map_canvas').height( $(window).height() );
> >
> > More about height:100%:
> >
> > https://www.google.com/search?q=css+height+100%
> >
> > -Mike
> >
> > On Sun, May 27, 2012 at 3:10 PM, James Ward 
> wrote:
> >>
> >> Hi I am trying to add google map on a JQM page but it does not render
> >> properly.
> >> I only can see partial map not the whole map. Can some one please let me
> >> know
> >> how to resolve this issue. Here is the code. Thanks in advance.
> >>
> >>
> >> 
> >> 
> >> 
> >>
> >>Main Page
> >> >> href="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.css";
> >> />
> >>http://code.jquery.com/jquery-1.4.3.min.js</a>
> ">
> >> >> src="<a  rel="nofollow" href="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.js">http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.js</a>
> ">
> >> >> src="<a  rel="nofollow" href="http://maps.google.com/maps/api/js?sensor=false"">http://maps.google.com/maps/api/js?sensor=false"</a>;>
> >>
> >>// When map page opens get location and display map
> >>$('.page-map').live("pagecreate", function() {
> >>if(navigator.geolocation) {
> >>
> >>  navigator.geolocation.getCurrentPosition(function(position){
> >>
> >>  initialize(position.coords.latitude,position.coords.longitude);
> >>});
> >>}
> >>});
> >>function initialize(lat,lng) {
> >>var latlng = new google.maps.LatLng(lat, lng);
> >>var myOptions = {
> >>zoom: 8,
> >>center: latlng,
> >>mapTypeId: google.maps.MapTypeId.ROADMAP
> >>};
> >>var map = new
> >> google.maps.Map(document.getElementById("map_canvas"),myOptions);
> >>}
> >>
> >> 
> >> 
> >>
> >>Main Page
> >>
> >>Map
> >>
> >>
> >>
> >> >> style="width:100%; height:100%;" id="mapPage">
> >>Map Page
> >>
> >>
> >>
> >>
> >> 
> >> 
> >>
> >> --
> >> You received this message because you are subscribed to

Re: [Google Maps API v3] map not rendering

2012-05-27 Thread Michael Geary
I'll bet your map_canvas div is not getting the height you expect. Have you
checked its actual height?

You may be able to fix it by adding these styles:

html { height: 100%; }
body { height: 100%; }

Or a certain fix is to set the height explicitly in JS, e.g.

$('#map_canvas').height( $(window).height() );

 More about height:100%:

https://www.google.com/search?q=css+height+100%

-Mike

On Sun, May 27, 2012 at 3:10 PM, James Ward  wrote:

> Hi I am trying to add google map on a JQM page but it does not render
> properly.
> I only can see partial map not the whole map. Can some one please let me
> know
> how to resolve this issue. Here is the code. Thanks in advance.
>
>
> 
> 
> 
>
>Main Page
> href="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.css";
> />
>http://code.jquery.com/jquery-1.4.3.min.js";>
>http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.js";>
> src="http://maps.google.com/maps/api/js?sensor=false";>
>
>// When map page opens get location and display map
>$('.page-map').live("pagecreate", function() {
>if(navigator.geolocation) {
>
>  navigator.geolocation.getCurrentPosition(function(position){
>
>  initialize(position.coords.latitude,position.coords.longitude);
>});
>}
>});
>function initialize(lat,lng) {
>var latlng = new google.maps.LatLng(lat, lng);
>var myOptions = {
>zoom: 8,
>center: latlng,
>mapTypeId: google.maps.MapTypeId.ROADMAP
>};
>var map = new
> google.maps.Map(document.getElementById("map_canvas"),myOptions);
>}
>
> 
> 
>
>Main Page
>
>Map
>
>
>
> style="width:100%; height:100%;" id="mapPage">
>Map Page
>
>
>
>
> 
> 
>
> --
> 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
> google-maps-js-api-v3@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-api-v3+unsubscr...@googlegroups.com.
> 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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



Re: [Google Maps API v3] CSS Style for Copyright notice

2012-01-24 Thread Michael Geary
   1. Open the "hello world" test page in Chrome.
   2. Use F12 of Ctrl+Shift+I or whatever the keyboard shortcut is to open
   the JS/DOM debugger.
   3. Click the magnifying glass in the bottom of the debugger pane.
   4. Click in the copyright background where it fades out.

Look in "element.style" in the displayed CSS.

Now, repeat the process in Firefox using Firebug. Note that it has *almost*
the same style but not quite. These are vendor-specific styles that it's
using.

That should give you a start...

-Mike

On Tue, Jan 24, 2012 at 6:29 PM, Gary Little  wrote:

> Does anyone know the CSS style that is now applied to the Google
> copyright notice in the lower right corner of the map? The text seems
> to be a shade of gray with a shade of white being used for the
> background. I want to replicate the look with another copyright notice
> I'm adding to my map.
>
> --
> 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
> google-maps-js-api-v3@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-api-v3+unsubscr...@googlegroups.com.
> 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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



Re: [Google Maps API v3] Re: XHTML versus HTML

2012-01-22 Thread Michael Geary
Also, is it a requirement for your app that you use XHTML? If it isn't a
requirement, why bother? From looking at the iPhone example, it seems that
it doesn't require XHTML.

Word on the street is that XHTML is dead and nearly buried. HTML5 has moved
away from that model completely.

-Mike

On Sun, Jan 22, 2012 at 9:59 PM, Michael Geary  wrote:

> Andrew also said "The standard script tag doesn't work, because of
> 'document.write'. You need the asynchronous loader."
>
> Follow his link again and scroll down just a bit to "Asynchronously
> Loading the API".
>
> -Mike
>
> On Sun, Jan 22, 2012 at 6:20 PM, Frank Natoli wrote:
>
>> Andrew provided a link to *http://code.google.com/apis/
>> maps/documentation/javascript/tutorial.html#Loading_the_Maps_API*<http://code.google.com/apis/maps/documentation/javascript/tutorial.html#Loading_the_Maps_API>
>>  The
>> code at that link is exactly the code I am now using, with the API key. If
>> you see something different in the code I posted from the link above, could
>> you please point it out?
>>
>> The code I am writing is intended for an Apple iPad app, not a server.
>> Google provides an entire page dedicated to iPhone/iPad apps at
>> http://code.google.com/apis/maps/articles/tutorial-iphone.html so I
>> think it unlikely that my use is a violation of Google's own sample code
>> and sample iPhone application.
>>
>> Let me point out again that this code, even without the API key, works
>> just fine under straight HTM but fails under XHTML.
>>
>> Thanks for your help.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Maps JavaScript API v3" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/google-maps-js-api-v3/-/-wL5upvJL24J.
>>
>> To post to this group, send email to
>> google-maps-js-api-v3@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-maps-js-api-v3+unsubscr...@googlegroups.com.
>> 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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



Re: [Google Maps API v3] Re: XHTML versus HTML

2012-01-22 Thread Michael Geary
Andrew also said "The standard script tag doesn't work, because of
'document.write'. You need the asynchronous loader."

Follow his link again and scroll down just a bit to "Asynchronously Loading
the API".

-Mike

On Sun, Jan 22, 2012 at 6:20 PM, Frank Natoli wrote:

> Andrew provided a link to *http://code.google.com/apis/
> maps/documentation/javascript/tutorial.html#Loading_the_Maps_API*
>  The
> code at that link is exactly the code I am now using, with the API key. If
> you see something different in the code I posted from the link above, could
> you please point it out?
>
> The code I am writing is intended for an Apple iPad app, not a server.
> Google provides an entire page dedicated to iPhone/iPad apps at
> http://code.google.com/apis/maps/articles/tutorial-iphone.html so I think
> it unlikely that my use is a violation of Google's own sample code and
> sample iPhone application.
>
> Let me point out again that this code, even without the API key, works
> just fine under straight HTM but fails under XHTML.
>
> Thanks for your help.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/-wL5upvJL24J.
>
> To post to this group, send email to
> google-maps-js-api-v3@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-api-v3+unsubscr...@googlegroups.com.
> 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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



Re: [Google Maps API v3] Re: removeListener not working

2011-12-19 Thread Michael Geary
Assuming that rs.features is an array, this code doesn't make any sense at
all. The loop in the else clause will run exactly zero times, because c
(the array length) is greater than or equal to zero, and therefore i > c
will be false the first time it's tested.

-Mike

On Mon, Dec 19, 2011 at 7:30 AM, Andrew  wrote:

> Thank you. This works well. In the else statement I changed it to i>c.
>
> if (drawing==true){
> var fs = rs.features;
>   for (var i = 0, c = fs.length; i < c; i++) {
> setupFeature(fs[i]);
> }
> }
> else{
> var fs = rs.features;
>   for (var i = 0, c = fs.length; i > c; i++) {
> setupFeature(fs[i]);
> }
>  }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/WC175cV1GkYJ.
>
> To post to this group, send email to
> google-maps-js-api-v3@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-api-v3+unsubscr...@googlegroups.com.
> 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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



Re: [Google Maps API v3] Re: TOS: Is it violated if 3rd party posts a link to our app on a forum that requires a fee for reading the forum?

2011-12-02 Thread Michael Geary
There's no violation of the TOS here.

The *map* itself is available to the general public for free, yes? It's the
link that was posted at the beginning of the thread?

The fact that there is also a link to the map in some forum that you have
to pay to join is irrelevant. The owner of a map using the free API is not
required to police every possible link to the map from other sites. That
would be an impossible task.

-Mike

On Fri, Dec 2, 2011 at 10:27 AM, Stoked  wrote:

> Just to clarify. I think this question arose from a link I placed on a
> forum of the British Columbia Mountaineering Club. The particular
> forum was one intended for members of the club. So, the forum is open
> to members of the club but not to the public. So, in a sense, club
> members could be construed as having paid for access to the forum.
>
> In the case of the link I posted, it is actually preferable that the
> link be available to the public. So, I had no hesitation to move the
> link to a public forum on the BCMC web site. It wasn't clear to me
> earlier which forums were public and which were not.
>
> On the other hand, there are web sites that reference GMap4 in such a
> way that it seems to me it is a component of the web site's business.
> I think that is a different issue. I.e. it is a question of a single
> instance of the map being generated for illustrative purposes in an
> article versus a business using GMap4 for enhancing its business
> capability.
>
> --
> 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
> google-maps-js-api-v3@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-api-v3+unsubscr...@googlegroups.com.
> 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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



Re: [Google Maps API v3] A change in undocumented property in google.maps.DirectionsResult

2011-11-30 Thread Michael Geary
On Wed, Nov 30, 2011 at 7:56 AM, Shoaib Nawaz  wrote:

> Gf turned out to Vf, Ma turned out to Pa and Na turned out to Qa


Google runs their Maps API JavaScript through a compiler/optimizer, perhaps
the Closure Compiler [1] or something like it, which shortens names that
are not intended for external use. So those names may change in a new
build, completely on the whim of the optimizer.

-Mike

[1]: http://code.google.com/closure/compiler/

-- 
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



Re: [Google Maps API v3] Re: Odd IE 7-9 behaviour - 'google is undefined'

2011-11-17 Thread Michael Geary
>
> On Nov 17, 2:04 am, Stacey  wrote:
> > Hello everyone,
> >
> > Could someone figure out for me why IE 7-9 appears to error on line 4 of
> > map.js of this page? As far as I know, there are no stray commas in my
> > script...
>
>
On Thu, Nov 17, 2011 at 5:01 AM, geocode...@gmail.com 
 wrote:
>
> It looks like the google map loader is loading the API asynchonously.
> The google namespace hasn't loaded by the beginning of js/map3.js
> where you create the infowindow.
>

It's not that the API is being loaded asynchronously; it isn't being loaded
*at all*.

When you load the Maps API via a normal HTML 

Re: [Google Maps API v3] Odd IE 7-9 behaviour - 'google is undefined'

2011-11-17 Thread Michael Geary
Your  tag that loads the Maps API is wrong. It shouldn't use
type="application/javascript".

https://www.google.com/search?q=ie+script+"application+javascript";<https://www.google.com/search?q=ie+script+%22application+javascript%22>

Also there is a new URL to use for the .js file. Here's the current