[Google Maps API v3] Re: Google maps in Drupal

2010-04-12 Thread Chris Apolzon
I ran into an issue where I couldn't use the jquery selector object to
set the map variable.  I was forced to fall back to
document.getElementById().  It was very odd because jquery had the
correct object, the google maps constructor just didn't like it.

On Apr 12, 2:52 am, Macke  wrote:
> Hello William!
>
> I tried to change the code but i still get the same message. I have
> used the same code on a ordinary .php file that has nothing to do with
> Drupal and then it works.
> If i try running the JQuery $('#map_canvas') after the page is loaded
> nothing gets selected if i change the code to  $('div#map_canvas') on
> object get selected. But i still get the same error message when the $
> ('div#map_canvas') is used.
>
> On 11 Apr, 09:21, William  wrote:
>
>
>
> > On Apr 10, 8:32 pm, Macke  wrote:
>
> > >   map =  new google.maps.Map(('#map_canvas'), mapOptions);
>
> > the error is using the jquery # selector without a reference to
> > jquery.
>
> > If you really want to use jquery for this, it would be:
>
> > map =  new google.maps.Map($('#map_canvas')[0], mapOptions);
>
> > or instead use the usual getElementById function:
>
> > map =  new google.maps.Map(document.getElementById('map_canvas'),
> > mapOptions);

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



[Google Maps API v3] Re: Google maps in Drupal

2010-04-10 Thread Chris Apolzon
I have a working v3 map setup in drupal.  Could you provide more
detail about how you set it up?  This is really beyond the scope of
this group, so feel free to email me off the list.

On Apr 9, 1:56 pm, Macke  wrote:
> Hello!
>
> I have been trying to create a module in Drupal that can show a google
> map but i can't get it to work. I get the following error message:
>
> "uncaught exception: [Exception... "Could not convert JavaScript
> argument arg 0 [nsIDOMViewCSS.getComputedStyle]" nsresult: "0x80570009
> (NS_ERROR_XPC_BAD_CONVERT_JS)" location: "JS frame 
> ::http://maps.gstatic.com/intl/sv_se/mapfiles/api-3/0/36/main.js::
> nj :: line 33" data: no]"
>
> I would appreciate some help with this, i have no idea what the
> problem is.

-- 
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...@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: JS errors in IE8 and IE7 when using OverlayView in Google Maps v3 API.

2010-04-01 Thread Chris Apolzon
I think the main culprit (slow IE) is IE's use of VML instead of SVG or
Canvas for graphics support.  IE7's javascript engine is also fairly slow,
but IE8's is really not that bad.
I do agree though, if you want a snappy-feeling map experience you cannot
use IE.  If you're supporting IE users, a recommendation of Chrome Frame
never hurts.

On Wed, Mar 31, 2010 at 10:05 PM, dany0212  wrote:

> Hello Chad,
>
> I want to thank you for that suggestion.
> You absolutely correct, using changes to the code you provided fixed
> remaining JS error that as being thrown in IE.
> IE is one complicated browser. :)
>
> Sorry to ask you another question, but is there a way to explain why
> the map is so slow in IE7 or IE8?
> It is very fast in Firefox or Chrome.
> It is so slow in IE, that I do not think it is even usable.
>
> If I remove colored overlays and just leave markers there, the maps is
> very quick in IE7 or IE8.
> Is there is some strange issue in my overlay code? I used pretty
> generic code, and now only thing I changed was your suggestion for
> that JS error.
>
> http://ez-datasolutions.com/maps/v3/map_example.html
>
> http://ez-datasolutions.com/maps/v3/map_example_nooverlays.html
>
>
> Thanks again for your help.
>
>
> Daniel
>
>
> On Mar 23, 12:27 am, Chad Killingsworth
>  wrote:
> > It's the same problem. You are making the assumption that the ne.x
> > value is always greater than the sw.x value. However, as the overlay
> > is wrapped to the other side of the map, this is no longer the case.
> > This is resulting in negative values being assigned to div.style.width
> > and div.style.height.
> >
> > To fix it, I just changed line 64 and 65 of overlay.js to:
> >
> >   div.style.width = (Math.max(ne.x, sw.x) - Math.min(ne.x,sw.x)) +
> > 'px';
> >   div.style.height = (Math.max(ne.y, sw.y) - Math.min(ne.y,sw.y)) +
> > 'px';
> >
> > After that change, I was no longer getting script errors.
> >
> > Chad Killingsworth
> >
> > On Mar 22, 10:33 pm, dany0212  wrote:
> >
> > > Hello Chad,
> >
> > > Thanks a lot for replying.
> >
> > > I think I figured out the error on Line:65, it seems one of my lat/
> > > long boundaries for one of the overlays was incorrect.
> > > It seems Firefox did not care for it, GoogleChrome showed overlay with
> > > incorrect position and IE gave that error.
> > > Fixing that lat/long boundary fixed that error.
> > > Thanks a lot for your help.
> >
> > > But it seems while that error is gone, IE is still giving error when
> > > moving maps around and getting to the edge of the overlay to be re-
> > > drawn in another position.
> > > Looking at this same page, but only with one overlay Australia:
> >
> > >http://ez-datasolutions.com/maps/v3/map_example1overlay.html
> >
> > > If you move the map say from right to left and as Australia overlay
> > > about to be re-drawn on another position, it will give an error, now
> > > for Line: 64
> >
> > > Very strange, can't seem to understand what else I could be doing
> > > wrong here.
> >
> > > If you see anything else wrong here, I would really appreciate it.
> >
> > > Thanks again for your help.
> >
> > > Daniel
> >
> > > On Mar 16, 10:30 pm, Chad Killingsworth
> >
> > >  wrote:
> > > > For one of your overlays (I didn't try to figure out which one), the
> > > > statement on line 65 (sw.y - ne.y) returns a negative number.
> Internet
> > > > explorer apparently does not like you assigning a negative height
> > > > value.
> >
> > > > Chad Killingsworth
> >
> > > > On Mar 16, 8:45 pm, dany0212  wrote:
> >
> > > > > Hello,
> >
> > > > > I am pretty new to Google Maps API v3.
> >
> > > > > I have been struggling to fix this issue in IE8 and IE7.
> > > > > The issue seems to be related to Overlays I added to color some
> > > > > countries on the map.
> > > > > I know v3 of Google maps does not support addOverlay() method which
> > > > > exists
> > > > > in v2. I used the example present on the site for v3 Google maps
> > > > > examples for OverlayView code to add my color overlays for
> countries.
> >
> > > > > Here is the code I am using to add Overlay:
> http://www.ez-datasolutions.com/maps/v3/js/overlays.js
> >
> > > > > I am calling it like this from my main page:
> >
> > > > > // create overlay
> > > > > var overlay = new Overlay(latlonBounds, image, map);
> >
> > > > > Here is my page:
> http://www.ez-datasolutions.com/maps/v3/map_example.html
> >
> > > > > When the page loads in IE8 or IE7 and I start moving the map around
> I
> > > > > get these errors.
> > > > > Here are the errors I am getting when viewing my page in IE8 or
> IE7:
> >
> > > > > Message: Invalid argument.
> > > > > Line: 65
> > > > > Char: 3
> > > > > Code: 0
> > > > > URI:http://ez-datasolutions.com/maps/v3/js/overlays.js
> >
> > > > > I am not exactly sure why it would be throwing this error at that
> > > > > line.
> > > > > It does not do that in Firefox or Chrome.
> >
> > > > > Thanks a lot for your help.
>
> --
> You received this message because you are subscribed to 

Re: [Google Maps API v3] Latitude and Longitude(X,Y) coordinates

2010-03-30 Thread Chris Apolzon
You can use the geocoder sevice.  I've had good luck getting locations of
villages in Africa (in the DRC specifically) without using a bias parameter,
but if you get weird results a bias will usually help clean the data up.

On Tue, Mar 30, 2010 at 6:46 AM, vin.c  wrote:

> How are you Guys?
> I would like to know if there is a way of getting latitude and
> longitude coordinates(X,Y) for cities or of a country e.g. South
> Africa
>
> Your help is much appreciated.
>
> --
> 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...@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...@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: Future IE6 compat - breaking on old functionality, or just new features?

2010-03-19 Thread Chris Apolzon
Chrome frame is great, but requires an extra download for the end-user.
 imho, its then no different from requiring the user to install flash

On Fri, Mar 19, 2010 at 8:49 AM, Marcelo  wrote:

> On Mar 19, 1:43 pm, Brak  wrote:
> > Could the old browser issue (IE6 at least) be circumvented altogether
> > by that project I heard about which acts essentially as an ActiveX
> > plugin which simulates a Google Chrome Browser that takes up the whole
> > page, then renders the original page in itself?
>
>
> Possibly. You can read about it in the links I posted in the V2 group:
>
> http://groups.google.com/group/google-maps-api/browse_thread/thread/147276c08adc711
>
>
> --
> Marcelo - http://maps.forum.nu
> --
>
>
>
> > And thanks for letting us know.
> >
> > On Mar 19, 3:11 am, "Thor (Google Employee)" 
> > wrote:
> >
> >
> >
> > > Exactly. :-)
> >
> > > And to tell you that if we can not make a new feature work on these
> > > browsers, that will not stop us from launching it.
> >
> > > On Mar 19, 2:09 pm, Josh Rosenthal  wrote:
> >
> > > > So... the announcement is more a matter of giving us notice that if
> ya'll
> > > > encounter a feature where the only way to implement it is break the
> old
> > > > browsers, that won't stop you from implementing said feature, rather
> than
> > > > telling us that you're not going to be paying any attention to
> whether or
> > > > not you might break functionality on the old browsers.  Sounds
> reasonable.
> >
> > > > Thanks!
> > > > Josh
> >
> > > > On Thu, Mar 18, 2010 at 10:34 PM, Thor (Google Employee) <
> >
> > > > thor.mitch...@gmail.com> wrote:
> > > > > On Mar 19, 12:41 pm, Josh Rosenthal  wrote:
> >
> > > > > > Is the intent that already
> > > > > > existing functionality should remain functional?  ie: Given a map
> I've
> > > > > > already built in v3 of the API, which I don't plan to add
> features to,
> > > > > and
> > > > > > don't do anything to take advantage of new functionalities.  Will
> my map
> > > > > > continue to function under IE6, or will code be pushed that
> breaks
> > > > > existing
> > > > > > functionality in older browsers?
> >
> > > > > Where possible we will maintain backwards compatibility for these
> > > > > browsers. Only if a new feature is launched that requires changes
> > > > > which can not be implemented in a way that avoids regressions on
> > > > > unsupported browsers without significant negative impact on
> supported
> > > > > browsers would be consider breaking backwards compatibility with
> > > > > unsupported browsers.
> >
> > > > > If this becomes necessary we will provide reasonable notice. There
> is
> > > > > currently nothing on the roadmap that could require this, and I
> > > > > suspect that by the time something like that comes along the usage
> of
> > > > > these browsers will have declined so much as to make it
> > > > > inconsequential.
> >
> > > > > Many thanks,
> >
> > > > > Thor.
> >
> > > > > --
> > > > > 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...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > google-maps-js-api-v3+unsubscr...@googlegroups.com 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...@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...@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: Change Geocoder response format

2010-03-17 Thread Chris Apolzon
No, but if you just need JSON conversion, json2.js will do it for you much
cheaper than loading Prototype.

On Wed, Mar 17, 2010 at 10:57 AM, Xabi  wrote:

> Actually I use Prototype framework (prototype.org)
>
> Object.toJSON() -> string
>
> But I ask if there's other way without load a framework, a way using
> some function of the Maps API
>
>
> On 17 mar, 15:48, Brak  wrote:
> > Someone correct me if I'm wrong, but you'd need some sort of function
> > to iterate through your variable and convert it to display everything
> > as a string. Similar to PHP's print_r function or Perl's Data::Dumper
> > module. You can probably find one elsewhere on the internet, but not
> > here. This is a general JavaScript issue.
> >
> > Alternatively, if you just want to see WTF is inside that variable,
> > you can use Google Chrome or Safari's Inspector/Developer Tools,
> > Firefox's Firebug extension, or Internet Explorer's Developer Toolbar.
> > Those tools let you look at the contents of variables either by using
> > a breakpoint or outputting variable contents to a console log (minus
> > IE for the latter).
> >
> > Hope that helps.
> >
> > On Mar 17, 5:35 am, Xabi  wrote:
> >
> >
> >
> > > geocoder = new google.maps.Geocoder();
> >
> > > geocoder.geocode({'latLng':marker.getPosition()},
> > > function(response,status){
> >
> > >  //At this point I need to store the response as a Json String in
> > > a HTML TextArea element. I want to retrieve the string conversion of
> > > the JSON Objeto.How can I do it?
> >
> > > })
>
> --
> 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...@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...@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] Is This Allowed

2010-03-17 Thread Chris Apolzon
I'm no expert, but as long as your map isn't behind restricted
authentication or a firewall, it sounds like normal use of the API.

On Wed, Mar 17, 2010 at 7:26 AM, Osiris  wrote:

> Hi,
>
> We are working on an web app which uses the Google Maps API.
>
> I know there are terms about having to display things on maps if we
> use the service, and I need to know if our app would be breaking the
> t&c's.
>
> Essentially we will get the users location (Via them entering the post
> code and geo-coding it). Then we get their destination through a drop
> down box. This journey is then sent to the directions handler, and we
> get the directions.
>
> But what we also do is loop through every other entry in the drop down
> box, to see which gives the shorter journey times (As coming from
> different directions will change the results), then we place makers
> over the map at the different destinations, and also list these on the
> page with links, which, when clicked will show the relevant route
> using the DirectionsService.setDirections() method (Having stored the
> relevent direction result in a global variable).
>
> Is this allowed? Or is it breaking the t&c's?
>
> Thanks In Advance
>
> --
> 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...@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...@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.lng is not a function

2010-03-16 Thread Chris Apolzon
Looks like the latLngToDivPixel method takes in a point (a latLng object) so
try passing position in instead of lat.

On Tue, Mar 16, 2010 at 4:29 PM, midimid  wrote:

> Continuing my experience with overlay and projection.
>
> I have a custom overlay class and have made sure that the projection
> is retrieved only after onAdd. The projection is placed in a var
> available. None of my script runs until onAdd has been called.
>
> Much much later in my scripting I have the following code that is
> throwing the error:
> Error: a.lng is not a function
> Source File:
> http://maps.gstatic.com/intl/en_us/mapfiles/api-3/0/33/main.js
> Line: 33
>
> function setMarkers() {
>for (var markerIndex in markers) {
>var marker = markers[markerIndex];
>var position = marker.getPosition();
>var lat = position.lat();
>var p1 = proj.fromLatLngToDivPixel(lat);
>}
> }
>
>
> Note that I'm not even calling for longitude. If I comment out the var
> p1 line, everything works fine. I've also confirmed that proj, lat,
> position, and marker are not undefined.
>
> --
> 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...@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...@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: Does Google Maps JavaScript API v3 support Symbian OS?

2010-03-16 Thread Chris Apolzon
Also, although not official, WebOS handles v3 pretty well (at least what
I've done with it thus far)

On Tue, Mar 16, 2010 at 8:16 AM, Chad Killingsworth <
chadkillingswo...@missouristate.edu> wrote:

> Why 2 threads with the same question?
>
> There are only 2 mobile platforms with official support: Android and
> the iPhone.
>
> Chad Killingsworth
>
> On Mar 15, 9:29 pm, ruiran  wrote:
> > On Symbian SDK emulator, it is able to work well while it seems that
> > some functionality is not available on real device(Symbian phone),
> > such as the function of getting maps according to current location
> > from GPS locator on cell phone.
> > So does the API support Symbian?
>
> --
> 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...@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...@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: Map Polygons stored extermally in an SVG file

2010-03-14 Thread Chris Apolzon
If you're just using SVG to externally store the data, you might find it easier 
to use a spatially enabled database (MySQL Spatial or PostGIS).  Unless you are 
looking for portability of data, in which case your SVG approach would probably 
be better (although PostGIS will allow you to dump your data into a shapefile 
or KML (I believe) format)
On Mar 14, 2010, at 4:26 PM, Brak wrote:

> Yes. I understand SVG isn't supported by all browsers. I'm not
> interested in putting SVG directly on the web page at all. I'm talking
> about using the SVG file format to store google maps polygon
> coordinate points externally from my javascript code. The SVG file
> would be parsed and each  in the file would be rebuilt and
> reconstructed on the map as a google.maps.Polygon(). Google Maps
> Polygons support are not dependent on a browser's native SVG support.
> When the Maps API receives a google.maps.Polygon it creates SVG for
> browsers that support it, it creates VML objects if the client is
> using IE, and if the browser doesn't support SVG at all, it sends the
> request to the tile server and receives image tiles back. Native SVG
> support for browsers is irrelevant in terms of what I'm talking about.
> I'm only wanting to store the *points* to my polygons in the SVG file,
> which are used to create google.maps.Polygon() objects for the API.
> 
> I was curious if anyone had tried this method, had written anything in
> v3 code already, or had any tips or understanding of the SVG format
> that may make it easier to write.
> 
> On Mar 13, 11:54 am, bratliff  wrote:
>> On Mar 12, 7:04 pm, Brak  wrote:
>> 
>>> Thanks for the tips bratliff. I was actually expecting i'd have to do
>>> some scaling, but I was thinking if I setup my polygons right and the
>>> canvas properly in illustrator, I could do some simple conversions on
>>> the points to scale them up/down to the right size, so they could
>>> relate to my lat/lng system (alternate projection, flat, not
>>> spherical).
>> 
>>> About the resizing for the zoom levels. Are you sure that will be
>>> necessary, since map polygons are scaled automatically when zoomed? I
>>> probably didn't really explain that portion of my original post. I'd
>>> want to go from SVG XML through a few conversions resulting in native
>>> Google map polygons and polylines, which would be handled by the API.
>>> That would remove the need for me to deal with an SVG overlay and
>>> matching up the lines and points etc.
>> 
>> Some browsers like Internet Explorer do not support SVG.  Safari /
>> Chrome / iPhone may not either.  Both Firefox & Opera do support SVG.
> 
> -- 
> 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...@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...@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: Problem using JSON object instead of array

2010-03-14 Thread Chris Apolzon
Well, excuse my incapable human js-parsing.
Please post a link before Marcelo tells you to ;)

On Sun, Mar 14, 2010 at 3:41 PM, runboy  wrote:

> Hi Chris
>
> That is not an error. The start paren is before images:
>
>var image = new google.maps.MarkerImage('images/airplane-
> tourism.png',
>new google.maps.Size(32, 37),
>new google.maps.Point(0,0),
>new google.maps.Point(0, 16));
>
> Firebug doesn't see any errors in the json obj.
>
> On Mar 14, 8:30 pm, Chris Apolzon  wrote:
> > new google.maps.Point(0, 16));
> > You have an extra paren.  But please post a link to a sample post if you
> > really expect feedback from the group.  Additionally, using a developer
> tool
> > like Firebug would have pointed out this line as an error in the console.
> > (You may have other errors, but I stopped reading)
> >
> > On Sun, Mar 14, 2010 at 5:44 AM, runboy  wrote:
> > > I haven't played much around with JSON, so this is probably a minor
> > > problem with my code. I can easily ad an array of markers and make the
> > > code work, but I would really like to use a json object instead for
> > > various reasons. I have included the code. Right now it just shows a
> > > map in the middle of nowhere and doesn't reflect the bounds set. Below
> > > this code I have included the code where I am using an Array instead
> > > which works fine.
> >
> > > // Code with JSON
> > > Object://
> >
> > > http://www.w3.org/1999/xhtml";>
> > > Google Suggest
> > >  > > >
> > > http://maps.google.com/maps/api/js</a>
> ?
> > > sensor=false">
> > > 
> > > var map;
> > > function initialize() {
> > >  var myOptions = {
> > >zoom: 10,
> > >center: new google.maps.LatLng(0, 0),
> > >mapTypeId: google.maps.MapTypeId.ROADMAP
> > >  }
> > >  map = new
> > > google.maps.Map(document.getElementById("map_canvas"),myOptions);
> > >  setMarkers(map, JsonObj);
> > >  }
> > > var JsonObj = {"markers": [
> > > {
> > > "lat": 33.098134,
> > > "lng": -83.248951,
> > > "acid": "402",
> > > "type": "location1 type",
> > > "price": "34000"
> > > },
> > > {
> > > "lat": 37.623947,
> > > "lng": -77.337481,
> > > "acid": "944",
> > > "type": "location2 type",
> > > "price": "4"
> > > }
> > > ]};
> >
> > > function setMarkers(map, locations) {
> > > var image = new google.maps.MarkerImage('images/beachflag.png',
> > > new google.maps.Size(32, 37),
> > > new google.maps.Point(0,0),
> > > new google.maps.Point(0, 16));
> > > var shape = {
> > >  coord: [1, 1, 1, 37, 32, 37, 32 , 1],
> > >  type: 'poly'
> > >  };
> > > var bounds = new google.maps.LatLngBounds();
> > > for (var i = 0; i < locations.markers.length; i++) {
> > > var location = locations.markers[i];
> > > var myLatLng = new google.maps.LatLng(location.lat, location.lng);
> > > var marker = new google.maps.Marker({
> > > position: myLatLng,
> > > map: map,
> > > icon: image,
> > > shape: shape,
> > > title: location.type,
> > > zIndex: location.acid
> > >  });
> > >  bounds.extend(myLatLng);
> > >  map.fitBounds(bounds);
> > >  }
> > > }
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> >
> > > // Code with
> > > Array://
> >
> > > http://www.w3.org/1999/xhtml"; >
> > > 
> > >Google Suggest
> > > 
> > > http://maps.google.com/maps/api/js</a>
> ?
> > > sensor=false">
> > > 
> > > var map;
> > > function initialize() {
> > >  var myOptions = {
> > >zoom: 10,
> > >center: new google.maps.LatLng(0, 0),
> > >mapTypeId: google.maps.MapTypeId.ROADMAP
> > >  }
> > >  map = new
> > > google.maps.Map(document.getElementById("map_canvas"),myOptions);
> > >

Re: [Google Maps API v3] Problem with V3 API on Droid

2010-03-14 Thread Chris Apolzon
I get a blank gray canvas (clicking the buttons does nothing) on Chrome on
OSX.  Maybe your successful test results were from a cached copy?

Errors that showed up in console:
Uncaught TypeError: Cannot read property 'length' of null
v3kmltest3.html:1 Uncaught
TypeError: Cannot read property 'x' of undefined
10v3kmltest3.html:17 Uncaught
TypeError: Cannot read property 'x' of undefined

2010/3/14 Júlio César Chaves 

> I'm using firefox on ubuntu, it didn't open for me.
>
>
> Júlio César Chaves
>
>
>
> On Sun, Mar 14, 2010 at 2:49 PM, john byrne  wrote:
>
>> I have a problem displaying a map on the Droid.
>>
>> This page
>>
>>  http://picturemap.nfshost.com/v3kmltest3.html
>>
>> displays the HTML (titles and buttons) but not the map tiles or the
>> Markers.
>>
>> This page works on PC's OK (IE, Firefox, Safari, Opera), and on
>> Windows mobile with Opera.  But no luck on the Droid
>>
>> Can you have a look?
>>
>> tks,
>>
>> JB
>>
>> --
>> 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...@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...@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...@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] Problem using JSON object instead of array

2010-03-14 Thread Chris Apolzon
new google.maps.Point(0, 16));
You have an extra paren.  But please post a link to a sample post if you
really expect feedback from the group.  Additionally, using a developer tool
like Firebug would have pointed out this line as an error in the console.
(You may have other errors, but I stopped reading)

On Sun, Mar 14, 2010 at 5:44 AM, runboy  wrote:

> I haven't played much around with JSON, so this is probably a minor
> problem with my code. I can easily ad an array of markers and make the
> code work, but I would really like to use a json object instead for
> various reasons. I have included the code. Right now it just shows a
> map in the middle of nowhere and doesn't reflect the bounds set. Below
> this code I have included the code where I am using an Array instead
> which works fine.
>
> // Code with JSON
> Object://
>
> http://www.w3.org/1999/xhtml";>
> Google Suggest
>  >
> http://maps.google.com/maps/api/js?
> sensor=false">
> 
> var map;
> function initialize() {
>  var myOptions = {
>zoom: 10,
>center: new google.maps.LatLng(0, 0),
>mapTypeId: google.maps.MapTypeId.ROADMAP
>  }
>  map = new
> google.maps.Map(document.getElementById("map_canvas"),myOptions);
>  setMarkers(map, JsonObj);
>  }
> var JsonObj = {"markers": [
> {
> "lat": 33.098134,
> "lng": -83.248951,
> "acid": "402",
> "type": "location1 type",
> "price": "34000"
> },
> {
> "lat": 37.623947,
> "lng": -77.337481,
> "acid": "944",
> "type": "location2 type",
> "price": "4"
> }
> ]};
>
> function setMarkers(map, locations) {
> var image = new google.maps.MarkerImage('images/beachflag.png',
> new google.maps.Size(32, 37),
> new google.maps.Point(0,0),
> new google.maps.Point(0, 16));
> var shape = {
>  coord: [1, 1, 1, 37, 32, 37, 32 , 1],
>  type: 'poly'
>  };
> var bounds = new google.maps.LatLngBounds();
> for (var i = 0; i < locations.markers.length; i++) {
> var location = locations.markers[i];
> var myLatLng = new google.maps.LatLng(location.lat, location.lng);
> var marker = new google.maps.Marker({
> position: myLatLng,
> map: map,
> icon: image,
> shape: shape,
> title: location.type,
> zIndex: location.acid
>  });
>  bounds.extend(myLatLng);
>  map.fitBounds(bounds);
>  }
> }
> 
> 
> 
> 
> 
> 
>
>
> // Code with
> Array://
>
>
> http://www.w3.org/1999/xhtml"; >
> 
>Google Suggest
> 
> http://maps.google.com/maps/api/js?
> sensor=false">
> 
> var map;
> function initialize() {
>  var myOptions = {
>zoom: 10,
>center: new google.maps.LatLng(0, 0),
>mapTypeId: google.maps.MapTypeId.ROADMAP
>  }
>  map = new
> google.maps.Map(document.getElementById("map_canvas"),myOptions);
>  setMarkers(map, jsonArr);
>
> }
>
> //0=type, 1=GeoLate, 2=GeoLong, 3=id, 4=year, 5=price, 6=pic1
> var jsonArr = [
> ['location1', 33.098134, -83.248951, 402, '1967', '34000',],
> ['location2', 37.623947, -77.337481, 944, '1977', '4', 'Pic']
> ];
>
>
> function setMarkers(map, locations) {
>
>var image = new google.maps.MarkerImage('images/airplane-
> tourism.png',
>new google.maps.Size(32, 37),
>new google.maps.Point(0,0),
>new google.maps.Point(0, 16));
>
>  var shape = {
>  coord: [1, 1, 1, 37, 32, 37, 32 , 1],
>  type: 'poly'
>  };
>
>  var bounds = new google.maps.LatLngBounds();
> for (var i = 0; i < locations.length; i++) {
> var location = locations[i];
> var myLatLng = new google.maps.LatLng(location[1], location[2]);
> var marker = new google.maps.Marker({
> position: myLatLng,
> map: map,
> icon: image,
> shape: shape,
> title: location[0],
> zIndex: i
> });
> bounds.extend(myLatLng);
> map.fitBounds(bounds);
> }
> }
> 
> 
> 
> 
> 
> 
>
> --
> 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...@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...@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: Cursor hot spot problem in Chrome

2010-03-11 Thread Chris Apolzon
Difficult to reproduce, but it seems to happen when you are near the left
edge, when toggling between hand and pointer, the pointer shifts its
alignment from the right of expected to the left of expected.  Much more
obvious when directly compared to Firefox.  Also seems to be more of an
issue on Windows than OSX.

On Thu, Mar 11, 2010 at 10:59 AM, Dave  wrote:

>
> http://code.google.com/apis/maps/documentation/v3/examples/marker-simple.html
>
> Starting to the left of the marker, slowly drag the cursor over the
> marker. You'll see you are almost completely on top of the marker
> before it finally turns into the finger pointer. If I drag over the
> top part of the marker, I can go completely back and forth over the
> marker and never get the pointer.
>
> Again, this is with the Google Chrome browser. Works fine in Firefox.
>
> Dave
>
>
> On Mar 10, 3:09 pm, pete  wrote:
> > Can you please post a link?
> >
> > On Mar 11, 8:10 am, Dave  wrote:
> >
> >
> >
> > > In v3, I'm having trouble clicking on markers with Google Chrome
> > > (verified on PC and Unix). It appears that the hot spot for the hand
> > > cursor is way up in the upper-left corner rather than somewhere in the
> > > middle of the palm. I'm seeing this problem with the standard markers,
> > > but it's really annoying with my custom markers which are smaller.
> >
> > > No problem in Firefox or using API v2.
> >
> > > Dave
>
> --
> 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...@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...@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: 2010/03/03: New Release

2010-03-05 Thread Chris Apolzon
I would second the ability to be able to load the previous version of the
API.  I understand v3 is not stamped "production-ready" but in the rare
event when a new version breaks our code and we were set to demo
somethingwe're left out in the rain.

On Fri, Mar 5, 2010 at 1:45 PM, bratliff  wrote:

> Prior to deployment, Google ought to check out every release on a slow
> dial-up connection.  Preferrably not one with an ISP located just a
> few miles away.  A five minute cursory test is not enough.  Clear
> cache.  Do a lot of dragging, panning , zooming & map type switching.
> You will see lost tiles.  Once a tile is lost the API will never
> attempt to load it again.  It is easy to detect.  The DOM will contain
> "transparent.png" rather than real images.  If at least one valid tile
> exists for a particular zoom level currently in view, you ought to
> assume the other tiles are just "lazy" rather than missing.
>
> Also, please provide a mechanism to revert to a known stable version.
> I am not asking for access to every prior version just one good one.
>
> --
> 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...@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...@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] Stack overflow at line: 13

2010-03-02 Thread Chris Apolzon
Post a sample ;)  Use firebug+1.

On Tue, Mar 2, 2010 at 10:19 AM, Christoph wrote:

> Hi,
>
> I'm developing a new application in Google Maps API V3.
> On Internet Explorer 7 i sometimes get an javascript alert error:
> "Stack overflow at line: 13"
> After that the application can't be use anymore. How can I determine
> the cause of this error?
>
> Best regards
> Christoph
>
> --
> 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...@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...@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: update spinner

2010-03-02 Thread Chris Apolzon
I think he's referring to the traditional "ajax is loading spinning wheel
graphic".  My guess is that it needs to be placed outside of map_canvas as
when you load the API, I'd think it more-or-less hi-jacks that div.

On Tue, Mar 2, 2010 at 9:44 AM, Marcelo  wrote:

> On Mar 2, 3:34 pm, Sheldon Goldberg - Dream Realty
>  wrote:
> >
> > Any suggestions?
> >
>
> Yup. Please read and follow the group's posting guidelines:
>
> http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/2b3f101fd509919e#
>
> http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical
>
> By the way, what's a "spinner"?
>
> --
> Marcelo - http://maps.forum.nu
> --
>
>
>
>
> > --
> > Sheldon Goldberg
> > Broker - Dream Realtywww.DreamRealty.com
> > 727-512-6030
> > 877-983-7326
>
> --
> 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...@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...@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 simple example with 'onclick'?

2010-03-01 Thread Chris Apolzon
You redeclared "var map" inside initialize.  Remove the "var" identifier 
inside your initialize function and it should work.



-- Sent from my Palm Pre
On Mar 1, 2010 11:33 AM, AL  wrote: 

Hi,

I'm a complete beginner to maps API and so far have struggled to fire

an event triggered by a button on a page. I've checked the Google Code

pages and examples but no luck...

I simply wanted to set the map to center when user clicks a button.



How do I do that?



Here's my code (map.js):



var map;



function initialize() {

var ZielonyJar = new google.maps.LatLng(49.80005, 19.0197);

var myOptions = {

zoom: 12,

center: ZielonyJar,

navigationControl: true,

navigationControlOptions: {style:

google.maps.NavigationControlStyle.SMALL},

mapTypeControl: true,

mapTypeControlOptions: {style:

google.maps.MapTypeControlStyle.DROPDOWN_MENU},

mapTypeId: google.maps.MapTypeId.ROADMAP

}

var map = new google.maps.Map(document.getElementById("map_canvas"),

myOptions);



var image = '../images/house_icon.png';

var myMarker = new google.maps.Marker({

position: ZielonyJar,

map: map,

icon: image

});

}



centrujMape = function() {

map.setCenter(ZielonyJar);

}





HTML:











I will appreciate your help on this matter. Thanks! -- 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...@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...@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: Displaying several maps

2010-02-27 Thread Chris Apolzon
Perhaps...but the pan effect makes sure the user is aware of the proximity
of the two sets.

On Sat, Feb 27, 2010 at 11:11 AM, JCD21  wrote:

> I found the solution:
> http://monique.damichel.perso.sfr.fr/tests/TwoMaps2.htm
>
>
> On 26 fév, 20:17, JCD21  wrote:
> > Hello.
> > I've tested a single map with 2 groups of several hundreds of markers:
> http://monique.damichel.perso.sfr.fr/tests/SingleMap.htm
> > and two maps using the div tag:
> http://monique.damichel.perso.sfr.fr/tests/TwoMaps.htm
> > (use the scroll bars to display the buttons)
> > It seems the second solution is better but I was not able to display
> > the two maps at the same place:style.display="none" doesn't seem to
> > work with google maps?
> > and style.visibility="hidden" doesn't display the second map at the
> > right place.
> > What's the solution?
> >
> > On 22 fév, 16:56, Esa  wrote:
> >
> >
> >
> > > The first one is better.
> >
> > > The number of dom elements on page is kept smaller. When a single dom
> > > node is changed, browser performs a full reflow of the page. That is
> > > why the number of nodes in dom is critical for performance.- Masquer le
> texte des messages précédents -
> >
> > - Afficher le texte des messages précédents -
>
> --
> 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...@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...@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] Displaying several maps

2010-02-20 Thread Chris Apolzon
I think the best way to handle that is to actually have each map get its own
div and show/hide the div itself as opposed to trying to swap out which map
owns the div.  May the powers of CSS be with you ;)

On Fri, Feb 19, 2010 at 2:46 PM, JCD21  wrote:

> Hello.
> I want to display several maps on a html page at the same place but
> one after another.
> I know it's possible to create several instances, for example map0=new
> google.maps.Map(document.getElementById("map_canvas"),options),
> map1=... in the same file  but what's the code to display map0 and
> then map1 on the page?
> Thank you.
>
> --
> 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...@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...@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: object rendering performance

2010-02-20 Thread Chris Apolzon
Looks pretty good.  Any chance you could put a demo together that loads all
those vertices at once?

On Fri, Feb 19, 2010 at 5:55 PM, bratliff  wrote:

> On Feb 18, 4:14 pm, "Ozgur Yogurtcu" 
> wrote:
> > You might consider using Berry's lightweight polygon library. He recently
> > added IE support, and is quite fast and lightweight.
> >
> > His samples are at:http://www.polyarc.us/polycluster
> >
> > Ozgur
>
> Thanks for your endorsements Ozgur & Chris
>
> I have added another demo (486 polys 3.2 million vertices) to:
>
>http://www.polyarc.us/polycluster
>
> In the "Experimental" section, click:
>
>"Interstate Highway System"
>
> Please let me know which browsers have difficulty with it.  Firefox
> appears to be OK.
>
> I am still trying to fix the IE8 bug.  It is caused by improper
> clipping of the tiles.  Every other browser including IE6 & IE7 clips
> the tiles correctly.  IE8 adds one extra pixel to each dimension.  The
> result is one extra row or column of superimposed pixels at the edge
> of the two adjacent tiles.  Their colors agree but their alphas are
> combined to produce a dark pixel.
>
> I have asked the son of a friend of mine who happens to work for
> Microsoft to help.  It is not his area of responsibility but he said
> he will pass it on to someone else who can help.
>
> --
> 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...@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...@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: Building complicated polylines with multiple colors in multiple directions

2010-02-16 Thread Chris Apolzon
I ran into this same issue trying to render many complicated polygons and
polylines.  I have since migrated my code to use bratliff's polycluster
library.  I can't recommend it enough!  And the progress that has been made
over the past month has made it even better.

On Mon, Feb 15, 2010 at 10:51 AM, bratliff  wrote:

> On Feb 15, 11:48 am, Jasperdc  wrote:
> > Hello,
> >
> > I'm currently trying to figure out how I can show traffic information
> > in an overlay on a Google Map (in a country where google maps does not
> > already support Live Traffic). The provided data looks like: "point a
> > to point b is red" but the problem is that I've got approx. 2000 of
> > these small lines, this causes the browser to crash/timeout due to the
> > long render time (obviously) when adding them to the map one by one.
> >
> > Now I was wondering if encoded polygon lines are really the way to go
> > here... maybe I could group by color so I would have 3 encoded poly
> > line objects (e.g. green,orange,red,...). The problem in this case is
> > that the highways obviously head in multiple directions, which makes
> > it impossible to define in a single polyline (as far as I know).
> >
> > So my final question would be:
> > Does anyone have experience with drawing complex polylines in multiple
> > directions with up to about 2000 small parts?
> >
> > An alternative solution would be to draw all the roads in green by
> > default and overwrite parts with red/orange where applicable.
> >
> > Thanks in advance,
> > Jasper
>
> Look at the "Lake Michigan Shore" demo accessable from:
>
>http://www.polyarc.us
>
> It is a small demo but it scales well.  A single OverlayView handles
> all polys rather than one OverlayView per poly.  A single event
> listener handles all dragging, panning & zooming.  Polys are defined
> in a cluster rather than individually.  Polys must have unique names
> which are their reference handles.
>
> You can change the color of several polys to the same color with the
> "setColor" method.
>
>var polyarray=[polya,polyb,polyc,polyd, ... ];
>
>var
>
> color={fill:,fillColor:,fillAlpha:,stroke:,strokeColor:,strokeAlpha:,weight:};
>
>cluster.setColor(polyarray,color);
>
> --
> 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...@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...@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: But in a Demo Example - custom infowin dow has small error

2010-02-11 Thread Chris Apolzon
I've run into the a is null error before but I thought it was one of those 
generic, 'I'm not really telling you what's wrong' kinds of errors.  (thus, I 
cannot tell you how I solved it)



-- Sent from my Palm Pre
Eightlines wrote:

If I'm not mistaken this is the location to file a bug for the Maps V3

API. Once you file it could you please post back with the issue number

so I can follow its resolution? I ran into this issue the other day.



http://code.google.com/p/gmaps-api-issues/issues/entry?template=Maps%20API%20v3%20-%20Bug



Thanks,



Brent





On Feb 11, 2:03 pm, graydot  wrote:

> Hi,

>

> I was playing around with the demo examples and found a small error.

> Where do I report 
> this?http://gmaps-samples-v3.googlecode.com/svn/trunk/infowindow_custom/in...

>

> I was actually trying to show the overlay without any click and it

> didn't work like I wanted it to.

> Digging in, I noticed that firefox error console was complaining 'a is

> null' in line 26 of main.js

>

> Traced it to line 188 in InfoBox.prototype.panMap function

> [code]

> google.maps.event.removeListener(this.boundsChangedListener_);

> [/code]

> needs to be changed to

> [code]

> if (this.boundsChangedListener_)

> google.maps.event.removeListener(this.boundsChangedListener_);

> [/code]

>

> Thanks.

>

> Jeba Singh Emmanuel



-- 

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...@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...@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: Request for Internet Explorer debug help

2010-02-08 Thread Chris Apolzon
I can't say how much I appreciate all the help the community has given B.
Ratliff on this.  We all benefit from some form of IE-support, even if we'd
rather kill the browser.  (Also, thank you B Ratliff for continuing to
hammer away on this problem)
-Chris

On Mon, Feb 8, 2010 at 1:55 PM, bratliff  wrote:

> On Feb 7, 5:40 pm, "Ozgur Yogurtcu"  wrote:
> > Berry,
> >
> > I don't think the reverse functionality is really important. I just
> pointed
> > out to you to tell the functional differences between the Chrome and the
> IE
> > version.
> >
> > I've been playing with the US demo (110,000 vertices). It seems to work
> > pretty smoothly (zoom/pan etc) when all the states are visible. I think
> the
> > problem with the northwest territories sample is the single poly with too
> > many vertices (maybe IE is too slow for the point reduction of 41,000
> > vertices?). Anyway I agree, IE users  will have to live with that and the
> > state sample (110,000) should be good enough.
> >
> > Another glitch in the IE poly's is that a line is visible at the side of
> > each tile (like there's a pixel overlap or a border for each tile-looks
> more
> > like an overlap as the tile line seems lighter than the actual border
> line).
>
> Thanks again Ozgur.  It was a bug.  I believe I have fixed it.  I
> applied a special case optimization for weight=1.  I did not realize
> Internet Explorer was doing anti-aliasing.  The dithered pixels in the
> adjacent tile were clipped off.  I have dropped the optimization.
>
> --
> 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...@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...@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: FYI: New Release (2010/02/03)

2010-02-03 Thread Chris Apolzon
Sorry, two more things I wanted to mention.  If you change the zoom level in
IE6 the polygon is not redrawn (performs as expected in IE7).  In IE6, the
polygon is white as opposed to the red color in IE7 (but the random polygons
on the source window are red in both browsers).
Hope this is helpful!

On Wed, Feb 3, 2010 at 3:38 PM, Chris Apolzon  wrote:

> Also, interestingly enough, if you click examine, there are some random
> triangular polygons showing up in the source window.  They stay put if you
> move/scroll the window.  (I tried to find these on the actual map, but I
> don't see them anywhere).
>
>
> On Wed, Feb 3, 2010 at 3:37 PM, Chris Apolzon  wrote:
>
>> I just tested both of those pages in IE6 and IE7 and I see a triangle
>> polygon near puerto rico.  No errors.
>>
>>
>> On Wed, Feb 3, 2010 at 3:16 PM, bratliff  wrote:
>>
>>> On Feb 3, 8:11 pm, "Susannah (Google Employee)" 
>>> wrote:
>>> > I'm not seeing errors in IE 8.  If you clear your cache, do you still
>>> > get the error?
>>>
>>> I am using IE6.  Also, both URLs contain typos.
>>>
>>>www/polyarc.us
>>>
>>> should be
>>>
>>>www.polyarc.us
>>>
>>> I have a defective installation of IE6 which may be causing it.
>>> Yesterday, everything worked fine with v3.27a.
>>>
>>> --
>>> 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...@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...@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: FYI: New Release (2010/02/03)

2010-02-03 Thread Chris Apolzon
Also, interestingly enough, if you click examine, there are some random
triangular polygons showing up in the source window.  They stay put if you
move/scroll the window.  (I tried to find these on the actual map, but I
don't see them anywhere).

On Wed, Feb 3, 2010 at 3:37 PM, Chris Apolzon  wrote:

> I just tested both of those pages in IE6 and IE7 and I see a triangle
> polygon near puerto rico.  No errors.
>
>
> On Wed, Feb 3, 2010 at 3:16 PM, bratliff  wrote:
>
>> On Feb 3, 8:11 pm, "Susannah (Google Employee)" 
>> wrote:
>> > I'm not seeing errors in IE 8.  If you clear your cache, do you still
>> > get the error?
>>
>> I am using IE6.  Also, both URLs contain typos.
>>
>>www/polyarc.us
>>
>> should be
>>
>>www.polyarc.us
>>
>> I have a defective installation of IE6 which may be causing it.
>> Yesterday, everything worked fine with v3.27a.
>>
>> --
>> 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...@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...@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: FYI: New Release (2010/02/03)

2010-02-03 Thread Chris Apolzon
I just tested both of those pages in IE6 and IE7 and I see a triangle
polygon near puerto rico.  No errors.

On Wed, Feb 3, 2010 at 3:16 PM, bratliff  wrote:

> On Feb 3, 8:11 pm, "Susannah (Google Employee)" 
> wrote:
> > I'm not seeing errors in IE 8.  If you clear your cache, do you still
> > get the error?
>
> I am using IE6.  Also, both URLs contain typos.
>
>www/polyarc.us
>
> should be
>
>www.polyarc.us
>
> I have a defective installation of IE6 which may be causing it.
> Yesterday, everything worked fine with v3.27a.
>
> --
> 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...@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...@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] Custom InfoWindow examples

2010-02-03 Thread Chris Apolzon
I think that should work, but $('#my_div') should probably be
$('#my_div').html()

On Tue, Feb 2, 2010 at 4:51 PM, Ben Appleton  wrote:

> What happens if you forward your div, not your div's html, as the
> InfoWindow's content?  That is, write:
>
> infowindow = new google.maps.InfoWindow({content: $("#my_div")});
>
> On Wed, Feb 3, 2010 at 2:58 AM, koichirose  wrote:
> > Hello, I'm trying to use existing divs in my html source as
> > infowindows (instead of default ones).
> >
> > I know I can set the content to whatever I want by doing:
> > infowindow = new google.maps.InfoWindow({content: $("#my_div").html
> > ()}); //this uses jquery;
> >
> > but I want to style the infowindow itself as an existing div on my
> > page (which is, of course, hidden).
> >
> > All the examples I found create and style the div dinamically with
> > javascript, while my div is already created via php+html+css and I
> > just want to display it when I click on a marker.
> >
> > Is there a way to do this? How?
> >
> > Thank you!
> >
> > --
> > 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...@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...@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...@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] Polylines with MVC array broken!

2010-02-01 Thread Chris Apolzon
No polyline is created on load.  You have to click to add latlngs to the
path array.  It will auto-draw a line after you add the second point (by
clicking).  I tested in Chrome and it worked.

On Sun, Jan 31, 2010 at 4:48 PM, Rohit Rai  wrote:

> I am not able to see the polyline using MVC array example at
>
> http://code.google.com/intl/it/apis/maps/documentation/v3/examples/polyline-complex.html
>
> Doesn't show the polyline!
>
> --
> 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...@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...@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: best practice

2010-01-31 Thread Chris Apolzon
I don't know of any tools for visualizing the data, but the mysql function 
astext(geometry) and asgeom(wkt_text) will help you convert between the 
internal format (geom) and wkt, which is what you'll want to process on.  If 
you want to visualize the data outside of google maps, I recommend looking into 
the ogr2ogr command-line utility which will allow you to export a mysql 
geometry table as a shapefile, which can easily be viewed using an open-source 
GIS tool such as Quantum GIS.  I just navigated this mess in the last couple 
months, so if you'd like more direct help, feel free to email me off the list.

-Chris

On Jan 31, 2010, at 9:05 AM, jbogdani wrote:

> Thank you very much!
> I can not use postgres actually (my provider doesn't offer this
> service), and I'm trying with spatial MySQL, but I can not find on
> line any free tool that I can use to view / edit geodata stored in
> MySQL.
> Can anybody help me?
> Thank you
> 
> On 30 Gen, 22:46, Chris Apolzon  wrote:
>> If you will ever be doing advanced processing on the data (i.e. unions,
>> points on polys, etc.), I highly recommend a spatial-enabled MySQL setup (or
>> postgres (postgis) if you're willing to switch).  You can then get the data
>> out in WKT format, and its pretty trivial to convert this into processable
>> lat/lng pairs if you're using a backend scripting language.On Fri, Jan 29, 
>> 2010 at 4:33 AM, jbogdani  wrote:
>>> Hello all,
>>> I'm developing an app witch uses google maps api v3 and a MySQL
>>> database to store geo data (points, polygons, polylines and
>>> georeferenced images).
>>> I wanted to kow someone could help me in choosing the best format to
>>> store the data in the database.
>>> The main problem concerns polygons and polylines: actually I use, for
>>> polygons and polylines, the following format:
>>> lat1,long1;lat2,long2; etc... (commas to separate lat and lng and
>>> semicolon to separate different points). I can parse this format
>>> easily using javascript, but I was wondering if is there any
>>> recommended format to store the data.
>>> I don't want to find a solution that is good for me (already found it)
>>> but a widely shared one (if there is one).
>>> I see KML uses tabs to separate lat/lng and new lines to separate
>>> points. Is there any standard for this?
>>> Is there any standard way to "serialize" (to say it with a php term)
>>> MVCArrays?
>>> Thank you
>> 
>>> --
>>> 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...@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...@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...@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] google object

