[Google Maps API v3] Re: Changing Overlay Opacity - what is the right way?

2010-05-27 Thread Marcelo
If you use MapType instead of ImageMapType you have a handle to the IMG objects that hold the tiles, (because you create them). With that handle you can set the opacity directly, and there's no need to add/remove. http://maps.forum.nu/v3/gm_customTiles.html -- Marcelo - http://maps.forum.nu --

[Google Maps API v3] Re: How to add WMS layer to existing Gmap

2010-05-27 Thread Jason
If you happen to be using GeoServer/GeoWebCache to serve up your own WMS services they have built a great Google Maps service to hand out the proper images (http://geowebcache.org/docs/current/services/ gmaps.html). I set up a demo here: http://demos.geojason.info/google-maps-geowebcache-demo.php

Re: [Google Maps API v3] Re: binding click Event on infoBox

2010-05-27 Thread Luke Mahé
Just looking at your code: GM.event.addDomListener(openedInfoBox,'clikc',function() You probably want it to say 'click' :) - Luke On Thu, May 27, 2010 at 6:22 PM, Chad Killingsworth < chadkillingswo...@missouristate.edu> wrote: > It would really help if you'd post a link to your site. > > I loo

[Google Maps API v3] Re: How to add WMS layer to existing Gmap

2010-05-27 Thread William
As a hack the following map fixes the white lines for zoom 2 to 5: http://www.william-map.com/20100526/2/tilefix2_5.htm -- 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...@

[Google Maps API v3] Re: binding click Event on infoBox

2010-05-27 Thread Chad Killingsworth
It would really help if you'd post a link to your site. I looks like you are trying to add the click event to the actual InfoBox. You need to add the click event the the contents of the info box. You'll need to create an actual DIV and attach the click event to that. Chad Killingsworth On May 27

[Google Maps API v3] Re: How to add WMS layer to existing Gmap

2010-05-27 Thread William
On May 28, 6:52 am, Josh Rosenthal wrote: > As you zoom in to > say, zoom level 12 or so, those white bars get rather wide. > (try looking @ > *map.setCenter( new > google.maps.LatLng(55.77587839343693,-67.76026580078124));* > *map.setZoom(12);* > on either of our NOAA maps.) > yeah its over 20 pi

[Google Maps API v3] Re: How to capture a json Web Service Request to a variable

2010-05-27 Thread pete
Hi there, Whilst capturing a web service request and parsing it's data is not a Google Maps API related question, I'll attempt to answer as best as possible for your current query. Firstly, using a framework like JQuery makes this task extremely simple, with their $.getJSON method. For documentat

Re: [Google Maps API v3] Re: Encoded polylines -- what's the new [best] alternative?

2010-05-27 Thread Ben Appleton
The v2 encoding scheme did 2 things: 1 - Compress the coordinates to reduce bandwidth 2 - Optionally, include precomputed levels of detail, which the JS would use to render quickly. Regarding 1: there are open-source libraries to encode and decode polylines to reduce bandwidth which you can use.

Re: [Google Maps API v3] Street View de V2 -> V3

2010-05-27 Thread Marc Ridey
Bonjour piep14, Pourrais-tu m'expliquer un peu plus ce que tu veux faire? Veux-tu afficher un marker sur la carte quand StreetView est disponible? Veux-tu afficher un marjker dans StreetView? Merci Marc On Fri, May 28, 2010 at 2:52 AM, piep14 wrote: > Bonjour, je suis français, je poste la tra

[Google Maps API v3] How to capture a json Web Service Request to a variable

2010-05-27 Thread ron1776
I can't find documentation on how to capture the reply from Web Service Request. We want to set the json return array to a variable so we can parse the map data we need to then build the cost to make a map. Ideas? - Ron -- You received this message because you are subscribed to the Google Grou

[Google Maps API v3] Changing Overlay Opacity - what is the right way?

2010-05-27 Thread Garthan
I have a way that works. I am removing and altering the opacity by a questionable technique then re-adding it. map.overlayMapTypes.removeAt(0); struct.b.opacity=1; map.overlayMapTypes.insertAt(0,struct); http://www.microimages.com/ogc/maps/seven42.html -- You received this message because y

[Google Maps API v3] Re: Rotated aerial perspectives

2010-05-27 Thread Thor (Google Employee)
If you're referring to the Aerial imagery offered in v2, it's on the roadmap but we can't commit to an exact ETA just yet. Thor. On May 26, 4:03 am, Anders Conbere wrote: > We just got Street View, wondering if we can expect to get the rotated > perspectives in v3 any time soon. > > ~ Anders --

[Google Maps API v3] Re: Encoded polylines -- what's the new [best] alternative?

2010-05-27 Thread SpoilsportMotors
On May 27, 2:37 am, Ben Appleton wrote: > I suggest just passing the LatLng coordinates to google.maps.Polyline > or google.maps.Polygon.  If the performance turns out to be poor, then > I'd suggest using the Ramer-Douglas-Peucker algorithm to remove > unnecessary vertices on the server before se

[Google Maps API v3] Re: refresh map ?

2010-05-27 Thread Beach Bum
sorry, i should have mentioned after logging in, click on the link 'My Fishing Map' to go to the mapping page. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api...@googlegrou

[Google Maps API v3] Re: Finding to cities between route of selected points

2010-05-27 Thread Cenk
I searched and in same topics include POI data result. I don't want to POI data, only name of major cities. Is it possible? If it is possible can you give me example code? Thanks much and much.. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript

[Google Maps API v3] refresh map ?

2010-05-27 Thread Beach Bum
Hello. I am trying to use a dropdown box to limit how many points are read from mysql database by filtering the datetime field. my site is located here: www.myrecmaps.com (username: test password: testing) the site opens with a default value of '7' for the dropdown box and the sql filters ou

[Google Maps API v3] Finding to cities between route of selected points

2010-05-27 Thread Cenk
Firstly sorry for my English, For example; http://www.marsrutai.info/directions.htm#39.92215,32.86589,41.0028,28.98115 In this link, I want to list name of cities between selected points. Ex, on route of Ankara-İstanbul, thre are 4 cities. Ankara (Point 1) 1. Bolu 2. Düzce 3. Adapazarı 4. İzmit

[Google Maps API v3] Re: binding click Event on infoBox

2010-05-27 Thread Miguel.camba
I tried but it doesn't work for me. I paste my code. //TODO: Comprobar que solo se muestra un infobox var GM = google.maps; var openedInfoBox; function showInfoBox(marker){ $.getJSON('places/'+marker['id'],function(data){ var boxText = ' '; boxText += "ID:"+ data['id']+"";

Re: [Google Maps API v3] Re: How to add WMS layer to existing Gmap

2010-05-27 Thread Josh Rosenthal
Huh. Right. Yay for having made the math overly complicated. I guess I still don't get the white lines, in large part because they never show up on my massgis data. http://maps.massgis.state.ma.us/mhc/examples/gmap3wms_example2.html Perhaps it's due to the different backends? (geoserver + arcs

[Google Maps API v3] Re: How to add WMS layer to existing Gmap

2010-05-27 Thread William
On May 28, 2:30 am, Josh Rosenthal wrote: > Using > the NOAA data results in some strange problems with the overlays having > white lines around tiles or pairs of tiles.  I'll post asking about it in a > separate thread, but if anyone has thoughts as to what could cause that/how > to fix it, I'd l

[Google Maps API v3] Re: Polylines not visible in Mobile device (for example N97)

2010-05-27 Thread Chad Killingsworth
The only mobile devices currently supported are the iPhone and Android phones. That being said, you can probably get it to work if you'll use KMLLayers instead of polylines. They render as image tiles. Chad Killingsworth On May 27, 10:30 am, Jari wrote: > Hi, > > Take N97 and go to for > examp

Re: [Google Maps API v3] Radius Results by Postal Code

2010-05-27 Thread Kevin Slack
I was being lazy. The trick is the Haversine formula, explained here: http://code.google.com/apis/maps/articles/phpsqlsearch_v3.html. All better now. Thank you. Kevin On Thu, May 27, 2010 at 12:40 PM, Kevin Slack wrote: > Yes, I think that was the path of least resistance: a database of po

[Google Maps API v3] Re: binding click Event on infoBox

2010-05-27 Thread Chad Killingsworth
You need to use addDomListener. addListener is only for map events. Chad Killingsworth On May 27, 11:42 am, "Miguel.camba" wrote: > I have the same problem. Neither my InfoBoxes nor his internal > elements seems to capture click events. > I tried adding a listener to the infobox itself: >     va

Re: [Google Maps API v3] Radius Results by Postal Code

2010-05-27 Thread Marc Guay
1. User enters distance value (say 5km) and Postal Code (say A1A1A1) 2. Convert the PC into a LatLong 3. Loop through your database and ask "Is the distance between these two points less then or equal to 5km?", if yes, gimme that record! 4. Loop through the matching records and plot them on you

[Google Maps API v3] Street View de V2 -> V3

2010-05-27 Thread piep14
Bonjour, je suis français, je poste la traduction à la suite. J'avais fait ce code en version 2 et je souhaite maintenant l'adapter en version 3: Il permettait d'afficher un lien que lorsque la vue google view street était possible. Je n'arrive pas à le faire avec la version 3. Pourriez- vous m'aid

[Google Maps API v3] Re: binding click Event on infoBox

2010-05-27 Thread Miguel.camba
I have the same problem. Neither my InfoBoxes nor his internal elements seems to capture click events. I tried adding a listener to the infobox itself: var ib = new InfoBox(opts); google.maps.event.addListener(ib,'click',function() {alert('click!')}) And with JQuery on the content $('#i

Re: [Google Maps API v3] Radius Results by Postal Code

2010-05-27 Thread Kevin Slack
Yes, I think that was the path of least resistance: a database of postal codes and approximate LatLng codes. Now I've got website code that can easily fetch a LatLong code from a Postal Code. So now what? 1. I have a LatLng Coordinate 2. I want to set a maximum distance, say 30 kms 3. I ha

Re: [Google Maps API v3] Re: How to add WMS layer to existing Gmap

2010-05-27 Thread Josh Rosenthal
Hi All, We've updated the MassGIS Lyceum example to include using a WMS as basemaps. http://lyceum.massgis.state.ma.us/wiki/doku.php?id=googlemapsv3:home An example with the NOAA data can be found here: http://maps.massgis.stat

[Google Maps API v3] Re: Paid apps using Google Maps APIs

2010-05-27 Thread Miguel Ángel Vilela
This is actually a slippering subject, see this FAQ: Can I use the Google Maps APIs on a site that is password protected? http://code.google.com/apis/maps/faq.html#tos_password Will your application's private section do anything else (with the Maps API) than adding and editing data to a publicly

Re: [Google Maps API v3] You moved the signup link, it's hard to find now.

2010-05-27 Thread Miguel Angel Vilela
Thanks for reporting this! We recently removed the link to Sing Up from APIs that don't need keys to avoid confusion as many people still asks how to use the key with the V3 API and the new web services. Right now I could only find the link at: Google Maps API for Flash http://code.google.com/api

Re: [Google Maps API v3] Re: Paid apps using Google Maps APIs

2010-05-27 Thread Miguel Angel Vilela
I'm afraid so, it seems the free license terms requires the consumer (non-paying user) to have complete full access to the map and its functionality with out having to pay for it. On Thu, May 27, 2010 at 17:06, legendary wrote: > It seems you are right. The non paid section is ok with google, bu

[Google Maps API v3] Re: Any plans to introduce an async loader?

2010-05-27 Thread amattie
Perfect, that's exactly what I was looking for. Thanks guys! On May 27, 2:19 am, Miguel Angel Vilela wrote: > There is an FAQ about this, admittedly not very prominent: > > How can I load the API into a page asynchronously after the page has > loaded?http://code.google.com/apis/maps/faq.html#loa

[Google Maps API v3] remove icons KML

2010-05-27 Thread Santiago Nieto Carrera
Hi: I want to load a KML file and not show icons. Is it possible? In google maps Scale tag does not work and if I remove the tag icon shows me the default pin Solutions? Thanks. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group

[Google Maps API v3] Re: Paid apps using Google Maps APIs

2010-05-27 Thread legendary
It seems you are right. The non paid section is ok with google, but the salesperson i've been assigned said that the private section needed a premier account. Too bad they manage the prices/numbers they do. I think we'll have to change APIs for bing or some other GIS provider. Anyway, thanks for

[Google Maps API v3] Re: Draging a map triggers too much events

2010-05-27 Thread Miguel.camba
I found a nice solution mixing your comments and one idea from myself. I made a timer that fires other event that checks how much the user dragged the map. If is was a small movement, i do nothing. I use the idle event to stop the timer. I got a really smooth loading effect :) Thanks all. On 27 m

[Google Maps API v3] You moved the signup link, it's hard to find now.

2010-05-27 Thread telmnstr
Just a heads up, it's difficult to find the API signup now that the site has changed. -- 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 fr

[Google Maps API v3] Re: infowindow problem with polylines

2010-05-27 Thread sb
Hi Davide, Many thanks for the excellent response, it looks like it has solved the problem. I thought about computing the central point of the line but it is going to be unknown as to the zoom level of the user, or which part of the line/route they are clicking on. It is probably easier to show t

[Google Maps API v3] Problems with KML

2010-05-27 Thread Kris
Working off of the example given in the tutorials section I can't seem to get a kml file that was generated from google earth to load into my google map. The path is correct to the kml files as they reside in the same directory as the html, i've also tried absolute paths to no avail. here is my h

[Google Maps API v3] Polylines not visible in Mobile device (for example N97)

2010-05-27 Thread Jari
Hi, Take N97 and go to for example http://code.google.com/intl/fi-FI/apis/maps/documentation/javascript/examples/polyline-simple.html Polylines are not shown, is there any workaround for this? Br, Jari -- You received this message because you are subscribed to the Google Groups "Google Maps J

Re: [Google Maps API v3] Re: How to add WMS layer to existing Gmap

2010-05-27 Thread Davide Cremonesi
Hello there, I've put together a prototype implementation of such an ImageMapType implementation. If you want you can have a look here: http://neogismap.appspot.com/wms/index.html As you can see there are some problems with the projection, but this can probably be fixed playing with the SRS param

Re: [Google Maps API v3] Radius Results by Postal Code

2010-05-27 Thread Kevin Slack
Thanks Marc and Esa for your help. I've already got a perfectly functional database with perfectly functional php lookup queries. The one in particular that is giving me trouble is Postal Code. I don't want to get results from my database of addresses that match the Postal Code and plot the map

Re: [Google Maps API v3] Mousedown/mouseup/pointer funniness in Firefox

2010-05-27 Thread Jeff Hoppe
Any workarounds or fixes for this? In terms of usability, I'd ideally like to have a mousedown/mouseup solution for a single-click marquee selection tool... However, in the chance that this just wont work, I'd be satisfied with a two-click selection rectangle: click once for the initial point,

Re: [Google Maps API v3] Re: How to add WMS layer to existing Gmap

2010-05-27 Thread Josh Rosenthal
Last time I asked about WMS, KakaduDreamer pointed me towards his http://earthalerts.manyjourneys.com/web/, which led to me throwing up an overlay example. Not base layers, but it might be helpful. http://lyceum.massgis.state.ma.us/wiki/doku.php?id=googlemapsv3:home As Davide mentioned, it takes

[Google Maps API v3] Re: google maps API alternative road

2010-05-27 Thread kuba
I will answer that myself :) It's possible to get route index using getRouteIndex() > > -- > 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 unsubs

Re: [Google Maps API v3] Re: How to add WMS layer to existing Gmap

2010-05-27 Thread Davide Cremonesi
Hello everybody, I must say that I don't like this solution based on GroundOverlays (of course you might well be happy with it and ignore my message :-). The problem I see is that once you get the image at the largest scale it gets scaled by the client at lower scales (zooming in) and resolution ge

Re: [Google Maps API v3] Paid apps using Google Maps APIs

2010-05-27 Thread Miguel Angel Vilela
I believe you need a Premier license if additional mapping features will be only available for a fee. If in doubt, you can contact a salesperson, who will be more familiar with the details: Why Google Maps API Premier? http://code.google.com/apis/maps/documentation/premier/guide.html#WhyPremier

Re: [Google Maps API v3] infowindow problem with polylines

2010-05-27 Thread Davide Cremonesi
The definitive solution to your problem is to extend the Polyline class defining the getPosition method. This is a very simple implementation which returns the first point, google.maps.Polyline.prototype.getPosition = function() { return this.getPath().getAt(0); } maybe someone w

Re: [Google Maps API v3] Re: fromContainerPixelToLatLng() and counterparts

2010-05-27 Thread Ben Appleton
On Thu, May 27, 2010 at 7:22 PM, Pil wrote: > > Regardless what it is. It cannot be positioned absolute and it can > also not be positioned using the "intelligent flowing" of > ControlPosition. It's simply not a control.  v3 controls do not support the display of non-controls. > A similar proble

[Google Maps API v3] Re: GDownLoadURL/GXxml.parse

2010-05-27 Thread Rossko
> I would like to  to move my code to v3, what is the v3 way of doing a > GDownLoadURL/GXml.parse  to read my xml data? discussion of example http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/fb7c7aff2d2859/c97a7ed7517e55c8 The group's search box at top right on the web in

[Google Maps API v3] Re: fromContainerPixelToLatLng() and counterparts

2010-05-27 Thread Pil
Regardless what it is. It cannot be positioned absolute and it can also not be positioned using the "intelligent flowing" of ControlPosition. A similar problem seems to appear here http://www.wolfpil.de/map-in-a-box.html The problem would be the icon at the bottom right. Either I quit the whole m

Re: [Google Maps API v3] Any plans to introduce an async loader?

2010-05-27 Thread Miguel Angel Vilela
There is an FAQ about this, admittedly not very prominent: How can I load the API into a page asynchronously after the page has loaded? http://code.google.com/apis/maps/faq.html#loadasync Cheers, Miguel On Thu, May 27, 2010 at 04:08, Ben Appleton wrote: > Asynchronous loading is supported but

Re: [Google Maps API v3] infowindow problem with polylines

2010-05-27 Thread Davide Cremonesi
Hi there, I see some points you could correct: google.maps.event.addListener(flightPath, 'click', function(event) { infowindow.content = "x"; infowindow.position = event.latLng; infowindow.open(map);//,flightPath); }); 1) the callback function must have an "event" argument, o

[Google Maps API v3] Paid apps using Google Maps APIs

2010-05-27 Thread legendary
Hi to all. I'm developing an application that will have two modules, both using google maps v3, one for anonymous users who will see a map with some information on it, and other for authenticated, paid consumers who will be able to put and edit the info on the map. There is need to pay for such a

Re: [Google Maps API v3] Fullscreen street view

2010-05-27 Thread Marc Ridey
No. On Thu, May 27, 2010 at 5:39 PM, JOHO wrote: > Is it possible to view street view in full screen mode? I know version > 2 of the API has this function. > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > To post to thi

[Google Maps API v3] Fullscreen street view

2010-05-27 Thread JOHO
Is it possible to view street view in full screen mode? I know version 2 of the API has this function. -- 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.

[Google Maps API v3] infowindow problem with polylines

2010-05-27 Thread sb
I am trying to get an infowindow open on the click of a polyline. The event is being triggered but I am unable to get the infowindow to display. I have no trouble doing this with a marker so there must be something slightly different I am missing. Here is an example of what I am trying to do http

Re: [Google Maps API v3] Re: fromContainerPixelToLatLng() and counterparts

2010-05-27 Thread Björn Brala
The icon would be a marker indeed, in mt opinion also :X 2010/5/27 Ben Appleton > On Thu, May 27, 2010 at 5:23 PM, Pil wrote: > > > > > > On May 27, 12:31 am, Ben Appleton wrote: > >> If you need to absolutely position an element, I suggest .appendChild() > the > >> element inside the map div

Re: [Google Maps API v3] Re: fromContainerPixelToLatLng() and counterparts

2010-05-27 Thread Ben Appleton
On Thu, May 27, 2010 at 5:23 PM, Pil wrote: > > > On May 27, 12:31 am, Ben Appleton wrote: >> If you need to absolutely position an element, I suggest .appendChild() the >> element inside the map div and set css position: absolute. > > Yes, thanks. This would be possible in many cases but not gen

[Google Maps API v3] Re: fromContainerPixelToLatLng() and counterparts

2010-05-27 Thread Pil
On May 27, 12:31 am, Ben Appleton wrote: > If you need to absolutely position an element, I suggest .appendChild() the > element inside the map div and set css position: absolute. Yes, thanks. This would be possible in many cases but not generally. For example not in this case: If you look at

[Google Maps API v3] GDownLoadURL/GXxml.parse

2010-05-27 Thread jim
I would like to to move my code to v3, what is the v3 way of doing a GDownLoadURL/GXml.parse to read my xml data? TIA, Jim -- 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-ap

Re: [Google Maps API v3] Getting location of streetview panorama in API v3

2010-05-27 Thread Marc Ridey
Try this. Drag the pegman on the map and the streetview panorama will point towards the marker on open. Drag the marker and the streetview panorama will follow. http://maps.google.com/maps/api/js?sensor=false";> function initialize() { var opts = { center: