[Google Maps API v3] Getting a transparent road layer

2010-12-14 Thread Michael Geary
I want to make a terrain map with a transparent road layer on top of it, similar to the way that the hybrid map puts a road layer and related info on top of a satellite view. I tried creating a StyledMapType using these styles: var styles = [ { featureType: "all",

Re: [Google Maps API v3] Re: Getting a transparent road layer

2010-12-15 Thread Michael Geary
Nice! That looks great. But wouldn't it violate the Terms of Service to calculate and fetch tiles directly like that? var lyrsH = new google.maps.ImageMapType({ getTileUrl: function(ll, z) { var X = ll.x % (1 << z); // wrap return "http://mt0.google.com/vt/v=apt.116&hl=en-US&x=";

Re: [Google Maps API v3] Reliable URLs for Marker Icons?

2010-12-29 Thread Michael Geary
If you really want to include the marker icon image data directly inside your HTML file itself, there is a fairly easy way to do that: convert each image to a data: URL and use that URL as the icon image URL instead of a conventional http: URL. Simply use one of the available online image to data U

Re: [Google Maps API v3] Q can API give me the flexibility I need

2011-01-16 Thread Michael Geary
The Maps API is very powerful and flexible. You can build just about any kind of map you want with it. However... The API is a toolkit for JavaScript programming. Do you know how to write JavaScript code? Or have you programmed in any other languages before? If not, you have a very big learning c

Re: [Google Maps API v3] Opacity slider

2011-01-20 Thread Michael Geary
A variable opacity tile layer is indeed a bit of work. I have some code you're welcome to grab from the CLASlite application I'm developing for Carnegie Institution for Science. The app itself isn't ready for prime time, but this code works well. The code is in this file: http://code.google.com/p

Re: [Google Maps API v3] Problems geocoding addresses with "#" for Apartment Number

2011-01-22 Thread Michael Geary
The # character has special meaning in a URL. Anything after the # is never sent to the server at all! You need to run your address through encodeURIComponent() before putting it into the URL. For example: var address = '1600 Amphitheatre Parkway #23, Mountain View, CA'; var url = ' http://maps.g

Re: [Google Maps API v3] Re: Problem loading Maps v3 with Common API Loader

2011-01-24 Thread Michael Geary
Your code doesn't look like the code in this example: http://code.google.com/apis/loader/#Dynamic I think the problem is this function: function loadMaps() { var otherParams = {"other_params":"callback=mapsLoaded&sensor=false"}; google.load("maps", "3", otherParams ); } With the cal

Re: [Google Maps API v3] With Lua

2011-01-27 Thread Michael Geary
The Maps API is a JavaScript API that runs in the browser. Browsers do not run Lua, so no, you can't use the Maps API with Lua. How would you run the Lua code? Reading between the lines, is this your real question: "I'm running Lua on my server. Can I use the Maps API?" If that's the question, th

Re: [Google Maps API v3] Latitude Not_a_Number

2011-01-28 Thread Michael Geary
Set a breakpoint on this line of code: var clickedLocation = new google.maps.LatLng(location); and look at the value of 'location'. It's *already* a LatLng - you don't need to run it through the LatLng() constructor again. -Mike On Fri, Jan 28, 2011 at 1:05 AM, VolksNav wrote: > Hi, > > never

Re: [Google Maps API v3] Content-Length header missing from json response

2011-02-09 Thread Michael Geary
What were you going to do with the Content-Length header? You don't need it to decode the JSON response. Maybe there's another way to approach whatever you would be using it for? -Mike On Wed, Feb 9, 2011 at 2:46 PM, Tim King wrote: > I tried out the following API request: > > GET > /maps/api/ge

Re: [Google Maps API v3] Re: DownloadUrl and Xml.parse

2011-02-18 Thread Michael Geary
If you were talking about Earth view or user-editable polygons, I'd be the first to agree with you. But GXmlHttp? This has nothing to do with mapping. The only reason it was ever in the API is that the V2 API predated the popularity of libraries like jQuery, MooTools, Prototype, and you name it. T

Re: [Google Maps API v3] Re: DownloadUrl and Xml.parse

2011-02-19 Thread Michael Geary
Excellent! Glad to hear that worked out. -Mike On Sat, Feb 19, 2011 at 11:04 PM, SJL wrote: > Thanks for your explanation and suggestions, Mike. I was able to > output in JSON instead of XML, and use jquery to access it with > getJSON. It works great! :) -- You received this message because

Re: [Google Maps API v3] Re: Thousands of polygons...

2011-02-20 Thread Michael Geary
You can do polygon simplification interactively here: http://mapshaper.org/ or by installing and using this open source software: http://www.cartoweb.org/downloads/vertexsimplification/documentation.html The first one de

Re: [Google Maps API v3] Re: Map doesn't load when touching Object.prototype in any browser

2011-02-23 Thread Michael Geary
> > > Touching prototype of native Object is also very fragile and basically > > forbidden by most javascript gurus I have read. It can break anything. > > But why should it? And if I choose a free name for the new function, > then why should anybody bother? Google Maps API must be investigating >

Re: [Google Maps API v3] How to see the sample code?

2011-02-24 Thread Michael Geary
There are several ways to do View Source, depending on your browser. First, go to the page you want, and then in most browsers, look on the View menu for a View Source item, or in Google Chrome click the wrench and then look in the Tools sub-menu. Ctrl+U is a shortcut for View Source in some Window

Re: [Google Maps API v3] Re: Map doesn't load when touching Object.prototype in any browser

2011-02-24 Thread Michael Geary
On Thu, Feb 24, 2011 at 12:26 AM, Yves wrote: > The Object "class" contains functions anyway, why aren't they > iterated, too? And if you iterate over *anything* you have to live > with the results. If you get a variable from an unknown source (which > is not unusual in browsers' JavaScript) of a

Re: [Google Maps API v3] Re: Map doesn't load when touching Object.prototype in any browser

2011-02-24 Thread Michael Geary
On Thu, Feb 24, 2011 at 8:49 AM, Michael Geary wrote: > Look, this horse left the barn years ago. You can make the case all you > want, but in the end you'll just have to live with the fact that extending > Object.prototype will break other people's code, so you just can&

Re: [Google Maps API v3] Re: Javascript is executed twice in an infowindow

2011-02-24 Thread Michael Geary
On Thu, Feb 24, 2011 at 11:33 AM, geocode...@gmail.com wrote: > > Have you read the posting guidelines? > READ THIS FIRST: Posting Guidelines > http://groups.google.com/group/google-maps-js-api-v3/t/2b3f101fd509919e > > Code is not helpful, a web page is. > ...except when the code *is* helpful.

Re: [Google Maps API v3] Re: Javascript is executed twice in an infowindow

2011-02-24 Thread Michael Geary
On Thu, Feb 24, 2011 at 12:49 PM, Michael Geary wrote: > If that doesn't point you toward a solution, describe what you're trying to > do in a bit more detail and we can kick it aroun. > Yes, I do know how to spel better than that! :-) -- You received this message because

Re: [Google Maps API v3] Re: Javascript is executed twice in an infowindow

2011-02-24 Thread Michael Geary
On Feb 24, 3:49 pm, Michael Geary wrote: > > > > Of course you're right that *in general* it's better to post a link. But > > could we all please not be so trigger-happy on these "read the posting > > guidelines" replies? In this specific case, a few se

Re: [Google Maps API v3] Re: Javascript is executed twice in an infowindow

2011-02-25 Thread Michael Geary
Ah, very interesting. So the double alert from JS in your infowindow HTML was a red herring. That alert was something you added to the test code you posted and isn't present in the actual site. The real problem you're trying to troubleshoot is that you get six images in your lightbox instead of th

Re: [Google Maps API v3] Re: Javascript is executed twice in an infowindow

2011-02-25 Thread Michael Geary
Larry, you're too kind. Thanks! Well it turns out the joke was on me, and my apologies, because you were completely right on the need for the LINK. :-) The double alert was an artifact of the test code and may have had nothing to do with the actual problem - which turned out to be even more stran

Re: [Google Maps API v3] Should I use registration key in Google API V3 and how I must it use if it works fine without any key?

2011-02-28 Thread Michael Geary
The http://code.google.com/intl/ru/apis/maps/ page is talking about the V2 Maps API, not the V3 API. You can disregard what it says if you are using the V3 API. -Mike On Mon, Feb 28, 2011 at 5:37 AM, VsRaz wrote: > Should I use registration key in Google API V3 and how I must it use if it > wor

Re: [Google Maps API v3] Problem accessing JSON output from Directions Web Services API

2011-03-01 Thread Michael Geary
On Tue, Mar 1, 2011 at 4:55 PM, sandy037 wrote: > Hi all, > I am trying to get the JSON output of directions between two points > using the Directions API Web services. I am using an XmlHttpRequest > (GET Method) in Javascript to get the results but gives me an error > "XMLHttpRequest cannot load

Re: [Google Maps API v3] Is it possible to convert a "LatLng obj" to Lat/Lon coordinates?

2011-03-02 Thread Michael Geary
Generally, every object you work with in the Maps API is an actual JavaScript object, not just a string. Most of these objects have methods you can call to get information out of them. Here's the LatLong doc: http://code.google.com/apis/maps/documentation/javascript/reference.html#LatLng

Re: [Google Maps API v3] map.fitBounds(map.getBounds()) zooms out map!

2011-03-07 Thread Michael Geary
I think the V3 API puts a little padding around the bounds you give it when you call fitBounds(). It would be nice if there were an option to control this, especially if you could control it individually for the four edges (like CSS padding/margin). If the maps are the same dimensions, you could d

Re: [Google Maps API v3] What constitute's the need for a "Premier License"?

2011-03-08 Thread Michael Geary
On Tue, Mar 8, 2011 at 7:52 AM, WebbWebs wrote: > I came across something in Google's API documentation that makes > me think that ANY use of their APIs in a "paid" app requires a $10,000/ > yr license... even it the cost of the app was only $0.99. > That's not quite how it works. Google doesn'

Re: [Google Maps API v3] What constitute's the need for a "Premier License"?

2011-03-08 Thread Michael Geary
On Tue, Mar 8, 2011 at 9:53 AM, Michael Geary wrote: > Imagine your app worked like this: > >1. Look up your birthplace on a Google map for free >2. Pay to find out more > > Then you could use the free API. > Aw rats. I might have this wrong. I'm sure this us

Re: [Google Maps API v3] Google maps not loading when becouse of sql query

2011-03-20 Thread Michael Geary
Hi George, You're looking at this from the wrong point of view. The Google Maps API doesn't know anything about your SQL queries. It's a browser-based JavaScript API. It doesn't see your SQL code, only what is actually sent down to the browser. To troubleshoot this problem, forget about SQL and

Re: [Google Maps API v3] Pls help:Using Document object in javascript for Google Maps

2011-03-20 Thread Michael Geary
On Sun, Mar 20, 2011 at 11:09 AM, Sandeep Samdaria < sandyridgera...@gmail.com> wrote: > Hello friends, > > I am using jsp and Java for google maps. > Basically what i am trying to implement is that i will be calling a java > function,in jsp using javabeans.This function will return a Document obj

Re: [Google Maps API v3] variable wierdness while trying to allow a user to open an XML file

2011-03-22 Thread Michael Geary
I didn't look at your code in detail, but that setTimeout call jumped out at me. It doesn't do what you expect. It calls getLocation(theAddress) *immediately*, not after the timer expires. If you want to make that call when the timer expires, it would look like this: setTimeout( function() {

Re: [Google Maps API v3] Google Is Amazing

2011-03-25 Thread Michael Geary
What browser and how fast a machine? In any case, if you think that's fast, you should try PolyGonzo. http://code.google.com/p/polygonzo/ Try the "All 3199 Counties" test in the dropdown. 3199 multipolygons, 3357 polygons, 33,3557 points. On my two machines, that loads in 1.75-2.5 seconds in IE

Re: [Google Maps API v3] Google Is Amazing

2011-03-25 Thread Michael Geary
On Fri, Mar 25, 2011 at 2:40 PM, Michael Geary wrote: > > ...if you think that's fast, you should try PolyGonzo. > > http://code.google.com/p/polygonzo/ > > Try the "All 3199 Counties" test in the dropdown. 3199 multipolygons, 3357 > polygons, 33,3557 points

Re: [Google Maps API v3] Lat Lng = Aa Ba Ca Da ??

2011-03-28 Thread Michael Geary
Don't use those undocumented properties of the LatLng object. Instead, use their documented lat() and lng() methods. e.g. if you have a LatLng object in a variable named latlng, you can do this: alert( 'Lat: ' + latlng.lat() + ', Lng: ' + latlng.lng() ); -Mike On Mon, Ma

Re: [Google Maps API v3] V3 Code samples and user-hosted code using different API versions?

2011-03-29 Thread Michael Geary
Reload the API example page with the F12 console window already open. You'll see this message: HTML1200: google.com is on the Internet Explorer 9 Compatibility View List ('C:\Users\(username)\AppData\Local\Microsoft\Internet Explorer\IECompatData\iecompatdata.xml'). marker-animations.html Then tr

Re: [Google Maps API v3] getting heatmap tutorial to work

2011-03-30 Thread Michael Geary
You do get the error on your public page as well. Maybe Firebug is not enabled for that page? Regardless, here's what to do next. Turn on Firebug's "break on error" option. This is a little orange "pause" button - with the two vertical bars - near the top left corner of the Firebug panel. Now re

Re: [Google Maps API v3] where can i find the posts that i posted here

2011-03-30 Thread Michael Geary
On Mon, Mar 28, 2011 at 2:08 AM, Barry Hunter wrote: > Don't upload your code somewhere special. Just provide a link to your > actual real map. The one you are working with. > > To comply with the terms of service, you must have a publically accessible > map. While it's certainly true that the b

Re: [Google Maps API v3] Re: adding multiple maps using arrays

2011-03-31 Thread Michael Geary
This is a bug in your code, not a problem in the Maps API. Your variable 'i' doesn't contain what you expect, because that's how JavaScript works. Read up on closures to better understand the problem and how to fix it. I assume you are using jQuery, is that right? Then interestingly enough, this a

Re: [Google Maps API v3] How to acces to data from JSON? help with GEOCODER API.

2011-04-01 Thread Michael Geary
Your English is fine, no worries there. :-) But I'm not sure exactly what you want to do. This can't work: results[0].address_components.long_name.types.country.political because address_components is an array. The array does not have a property called long_name. Each *element* of the array has

Re: [Google Maps API v3] Get bounds of a US state

2011-04-01 Thread Michael Geary
There's a list of state bounding boxes you can copy out of the PolyGonzo source code: http://code.google.com/p/polygonzo/source/browse/trunk/code/polymap.js Search the code for PolyMap.states for the list, and search for zoomToBounds to see an example of using one of the bounding boxes.

Re: [Google Maps API v3] Re: Maps inside div stucked on top-left though no change in HTML

2011-04-04 Thread Michael Geary
Actually, that's your fault for hotlinking to an example CSS file. The words "documentation" and "examples" in the URL are a clue that this is not a part of the API and not guaranteed to be stable. It's just part of an example from the API documentation. Any time you use parts of an example like th

Re: [Google Maps API v3] Re: Can i get a response from someone who works for google please!

2011-04-05 Thread Michael Geary
On Tue, Apr 5, 2011 at 1:24 PM, m...@creatiworks.ca wrote: > I don't mean any offense to anyone posting here, I thank anyone who is > trying to help me. But I tried the diplomatic approach last time and > it got me nowhere and my thread was deleted for apparently no reason > other than it was the

Re: [Google Maps API v3] Re: How to protect source code in javascript using notepad

2011-04-07 Thread Michael Geary
No, obfuscating your JS code doesn't violate the TOS at all. But as you mention, anyone who wants to see how it works will figure it out. -Mike On Thu, Apr 7, 2011 at 8:08 AM, Tony wrote: > The others are right, you can obfuscate your code, but you won't be > able to protect it from prying eye

Re: [Google Maps API v3] Re: Calling Lat/Lon in google maps API, is it against terms of use

2011-04-07 Thread Michael Geary
No, of course there's nothing wrong with displaying lat/long on a mousemove. That's not what the "mass downloads or bulk feeds" is talking about, nothing like that at all. -Mike > On Apr 7, 9:45 am, FireHawk wrote: > > Hi All, > > I have modified some code to display lat/lon coordinates in a te

Re: [Google Maps API v3] Re: Can Marker Manager v3 be called from localhost?

2011-04-08 Thread Michael Geary
On Fri, Apr 8, 2011 at 2:49 AM, davie wrote: > Hi > The Maps API is a free service, available for any web site that is > free to consumers. Please see the terms of service for more > information. > > http://code.google.com/apis/maps/terms.html > > As localhost is internal and not connected to

Re: [Google Maps API v3] Re: Can Marker Manager v3 be called from localhost?

2011-04-08 Thread Michael Geary
On Fri, Apr 8, 2011 at 8:38 AM, Greg wrote: > I wasn't expecting a self-righteous, sanctimonious response, so why > would I need to spell it out? On Fri, Apr 8, 2011 at 9:49 AM, Rossko wrote: > Quite a few people do come on here with questions that boil down to > "how can I circumvent the ter

Re: [Google Maps API v3] Re: Can Marker Manager v3 be called from localhost?

2011-04-08 Thread Michael Geary
It doesn't sound to me that you were loading the file from localhost. If you just opened it directly from a folder window, didn't the browser show a file: URL instead of an http://localhost/ URL? I'm not familiar with Marker Manager, but it's at least possible that the file: URL is causing problem

Re: [Google Maps API v3] Cannot able to search for a location in IE-9

2011-04-12 Thread Michael Geary
> Please provide me a solution The only way for anyone to do that is if they can see your map. Got a URL? -Mike -- 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@google

Re: [Google Maps API v3] Can't display map with the following Lat and Long

2011-04-19 Thread Michael Geary
Looking for Milwaukee, Wisconsin? If so, you have latitude and longitude reversed. On Tue, Apr 19, 2011 at 8:52 AM, pana wrote: > Hi, > > I am new at working with google maps but I have a web application that > passes to google our own Lat and Long values. So far most of the Lat > and Long we p

Re: [Google Maps API v3] Can't display map with the following Lat and Long

2011-04-19 Thread Michael Geary
On Tue, Apr 19, 2011 at 11:23 AM, pana wrote: > yes, This a latitud and longitud for Milwaukee, WI. So I should pass > 42.98063033, -88.01038079 instead? An easy way to test this is to paste the lat,lng (both numbers with comma between) into the search box on maps.google.com. > But why did

Re: [Google Maps API v3] Re: Map is not loading in FF, Chrome or IE

2011-04-21 Thread Michael Geary
> > document.body is null or not an object > You're using the asynchronous form of the

Re: [Google Maps API v3] Re: Map is not loading in FF, Chrome or IE

2011-04-21 Thread Michael Geary
Do you get the same JavaScript error? A different error? If you post a link to your page it will be a lot easier for people to help you troubleshoot. -Mike On Thu, Apr 21, 2011 at 9:25 AM, Greg Kopp wrote: > I tried that. It still doesn't show. *sigh* > > On Apr 21, 12:07 pm,

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 assumin

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

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 goog

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?

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

Re: [Google Maps API v3] Question about TOS

2011-04-22 Thread Michael Geary
You could just post your question here to get an informal (but likely to be correct) answer from other developers who are familiar with the TOS. -Mike On Fri, Apr 22, 2011 at 1:30 PM, Jim wrote: > How do I contact Google if I have a question regarding whether my > application conforms with the

Re: [Google Maps API v3] Re: Map FitBounds not zooming in

2011-04-25 Thread Michael Geary
Just a minor update to my reply - the *}* character highlighted below was a copy and paste error, not part of the code you should replace. On Mon, Apr 25, 2011 at 3:06 PM, Michael Geary wrote: > > You could easily fix that by changing this bit of code: > > if( curr

Re: [Google Maps API v3] Re: Help with toggling traffic layer.

2011-04-27 Thread Michael Geary
The first version of your code was much better. :-) You understood scoping correctly; there's no need to move those variables to the global scope. That said, I don't know what the problem is either. It certainly looks like you're making the right call when I stop and look at it in Firebug. I susp