2010-01-30 Thread Chris Apolzon
I threw your code up onto a test page and it worked in IE8, Firefox, and
Chrome.

On Sat, Jan 30, 2010 at 1:25 PM, The_DEADman  wrote:

> Someone please help with this error.
> Actually my javascript knowledge is near to "null", so I don't know if
> I am doing everything right.
>
> Using tutorials and "hello, world" example from the official Google
> Maps v3 API page I have created the webpage receiving the airport name
> in the GET-parameters, for example: map.htm?apname="Ben-Gurion
> airport"
>
> After that, I call the standard geocoding function and try to display
> the result on the map.
>
> Everything works fine in Firefox, but I have the same error in
> Internet Explorer 8:
>
> <<< Error: 'google' - definition missing >>>
>
> It looks to me like the first script (specified with src = ".."
> attribute) has failed to load correctly.
>
> - If this is not the API problem,
> still please answer me by mail if you know how to solve that.
>
> ---| Scripts code (inserted into my  tag):
>
> http://maps.google.com/maps/api/js?
> sensor=false">
>
>  
>  var geocoder;
>  var map;
>
>  var address = new String();
>
>  function initialize() {
>
>geocoder = new google.maps.Geocoder();
>var latlng = new google.maps.LatLng(0, 0);
>var myOptions = {
>  zoom: 8,
>  center: latlng,
>  mapTypeId: google.maps.MapTypeId.ROADMAP
>};
>map = new google.maps.Map(document.getElementById("map_canvas"),
> myOptions);
>
>get_parseGet();
>  }
>
>  function makeSpan()
>  {
>var span = document.getElementById("mySpan");
>span.childNodes.item(0).nodeValue=address;
>  }
>
>  function get_parseGet()
>  {
>var getter = new String(window.location);
>
>var x = getter.indexOf("=", 0);
>
>// If no address, show something
>if (x==-1)
>{
>address = "Moscow, Kirpichnaya, 33";
>makeSpan();
>codeAddress();
>
>return;
>}
>else ;
>
>// getting the airport substring and unescaping
>
>getter = getter.substring(x+1);
>getter = unescape(getter);
>
>address = getter;
>makeSpan();
>codeAddress()
>  }
>
>  function codeAddress() {
>if (geocoder) {
>  geocoder.geocode( { 'address': address}, function(results,
> status) {
>if (status == google.maps.GeocoderStatus.OK) {
>  map.setCenter(results[0].geometry.location);
>  var marker = new google.maps.Marker({
>  map: map,
>  position: results[0].geometry.location
>  });
>} else {
>  alert("Geocode was not successful for the following reason:
> " + status);
>}
>  });
>}
>  }
>
> 
>
> --- Body contents:
>
> 
>
>  
>  
>
> Showing location of the airport:  id="mySpan">error.
>
> 
>
> --
> 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...@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...@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] best practice

2010-01-30 Thread Chris Apolzon
If you will ever be doing advanced processing on the data (i.e. unions,
points on polys, etc.), I highly recommend a spatial-enabled MySQL setup (or
postgres (postgis) if you're willing to switch).  You can then get the data
out in WKT format, and its pretty trivial to convert this into processable
lat/lng pairs if you're using a backend scripting language.

On Fri, Jan 29, 2010 at 4:33 AM, jbogdani  wrote:

> Hello all,
> I'm developing an app witch uses google maps api v3 and a MySQL
> database to store geo data (points, polygons, polylines and
> georeferenced images).
> I wanted to kow someone could help me in choosing the best format to
> store the data in the database.
> The main problem concerns polygons and polylines: actually I use, for
> polygons and polylines, the following format:
> lat1,long1;lat2,long2; etc... (commas to separate lat and lng and
> semicolon to separate different points). I can parse this format
> easily using javascript, but I was wondering if is there any
> recommended format to store the data.
> I don't want to find a solution that is good for me (already found it)
> but a widely shared one (if there is one).
> I see KML uses tabs to separate lat/lng and new lines to separate
> points. Is there any standard for this?
> Is there any standard way to "serialize" (to say it with a php term)
> MVCArrays?
> Thank you
>
> --
> 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...@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...@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: How do I clear all the markers on the map

2010-01-29 Thread Chris Apolzon
I recall having issues with this when I first started using this version of
the API.  The only advice I can give is to make sure each new polygon gets a
new instance of an mvcarray for its paths.  I ended up writing a manager
class to ensure each polygon had its own "private" path and marker arrays.
 Otherwise, be sure to watch out for closure issues when declaring the
polys.

On Fri, Jan 29, 2010 at 2:07 AM, Arlen xiao  wrote:

> How can a map simultaneously display multiple Polygon?
>
> --
> Arlen
>
> msn:arlenx...@live.cn 
> skype ID:arlenxiao
> E-mail:arlenx...@gmail.com 
> Tel:+86-0755-82840647 Ext 616
> Mobile phone:+86-13417456139
> Fax:+86-0755-82840648
>
>
>  --
> 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...@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...@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] Alternative JS include method

2010-01-26 Thread Chris Apolzon
Thanks.  The issue was exacerbated by my using two non-google libraries
which depended on the google api being loaded.  I've managed to get my
framework to play nice, so I'm now able to use the normal include method.
 (FYI: Drupal doesn't like remote js includes).  Thanks for the info though.

On Tue, Jan 26, 2010 at 2:47 PM, Barry Hunter
wrote:

> Because the geocoder request is cross domain it must be loaded via
> JSON and callback, which means the API must be able to include a
> remote JS, into the page.
>
> You could probably use the same technique to load the Maps API, by not
> using a script tag directly.
>
> Example:
> http://code.google.com/apis/ajax/documentation/#Dynamic
>
> I beleive v3 is available via the common loader. So you don't need to
> save the load JS locally, which is always going to end badly.
>
>
> 2010/1/26 Chris Apolzon :
> > My current framework is unable to do remote js includes properly, so
> > I've resorted to a hardcoded "google.js" which consists of the initial
> > load code returned by the default remote inclusion line.  Obviously
> > this freezes me to a specific release of the API, but my issue is with
> > the geocoder service.  Whenever I use the hardcoded js API include, my
> > geocoder requests are denied stating:
> > Your client does not have permission to get URL /maps/api/js/
> > GeocodeService.Search?query=
> >
> > Is there any way for me to use a non-remote copy of the API and still
> > have access to the geocoder service?
> >
> > Thanks.
> >
> > --
> > 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...@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.
> >
> >
>
>
>
> --
> Barry
>
> - www.nearby.org.uk - www.geograph.org.uk -
>
> --
> 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...@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...@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.



[Google Maps API v3] Alternative JS include method

2010-01-26 Thread Chris Apolzon
My current framework is unable to do remote js includes properly, so
I've resorted to a hardcoded "google.js" which consists of the initial
load code returned by the default remote inclusion line.  Obviously
this freezes me to a specific release of the API, but my issue is with
the geocoder service.  Whenever I use the hardcoded js API include, my
geocoder requests are denied stating:
Your client does not have permission to get URL /maps/api/js/
GeocodeService.Search?query=

Is there any way for me to use a non-remote copy of the API and still
have access to the geocoder service?

Thanks.

-- 
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...@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: Tile Layer Overlay

2010-01-20 Thread Chris Apolzon
Actually, that terrain map is pretty close to what I need.  I actually don't 
care about roads and the project is based in Africa.  So as long as I can get 
clean maps of Africa, I'm happy.
Thanks again for looking into this.

On Jan 20, 2010, at 3:09 PM, Esa wrote:

> 
> 
> On Jan 20, 4:07 pm, Chris Apolzon  wrote:
>> Esa-
>>   Thanks!  By paid license are you referring to an Enterprise API account,
>> or something different?
> 
> 
> I don't know. In any case you must be careful with terms when
> accessing tilesets that are not natively offered by API.
> 
> However I studied those tilesets again and I am not sure if you are
> satisfied with any of them. The only map tiles without any texts are
> the Terrain base tiles (lyrs=t) but they don't have streets on them!
> 
> You can see them here:
> http://koti.mbnet.fi/ojalesa/v3/osm_dual.htm
> 
> If Open Streetmap has good coverage in the area you need, you might
> find suitable tiles from CloudMade. They serve OSM tiles with many
> style options.
> http://maps.cloudmade.com/editor
> -- 
> 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...@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...@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: Tile Layer Overlay

2010-01-20 Thread Chris Apolzon
Esa-
  Thanks!  By paid license are you referring to an Enterprise API account,
or something different?

On Tue, Jan 19, 2010 at 7:49 PM, Esa  wrote:

>
>
> On Jan 19, 9:58 pm, Chris Apolzon  wrote:
> > Is there any way to display a roadmap or terrain layer without the text
> layers?  I have a client who would like the simplicity of the roadmap view
> without the google-provided text.
>
> There are no text layers but the texts are in the map images.
>
> Google has some different image sets online. Some of them might suit
> your needs. You can find them by trying different one-letter values to
> 'lyrs'-parameter of the tile image url.
>
> I think you will need a paid license to use those.
>
> --
> 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...@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...@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: Tile Layer Overlay

2010-01-19 Thread Chris Apolzon
Is there any way to display a roadmap or terrain layer without the text layers? 
 I have a client who would like the simplicity of the roadmap view without the 
google-provided text.

On Jan 19, 2010, at 2:44 PM, Chad Killingsworth wrote:

> Most of the functionality for tile overlays is now part of the V3 API.
> You can see an example of how to implement a Tile Overlay (called an
> ImageMapType) at 
> http://code.google.com/apis/maps/documentation/v3/overlays.html#ImageMapTypes
> 
> For those still needing the additional functionality of my script
> (such as opacity), it is still accessible. However, no further
> development with it is planned.
> 
> Chad Killingsworth
> 
> On Nov 29 2009, 12:58 am, Chad Killingsworth
>  wrote:
>> For my v3 project, I needed a tile layer overlay. Since one didn't
>> exist, I wrote my own. I see questions about tile layers popping up
>> somewhat regularly, so I figured I'd share my class for others to use.
>> 
>> Tile Layer 
>> Script:http://search.missouristate.edu/map/mobile/examples/tileoverlay.js
>> 
>> Example 
>> Usage:http://search.missouristate.edu/map/mobile/examples/tileoverlay.htm
>> 
>> I fully expect (or maybe just hope) this class to be obsolete soon as
>> I anticipate that tile layer functionality will be part of the v3 api.
>> 
>> Chad Killingsworth
> -- 
> 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...@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...@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: Encoded polylines vs Polyline class

2010-01-13 Thread Chris Apolzon
I'm quite impressed by the speed of your demos.  Is your polycluster js file
open source?  Do you have any documentation or can I peek at the
unobfuscated source?

On Wed, Jan 13, 2010 at 1:46 AM, bratliff  wrote:

> On Jan 13, 6:44 am, bratliff  wrote:
>
> OOPS, bad URL  Try:
>
>http://www.polyarc.us/polycluster
>
> --
> 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...@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...@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.



[Google Maps API v3] Re: Encoded polylines vs Polyline class

2010-01-12 Thread Chris Apolzon
I'm wondering if I can speed up my map by passing a pre-encoded
polyline into the polyline constructor instead of letting google
encode it.  I haven't seen anything in the v3 documentation about
forcing the use of an encoded polyline, is there a workaround to allow
this to happen?  I'd be fine abandoning the polyline class if
necessary.

On Jan 5, 6:35 pm, Ben Appleton  wrote:
> v3 does this under the hood.  It is optimized for fast rendering of
> complicated polylines/polygons; we're working to improve rendering of large
> numbers of polylines/polygons.
>
>
>
> On Wed, Jan 6, 2010 at 4:35 AM, Chris Apolzon  wrote:
> > I suppose I should add I'm primarily interested in the ability to use
> > the encoding levels.  I thought v3 did something like this out of the
> > box, but I haven't found any firm confirmation of that.  (See
>
> >http://googlegeodevelopers.blogspot.com/2009/09/polys-in-maps-api-v3-...
> > )
>
> > On Jan 5, 12:32 pm, Chris Apolzon  wrote:
> > > I'm working on a project where we'll be rendering a large number of
> > > polylines and polygons, and I was curious if any of the core
> > > developers could chime in on performance differences between using
> > > encoded polylines and the new polyline/polygon classes?  I thought
> > > maybe encoded polylines had gone the way of the dodo, but I noticed
> > > Esa comment on a v2 thread that the Directions class is using encoded
> > > polylines.
> > > (Or if anyone has any horror stories of why I shouldn't even consider
> > > encoded polylines that would be welcome as well!)
> > > Thanks!
>
> > --
> > 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...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-maps-js-api-v3+unsubscr...@googlegroups.com > 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...@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.




[Google Maps API v3] Re: Autoloading is loading more than it's told too

2010-01-06 Thread Chris Apolzon
Pete may have a point, but I believe JqueryUI is to JQuery as
Scriptaculous is to Prototype.  It does seem odd to load scriptaculous
along side jquery with no prototypejs.

On Jan 5, 5:34 pm, pete  wrote:
> As far as I understand JqueryUI has many fancy animation and effects
> classes to it, so it wouldn't surprise me if the classes/libraries you
> mention above were included in it's full realease.
>
> Try not including jqueryui - and see if it goes away. If it does then
> it's part of the full release. You can customize which classes to
> download athttp://jqueryui.com/download, however you would need to
> include this file seperately outside of the API loading method above.
>
> On Jan 5, 5:41 pm, mp-  wrote:
>
> > I want to load only: Google Maps (v3), JQuery core (v1.3.2), and
> > JQuery UI (v1.7.2).
>
> > So I'm using the following URL to autoload those libraries:
>
> >http://www.google.com/jsapi?autoload={ "modules":
> > [ {name:"maps",version:3,other_params:"sensor=false"},
> > {"name":"jquery","version":"1.3.2"},
> > {"name":"jqueryui","version":"1.7.2"} ]}
>
> > However, if you go to that URL, it appears that in addition to what I
> > want to automatically loaded ... it's also loading: scriptaculous,
> > feeds, and books
>
> > Why is the autoloader loading more than what's being defined?
-- 
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...@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.




[Google Maps API v3] Re: Encoded polylines vs Polyline class

2010-01-05 Thread Chris Apolzon
I suppose I should add I'm primarily interested in the ability to use
the encoding levels.  I thought v3 did something like this out of the
box, but I haven't found any firm confirmation of that.  (See
http://googlegeodevelopers.blogspot.com/2009/09/polys-in-maps-api-v3-now-with-level-of.html)

On Jan 5, 12:32 pm, Chris Apolzon  wrote:
> I'm working on a project where we'll be rendering a large number of
> polylines and polygons, and I was curious if any of the core
> developers could chime in on performance differences between using
> encoded polylines and the new polyline/polygon classes?  I thought
> maybe encoded polylines had gone the way of the dodo, but I noticed
> Esa comment on a v2 thread that the Directions class is using encoded
> polylines.
> (Or if anyone has any horror stories of why I shouldn't even consider
> encoded polylines that would be welcome as well!)
> Thanks!
-- 
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...@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.




[Google Maps API v3] Encoded polylines vs Polyline class

2010-01-05 Thread Chris Apolzon
I'm working on a project where we'll be rendering a large number of
polylines and polygons, and I was curious if any of the core
developers could chime in on performance differences between using
encoded polylines and the new polyline/polygon classes?  I thought
maybe encoded polylines had gone the way of the dodo, but I noticed
Esa comment on a v2 thread that the Directions class is using encoded
polylines.
(Or if anyone has any horror stories of why I shouldn't even consider
encoded polylines that would be welcome as well!)
Thanks!
-- 
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...@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: Map doesn't appear

2009-12-31 Thread Chris Apolzon
Do you have a sample page you can point us to?

On Thu, Dec 31, 2009 at 8:32 AM, lorenzo83  wrote:

> Hi.
> Probably I didn't explain well:
> I paste the AJAX response (in HTML) that doesn't work (map is gray but
> other things are ok!) in a new page and the same HTML works (I can see
> the map)! So I think it's a problem of css, probably the display:none
> that I use to hide the div before the AJAX response is ready. I had a
> similar problem with the v2 and I solved setting the sizes of div, but
> now?? I saw the references and I try:
>
> var size = new google.maps.Size(width, height, 'px', 'px');
>
> but this not works.
>
> On Dec 31, 7:20 am, Peter Dang  wrote:
> > Hi,
> >
> > I think this problem occur when tha Ajax has an errors so it not success
> > (when call ajax), sothat the map not display, please take care the ajax
> > function.
> >
> >
> >
> > On Wed, Dec 30, 2009 at 11:32 PM, lorenzo83 
> wrote:
> > > I'm going mad with this problem:
> >
> > > I'm using google maps api v 3 and I don't know why sometimes map
> > > doesn't appear in my div...I have to say that the page (with the map)
> > > is called with AJAX method and is set as display:none before the call.
> > > The HTML returned after this AJAX call is correct, infact if I paste
> > > it into a new static page I can see the map correctly, so I think is a
> > > problem of css/javascript...
> >
> > > I had a similar problem with the version 2 and I resolved it setting
> > > the size (with GSize) during the creation of the map, but know how I
> > > can solve this problem???
> >
> > > --
> >
> > > 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...@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.
> >
> > --
> >
> > Thanks and Best Regards
> >
> > Peter Dang
> > Professional Map team developer
> > --
> > Phone : +84 933 933 649
> > Axon Active Vietnam
>
> --
>
> 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...@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...@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] What IDE to use for javaScript

2009-12-26 Thread Chris Apolzon
There aren't many ides that offer js code completion purely by nature of the 
language.  For the most part, you need a custom file for code completion in 
each framework.  I've seen this done in komodo edit for the more well-known 
frameworks, but I believe you'd need to find something custom for the gmap api.
Unfortunately I don't know too much about gwt so hopefully someone else will 
respond to that part of your question.

-- Sent from my Palm Pre
Tester wrote:

I am new to google Maps javascripts api v3.



As far as I can read google Maps javascripts api v3 is developed in

javascript.

what ide is the best to best to develop the applications that use

google Maps javascripts api v3 ?

Can I use Google Web Toolkits ?

how do I create a js file in Google Web Toolkit ?

how I can put code completion, code  assistance  in the js, and html

file that use js ?



--



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...@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...@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] How to add listener for overlays

2009-12-23 Thread Chris Apolzon
I haven't tried doing this with an overlay but if you can afford to use a 
polygon instead, I can confirm that will work.  As a fallback I believe you 
could surround the overlay with a transparent polygon.

-- Sent from my Palm Pre
tomar wrote:

Hi,



I am facing a small issue.

When I am trying to open a info window on click of a custom overlay,

but Its not working. However same is working with marker. As far as I

know both extends MVC object but I am not able to find the cause of

problem.



...

..

...