Re: [Google Maps API v3] Re: Help with toggling traffic layer.

2011-04-27 Thread Michael Geary
Great! While it's fresh in your mind, would you file a bug report in the issue tracker? http://code.google.com/p/gmaps-api-issues/issues/list Thanks, -Mike On Wed, Apr 27, 2011 at 12:25 PM, Val wrote: > OK, I think it is official now: it

Re: [Google Maps API v3] Assigning a click event to a polygon stored in an array

2011-05-02 Thread Michael Geary
The immediate cause of your problem is that the 'k' and 'points2' variables don't have the values you expect when your 'click' listener function runs. Note the order of execution: 1) When your code first runs, it all runs except for the click listener (or any other event listeners). Your two big o

Re: [Google Maps API v3] Assigning a click event to a polygon stored in an array

2011-05-02 Thread Michael Geary
// map.setCenter( bounds.getCenter() ); map.removeOverlay( region.poly ); map.removeOverlay( region.label); // map.addOverlay( region.polyTransparent ); }); } On Mon, May 2, 2011 at 12:39 PM, Michael Geary wrote: > The immediate cause of your problem is that the &#

Re: [Google Maps API v3] click event listener problems

2011-05-02 Thread Michael Geary
Try the various 3.n API versions just in case it is an API bug: http://code.google.com/apis/maps/documentation/javascript/basics.html#Versioning On Mon, May 2, 2011 at 10:16 AM, Tim Miller wrote: > Here is my demo page: http://www.co-eaglenet.net/GoogleTest.htm > > The page contains two maps tha