var marker = new google.maps.Marker({

position: myLatLng,

map: map,

title: 'HELLO'

});

var infowindow = new google.maps.InfoWindow({

'content': 'Hello Tomar'

});



Working code for marker->

google.maps.event.addListener(marker, 'click', function() {

  infowindow.open(map,marker);

});



Not Wroking for overlay ->

  // USGSOverlay is custom overlay so overlay is coming on map -

copied sample code

  var overlay = new USGSOverlay(bounds, srcImage, map);



  // not able to add the listener for click event on overlay :(

   google.maps.event.addListener(overlay, 'click', function() {

  infowindow.open(map,overlay);

});



Would someone please suggest me to make this working?



--



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...@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...@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] Markers problem

2009-12-19 Thread Chris Apolzon
It looks like you are using the v2 google maps api, so you should probably post 
your question in that mailing list instead.When I loaded your map, I get a map 
is not defined error on line 48 (map.addOverlay(marker162900);).  I'm not sure, 
but it looks like your cdata section ends just prior to this line, so I would 
take a look at moving the cdata endpoint to below the end of your script if 
possible.

On Sat, Dec 19, 2009 at 11:34 AM, nedi...@gmail.com wrote:

Hello.

I have a problem with markers.

You can see it here: http://www.bosanskikuhar.ba/maps.html

It doesn't show anything. Can you please help me?

Thank you very much.
Nedim

--

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...@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...@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: map misbehaves on iPhone

2009-12-17 Thread Chris Apolzon
In regards to the missing + and - zoom buttons, I seem to recall that v3 sniffs 
out the browser and applies certain "native" behaviors to the map.  I think you 
can explicitly ignore this, but I don't remember the syntax for doing so. (some 
sort of query parameter?)
-Chris

On Thu, Dec 17, 2009 at 10:39 PM, fr...@doeringphoto.com wrote:

Here are the experiences in v2. I quote a friend (since I don't own an
iPhone):

"This is so f***ing entertaining! The + and - zoom buttons do not work
at all on the iPhone. However, pinching and stretching now works
fairly OK, I get a "live zoom", but it is a bit choppy and recenters
the view a little bit. Double tapping to zoom in is now a disaster,
and lands me in random places, such as the southern coast of Sweden
[we start in Germany]. LOL!!! Oh, the "view" drop-down menu does work
on the iPhone, but it's somewhat hard to tap the tiny choices. Love
that "terrain" view.

But the + - buttons work nicely on my PowerBook in Safari, interesting
to see the layout in a regular browser.

Deleting the mileage scale is an unfortunate loss."


This is the first time I am trying to embed maps for the benefit of
iPhone users. Does it have to be this bad? Is there sample code
somewhere that works? I don't care which version of the API.

--

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...@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...@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: draggable-markers bug

2009-12-16 Thread Chris Apolzon
The KML test page also broke with the latest release.  I can post the link if 
needed.

-- Sent from my Palm Pre
Bob wrote:

Ooh, I see now. The example uses get_position which has been

deprecated.



On Dec 16, 3:57 pm, Bob  wrote:

> I had reported a completely different bug related to drag & drop.

> Before this bug if you released the draggable marker over a different

> marker the same type of bug would happen. I guess it's broken even

> more now. Hopefully they'll just fix it all.

>

> On Dec 16, 7:13 am, NikkoTheSwede  wrote:

>

>

>

> > Check this example from google documentation

>

> >http://gmaps-samples-v3.googlecode.com/svn/trunk/draggable-markers/dr...

>

> > Try and drag/drop the pin, Big error. Tried on mac and pc. It worked a

> > couple of days before.



--



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...@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...@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] how to get the draggable marker's new position

2009-12-15 Thread Chris Apolzon
You should hook into the dragend event and look at marker.getPosition().
Here's a snippet taken from one of the code samples: 
google.maps.event.addListener(marker, "dragend",   function() {for (var 
i=0, I = markers.length; i < I && markers[i] != marker; ++i);path.setAt(i, 
marker.getPosition());   }  );Obviously, this is taken from a polygon demo.  If 
you only have points, you should be able to simply call marker.getPosition()
On Tue, Dec 15, 2009 at 3:01 PM, katywang2...@gmail.com wrote:

Hi There,

The marker on the map can be set to be draggable. In my application, i
allow user to move the marker to correct the place, but how do i
remember this new place?

Thanks,

Wind

--

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...@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...@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] internet explorer & object doesn't support method

2009-12-14 Thread Chris Apolzon
I ran into a similar issue where IE complained when I forgot to declare a js 
variable with var.  Also, make sure any dom methods you call are IE-supported.  
(I think I had some issues calling .text() on a textfield)

On Mon, Dec 14, 2009 at 9:07 AM, stream...@gmail.com wrote:

here is the site/code: http://scoobymap.streamkid.net
my question is pretty simple: what the heck is wrong?

internet explorer whines with "object doesn't support this property or
method" on every new google.maps.*.
But, that's how it should work according to the tutorials and api
reference, and there is no mention about ie issues.

any ideas?

--

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




[Google Maps API v3] Re: Multiple Polygons

2009-12-11 Thread Chris Apolzon
It looks like redeclaring my map variable was what was causing the
havoc.  The following code performs as expected:

path_options.map = map;
path_options.paths = top_path;
var top_shape = new google.maps.Polygon(path_options);

google.maps.event.addListener(top_shape, "click", function()
{ alert("top_shape");});

path_options.map = map;
path_options.paths = bottom_path;
var bottom_shape = new google.maps.Polygon(path_options);

google.maps.event.addListener(bottom_shape, "click", function()
{ alert("bottom_shape");});

(Both shapes are rendered, and clicking on a shape yields the
appropriate shape popup).  I guess I've answered my own question, but
I figured I'd post this here in case someone else is running into a
similar issue.

On Dec 11, 3:51 pm, Chris Apolzon  wrote:
> I was able to get both polygons rendered by setting the paths variable
> to Array(path1, path2).  I'm not sure if this will work tho, as I need
> to attach a different infowindow to each polygon and I believe this
> solution results in one polygon with 2 paths (which happen to not
> overlap).
>
> On Dec 11, 3:10 pm, Chris Apolzon  wrote:
>
> > I'm not sure exactly what I'm missing here.  I have this code
> > executing as an onclick event on a button.  When the button is
> > pressed, you see the second polygon (only).  If you hit it really
> > fast, you can see both polygons on the map prior to the layer being
> > loaded...I'm guessing thats just a trick of the eye and the first is
> > disappearing as the second is drawn.
>
> > 
> > map = new google.maps.Map(document.getElementById("map"),
> > map_options);
> >     path_options.paths = top_path;
> >     var top_shape = new google.maps.Polygon(path_options);
>
> >     top_shape.setMap(map);
>
> >     map = new google.maps.Map(document.getElementById("map"),
> > map_options);
> >     path_options.paths = bottom_path;
> >     var bottom_shape = new google.maps.Polygon(path_options);
>
> >     bottom_shape.setMap(map);
> > 
>
> > On Dec 1, 5:47 pm, Esa  wrote:
>
> > > You define the map over and over again before each polygon.
>
> > >   var map = new google.maps.Map(document.getElementById("map_canvas"),
> > > myOptions);
>
> > > Keep the first of those lines and delete the other ones.

--

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




[Google Maps API v3] Re: Multiple Polygons

2009-12-11 Thread Chris Apolzon
I was able to get both polygons rendered by setting the paths variable
to Array(path1, path2).  I'm not sure if this will work tho, as I need
to attach a different infowindow to each polygon and I believe this
solution results in one polygon with 2 paths (which happen to not
overlap).

On Dec 11, 3:10 pm, Chris Apolzon  wrote:
> I'm not sure exactly what I'm missing here.  I have this code
> executing as an onclick event on a button.  When the button is
> pressed, you see the second polygon (only).  If you hit it really
> fast, you can see both polygons on the map prior to the layer being
> loaded...I'm guessing thats just a trick of the eye and the first is
> disappearing as the second is drawn.
>
> 
> map = new google.maps.Map(document.getElementById("map"),
> map_options);
>     path_options.paths = top_path;
>     var top_shape = new google.maps.Polygon(path_options);
>
>     top_shape.setMap(map);
>
>     map = new google.maps.Map(document.getElementById("map"),
> map_options);
>     path_options.paths = bottom_path;
>     var bottom_shape = new google.maps.Polygon(path_options);
>
>     bottom_shape.setMap(map);
> 
>
> On Dec 1, 5:47 pm, Esa  wrote:
>
>
>
>
>
> > You define the map over and over again before each polygon.
>
> >   var map = new google.maps.Map(document.getElementById("map_canvas"),
> > myOptions);
>
> > Keep the first of those lines and delete the other ones.

--

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




[Google Maps API v3] Re: Multiple Polygons

2009-12-11 Thread Chris Apolzon
I'm not sure exactly what I'm missing here.  I have this code
executing as an onclick event on a button.  When the button is
pressed, you see the second polygon (only).  If you hit it really
fast, you can see both polygons on the map prior to the layer being
loaded...I'm guessing thats just a trick of the eye and the first is
disappearing as the second is drawn.


map = new google.maps.Map(document.getElementById("map"),
map_options);
path_options.paths = top_path;
var top_shape = new google.maps.Polygon(path_options);

top_shape.setMap(map);

map = new google.maps.Map(document.getElementById("map"),
map_options);
path_options.paths = bottom_path;
var bottom_shape = new google.maps.Polygon(path_options);

bottom_shape.setMap(map);


On Dec 1, 5:47 pm, Esa  wrote:
> You define the map over and over again before each polygon.
>
>   var map = new google.maps.Map(document.getElementById("map_canvas"),
> myOptions);
>
> Keep the first of those lines and delete the other ones.

--

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