Re: [Google Maps API v3] Re: loading kml and fusion tables layers using JSON

2011-05-18 Thread Michael Geary
On Wed, May 18, 2011 at 11:56 AM, Rossko wrote: > > var map; > > Thats an empty variable called 'map' in global scope > ... > > > overlay.setMap(map); > > This attempts to add an overlay to the empty variable in global scope. > No javascript error reported? It may just be a no-op. The code

Re: [Google Maps API v3] Re: Why?

2011-06-21 Thread Michael Geary
As Barry and Larry said, it would be best to post a link to an actual map page that we can load in the browser. But since you posted your code... Have you compared it *carefully* with the original code on this page: http://code.google.com/apis/maps/documentation/javascript/tutorial.html#HelloWorl

Re: [Google Maps API v3] Re: Why?

2011-06-22 Thread Michael Geary
Barry pointed you toward information about the semicolons, which are a matter of JavaScript syntax not directly related to the Maps API. As you get more familiar with JavaScript, this stuff will get easier. But the difference I noticed was something else - in the code you posted, I didn't see anyw

Re: [Google Maps API v3] Legally storing location data?

2011-06-28 Thread Michael Geary
On Tue, Jun 28, 2011 at 4:36 PM, Eric Dooley wrote: > It appears that I am not allowed to store (ex. in a database) geocoded > location data generated from Google unless I use it strictly within Google > Maps. I would like to not have this restriction (though at the time I can't > think of any ot

Re: [Google Maps API v3] Legally storing location data?

2011-07-01 Thread Michael Geary
On Wed, Jun 29, 2011 at 3:15 AM, Eric Dooley wrote: > Mike. This is good news, thanks for the reply. Not to question your > authority, but how do you know this to be true? Is it buried in Google's TOS > somewhere because I couldn't find anything that explicitly says this. I'm > definitely incline

Re: [Google Maps API v3] Beginner question on json

2011-07-24 Thread Michael Geary
This may be a surprise, but you're actually not using any JSON. The Styled Map Wizard's "Show JSON" button is incorrectly labeled. It generates a JavaScript object literal. The Wizard *could* generate valid JSON code by simply quoting the property names as JSON syntax requires - but it doesn't matt

Re: [Google Maps API v3] Geocaching map site....but how with so many markers

2011-07-26 Thread Michael Geary
You can see what they are doing by opening the Network tab in your browser's debugger (e.g. Firefox or the native debugger in Chrome or Safari). Move the map around and you'll see a number of image GET requests like this one: http://www.geocaching.com/map/beta/map.tile?x=2625&y=5716&z=14 As you c

Re: [Google Maps API v3] Re: Geocaching map site....but how with so many markers

2011-07-27 Thread Michael Geary
higher > zoom levels is there another reason to justify the extra effort > required in their approach with map tiles for higher zoom levels? > > Col > > > On Jul 26, 5:50 pm, Michael Geary wrote: > > You can see what they are doing by opening the Network tab in your > br

Re: [Google Maps API v3] Re: Advice regarding autozoom to fit 2 markers

2011-08-11 Thread Michael Geary
On Thu, Aug 11, 2011 at 1:28 AM, kabeerv99 wrote: >var bounds = new google.map.LatLngBounds(); > That won't work. Do you see how it's very slightly different from the other similar calls in your code? Different by only one letter? You need to start learning about the debugging tools in

Re: [Google Maps API v3] Re: force refresh of getTile function

2011-08-14 Thread Michael Geary
On Sun, Aug 14, 2011 at 7:11 AM, Esa wrote: > You don't have to add '==true' in if statement. JavaScript makes the > test by default. > if(x==true) can be written simply if(x) Those are not quite the same thing. For example: x = {}; if( x ) alert( 'x' ); // will alert if( x == true ) alert( '

Re: [Google Maps API v3] Re: Google Maps Red Marker in Company Logo - is it legal?

2011-09-22 Thread Michael Geary
VMware 8 Workstation has a new "You Are Here" marker in its Snapshot Manager that looks oddly familiar: http://mg.to/images/vmware-marker.png I have to think that VMware's lawyers were aware of Google's marker image and decided that theirs was different enough to be OK. YMMV... -Mike -- You re

Re: [Google Maps API v3] Re: How to trigger a Tile Server to dynamically update tiles

2011-10-18 Thread Michael Geary
I have some code that does a lot of what you mentioned - it could probably be adapted or provide some examples for the OP. The code is the TileMapType in this file: http://code.google.com/p/claslite/source/browse/web/app/static/js/scriptino-map.js (currently lines 369-414 in the file, but of cou

Re: [Google Maps API v3] Re: How to trigger a Tile Server to dynamically update tiles

2011-10-20 Thread Michael Geary
That's right. I'm afraid I didn't make my original suggestion clear enough: the code I linked to wasn't a way to make the remove-add sequence work better, it was pointing to a way to avoid the remove and add entirely, by adding a refresh method as you've done in your code here. Also, David, I noti

Re: [Google Maps API v3] Re: Bug in Chrome or V3 Google Maps API? Calling setMap causes a white screen flash in a *new* tab in Chrome

2011-11-05 Thread Michael Geary
I can verify the problem on Chrome 16.0.912.21 beta-m running on Windows 7 x64. It's a strange one! I do notice that you're missing a "var map" - but adding it doesn't help. I also tried one of those all-purpose hacks: wrapping the marker.setMap(map) call inside a setTimeout - but even with a long

Re: [Google Maps API v3] Agony and Confusion over Google Map's Developer API TOS. Please help, desperate :(

2011-11-06 Thread Michael Geary
The fact that you plan to charge for your service in the future is not a problem for now, because at the moment it is open to anyone for free. The TOS is only concerned with what you *actually do* with the API, not what you *may do* in the future. However, your PDF maps are "derivative works" that

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";<Re: [Google Maps API v3] Re: Odd IE 7-9 behaviour - 'google is undefined'
> > 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: > >

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

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 exter

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?

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 t

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

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

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

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

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

ke 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 &g

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

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

Re: [Google Maps API v3] map not rendering

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

Re: [Google Maps API v3] map not rendering

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

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

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

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

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 ov

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

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

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

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 c

Re: [Google Maps API v3] Marker data

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.

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

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

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

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 c

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

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 ni

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

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 fa

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

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 ob

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

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 cit

  1   2   >