[Google Maps API v3] Re: Android or Google Maps API bugs?

2012-11-14 Thread Martin
wser bugs. Please file an issue on the issue > tracker: http://code.google.com/p/gmaps-api-issues/issues/list > > On Friday, November 9, 2012 11:14:54 PM UTC+11, Martin™ wrote: >> >> It looks as though the Google Maps API has a bug when viewed in an >> android ICS browser. &

[Google Maps API v3] Android or Google Maps API bugs?

2012-11-09 Thread Martin
It looks as though the Google Maps API has a bug when viewed in an android ICS browser. I've tried a few maps now and find that the stock android ICS browser (and SDK WebView) fail to properly render the pegman when dragged onto the map. Take a look at this screengrab: http://i.imgur.com/qWzqR.jpg

[Google Maps API v3] Re: right click drop down menu for adding destination on selected route 2 posts by 2 authors in Google Maps

2012-05-18 Thread Martin
ou Martin for your valuable investigation. One concern, ask what I > tried/observed is polylines are straight lines connecting markers, but they > won't follow the road as direction service do. > > > > > > > > On Thursday, April 12, 2012 11:38:03 AM UTC+5:30, Mart

[Google Maps API v3] Re: right click drop down menu for adding destination on selected route 2 posts by 2 authors in Google Maps

2012-04-11 Thread Martin
Look at the source code for the ContextMenu example. google.maps.event.addListener(map, 'rightclick', function(mouseEvent){ contextMenu.show(mouseEvent.latLng); }); It's activated by a right click on the Map, a right click on a Polyline is NOT detected. Now look at the documentation for

[Google Maps API v3] Re: Maps on Android

2012-03-28 Thread Martin
You are not limited to Google's own MapView, there are third party Android libraries too: http://wiki.openstreetmap.org/wiki/Android It seems that Google treat Android MapView updates as a very low priority, see this thread: https://groups.google.com/group/android-developers/browse_frm/thread/fa

[Google Maps API v3] Re: Refresh overlayMapTypes (i.e. force call getTile for visible tiles)

2012-02-10 Thread Martin
Hi. Here's a thread that may be of interest: https://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/25a3f290cdf0fa5e/177ccbe971def087?hl=en&lnk=gst Martin. On Feb 10, 9:59 pm, Lewis Diamond wrote: > Hi all, > I have a custom overlayMapType which will add markers from inside t

[Google Maps API v3] Re: Grid overlay on to map

2012-01-27 Thread Martin
If performance is important then i'm sure you'll find a custom overlay map type to be better than client side polyline or polygon rendering. Here's the reference page: http://code.google.com/apis/maps/documentation/javascript/maptypes.html#OverlayMapTypes I daresay that creating a PHP script tha

[Google Maps API v3] Re: Since today performance problem when using own map type

2012-01-26 Thread Martin
Let me add that i am using 64bit Windows 7 here. Martin. On Jan 26, 11:03 am, David wrote: > Hi, > > Just to share my experience: I have also been experiencing slow performance > problems with Chrome when refreshing the custom map tiles of the page > posted by Martin. > I am running the last ver

[Google Maps API v3] Re: Since today performance problem when using own map type

2012-01-26 Thread Martin
Hi Enoch. I don't want want to hijack this thread but you might want to take a look at this map: http://code.martinpearman.co.uk/deleteme/my_overlay_map/ It's an overlay map types that refreshes every 10 seconds. Originally it refreshed itself smoothly in all browsers but recently someone point

[Google Maps API v3] Re: Since today performance problem when using own map type

2012-01-25 Thread Martin
Are you experiencing this with Chrome only by any chance? I've recently seen Chrome rendering custom maps very slowly but other browsers render the same custom maps perfectly. The same custom maps previously (not sure how long ago) worked fine with Chrome. Martin. On Jan 25, 10:33 am, NoRyb wr

[Google Maps API v3] Re: Change zoomMax of built-in Map Type

2012-01-20 Thread Martin
Could you listen for the Map 'zoom_changed' event. If the map is zoomed to 21 or more then change to your custom map, if zoom changes to less than 21 display the satellite map type. Martin. On Jan 19, 3:43 pm, NoRyb wrote: > Hello! > > I would like to change the zoomMax-Property of a built-in

[Google Maps API v3] Re: Refresh Base Map Type Tiles

2012-01-20 Thread Martin
The only thing i can see that would work would be to use a solution similar to that which i posted in post #4 of the thread i linked to previously: https://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/25a3f290cdf0fa5e/34d32ac679be539c?hl=en&lnk=gst Add a bogus parameter to your

[Google Maps API v3] Re: Refresh Base Map Type Tiles

2012-01-19 Thread Martin
Here's a thread that may prove useful: https://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/25a3f290cdf0fa5e/34d32ac679be539c?hl=en&lnk=gst Martin. On Jan 19, 12:19 pm, NoRyb wrote: > Hello! I would like to know if it's possible to "refresh" or "update" a > MapType. I'm usin

[Google Maps API v3] Re: rightclick event inside a circle

2012-01-18 Thread Martin
Hi. Could you add an API event listener for the Map 'mousemove' event: http://code.google.com/apis/maps/documentation/javascript/reference.html#Map google.maps.event.addListener(myMap, 'mousemove', function(mouseEvent) { lastMousePosition=mouseEvent.latLng; }); lastMousePosition would have to

[Google Maps API v3] Re: How to add a custom control on latlng position, not corners

2012-01-16 Thread Martin
Or create a custom overlay: http://code.google.com/apis/maps/documentation/javascript/overlays.html#CustomOverlays Martin. On Jan 15, 10:41 pm, xelawho wrote: > > Any advice? > > have you looked at > labels?http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerw... -- You rece

[Google Maps API v3] Re: How to paint an arrow?

2012-01-13 Thread Martin
Hi. Use a Marker with a custom icon (your arrow image): http://www.svennerberg.com/2009/07/google-maps-api-3-markers/ Martin. On Jan 13, 7:18 pm, "bstaros...@koptevo.net" wrote: > I need to put arrow on the map - for example, to show military strike > direction. > > In theory, I can paint it

[Google Maps API v3] Re: First click on directions way point not working

2012-01-10 Thread Martin
I have already reported this as a bug: http://code.google.com/p/gmaps-api-issues/issues/detail?id=3738 Looks like my report has been ignored! Μartin. On Jan 10, 6:32 pm, kronus wrote: > Hi guys and thanks for being here to help us. > > Here's the app that I am working on > --http://kronuspro

[Google Maps API v3] Re: Is it possible to make the default google map marker smaller?

2012-01-02 Thread Martin
Here's a tutorial showing how to use your own images as custom icons: http://www.svennerberg.com/2009/07/google-maps-api-3-markers/ Martin. On Jan 2, 2:22 pm, roy lao wrote: > Dear all, > > I am creating a map with a lot of data posted on it, wondering if it is > possible to shrink down the go

[Google Maps API v3] Re: The navigator is very slow with two hundred markers

2011-12-09 Thread Martin
Maybe you've inadvertently disabled the newer canvas Markers and are getting the older DOM markers...? https://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/ac0d90c91ecec6a0/61a9540092badcf8?hl=en&lnk=gst Martin. On Dec 9, 8:53 am, angelcr wrote: > Hello, > > I am moving exis

[Google Maps API v3] Re: Open a menu when rightclick

2011-12-07 Thread Martin
Hi. Take a look at the 'ContextMenu' library i created: http://code.martinpearman.co.uk/googlemapsapi/contextmenu/ http://code.martinpearman.co.uk/googlemapsapi/contextmenu/1.0/docs/ And the advanced demo map: http://code.martinpearman.co.uk/googlemapsapi/contextmenu/1.0/examples/advanced_exam

[Google Maps API v3] Re: Map mousemove event not firing when move on overlays

2011-11-30 Thread Martin
Hi. Ideally the API would give us an option to select whether Overlays consume the mousemove event. Maybe one of us should start a feature request? Martin. On Nov 30, 11:48 am, Nianwei Liu wrote: > It's not unusual that the app may require the overlay clickable AND > map mousemove event avai

[Google Maps API v3] Re: Map mousemove event not firing when move on overlays

2011-11-29 Thread Martin
Hi. I reported much the same a month or so back: https://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/98cd2607d15cc805/3f6725964190a6a0?hl=en&lnk=gst&q=martin+event+consume#3f6725964190a6a0 Martin. On Nov 29, 9:24 pm, Nianwei Liu wrote: > This is rather unexpected for the AP

[Google Maps API v3] Re: Add two marker with click on the map & is draggable direction

2011-11-26 Thread Martin
You could try my ContextMenu: http://code.martinpearman.co.uk/googlemapsapi/contextmenu/1.0/examples/advanced_example.htm Let the user choose a location with a right-click, add a draggable Marker to the location and the user can fine tune the location by dragging the Marker. Documentation can be

[Google Maps API v3] Re: How to add a domready event to an infoBubble

2011-11-23 Thread Martin
Hi. It might be that the 'domready' event fires BEFORE your next line of code which adds an event listener for that event. (The event happens before you listen for it). Try adding the domready event listener before opening the InfoBubble: var infoWindow = new InfoBubble({content: request.respons

[Google Maps API v3] Re: Inconsistent browser behavior when opening URLs directly from marker

2011-11-21 Thread Martin
Hi. Look at the syntax of the window open method: http://www.w3schools.com/jsref/met_win_open.asp Have you experimented with the 'name' attribute to see if you can get the behaviour you desire? Martin. On Nov 22, 7:00 am, Roger Ertesvag wrote: > Marcelo, > while windows.open may not be cross

[Google Maps API v3] ContextMenu

2011-11-21 Thread Martin
Hi all. I've recently had to develop a context menu for a Google Maps API v3 map and decided that i'd share it with you all. I searched and found no v3 context menu so hope this will be useful to others. Main project page: http://code.martinpearman.co.uk/googlemapsapi/contextmenu/ Advanced exa

[Google Maps API v3] Re: In v3 version, how to realize the map in drag to finish the dynamic data exchange, to get the new area of marker information?

2011-11-16 Thread Martin
Hi. http://code.google.com/apis/maps/documentation/javascript/reference.html#Map Add an event listener listening for the Map 'bounds_changed' event. Martin. On Nov 16, 8:38 am, biao li wrote: > In the API I didn't find the corresponding function -- You received this message because you are s

[Google Maps API v3] Re: Visibility toggle of map container in 3.7 causing error in IE7 and IE8

2011-11-15 Thread Martin
Hi. I don't have a solution but this issue was reported just over a week back, see this thread: https://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/27def24e7007f8cc?hl=en# Martin. On Nov 16, 7:24 am, mx wrote: > Using IE7 or IE8 take a look at: > > http://stores.petsmart.c

[Google Maps API v3] Bug with DirectionsService and text links.

2011-11-15 Thread Martin
Hi all. The first click on a text link in the text based directions panel fails to correctly pan and zoom the map and open the infowindow. More details here: http://code.google.com/p/gmaps-api-issues/issues/detail?id=3738 Martin. -- You received this message because you are subscribed to the

[Google Maps API v3] Re: ImageMapType issue?

2011-11-09 Thread Martin
like a 0.5 > opacity overlay of Roadmap, I get this: > > http://dl.dropbox.com/u/48944369/moon.html > > Clicking Map/Moon seems to sort of do what I expect, (i.e. moon tiles > overlaid on Google's render of the earth) but this appears to be due > to a bug, not a fe

[Google Maps API v3] Re: ImageMapType issue?

2011-11-09 Thread Martin
Hi again. Look at the documentation for ImageMapType: http://code.google.com/apis/maps/documentation/javascript/maptypes.html#ImageMapTypes See that you create your ImageMapType and then insert it into the Map's overlayMapTypes array. That's different to creating a StyledMapType. If you want a

[Google Maps API v3] Re: ImageMapType issue?

2011-11-09 Thread Martin
l="nofollow" href="http://foo.com/foo.png"">http://foo.com/foo.png"</a>;; >                         }, >     tileSize: new google.maps.Size(256, 256), >     name: "Hip-Hop" >   }; > >   var jayzMapType = new google.maps.ImageMapType(st

[Google Maps API v3] Re: Aligning a google map canvas

2011-11-08 Thread Martin
Is this an API or a CSS question? Sounds like you want to brush up on your CSS to me, here's a useful link: http://www.barelyfitz.com/screencast/html-training/css/positioning/ Martin. On Nov 8, 4:26 pm, munji wrote: > By default every time i load my map, it always aligns itself to the > left

[Google Maps API v3] Re: ImageMapType issue?

2011-11-08 Thread Martin
Hi. http://code.google.com/apis/maps/documentation/javascript/maptypes.html#ImageMapTypes Looks like you've not defined a (required) 'tileSize' property in your options. Martin. On Nov 9, 6:20 am, Map Guy wrote: > Starting with this example: > > http://code.google.com/apis/maps/documentation/

[Google Maps API v3] Re: mouse scroll is zooming in and scrolling down page

2011-11-07 Thread Martin
I see the same behaviour with the latest Firefox on Window 7 64 bit. There's an old issue here: http://code.google.com/p/gmaps-api-issues/issues/detail?id=1605&can=1&q=apitype%3AJavascript3%20firefox%20scroll&colspec=ID%20Type%20Status%20Introduced%20Fixed%20Summary%20Internal%20Stars That's mar

[Google Maps API v3] Re: Creating new divs on the map

2011-11-04 Thread Martin
Or is a CustomControl what is required? http://code.google.com/apis/maps/documentation/javascript/controls.html#CustomControls Martin. On Nov 4, 1:34 pm, JD Gauchat wrote: > If what you want is to put the map inside a div and then have other divs > shown over it you have to use these CSS prope

[Google Maps API v3] Re: Listing zoom

2011-10-31 Thread Martin
Hi. Try updating your code so it knows how many markers have been created and sets the map bounds based on that: [code] var visibleMarkersCount=0; for (var i = 0; i < markerNodes.length; i++) { var id = markerNodes[i].getAttribute("property_id"); var city_id = markerNodes[i].getAt

[Google Maps API v3] Re: google maps v3 icons list

2011-10-28 Thread Martin
And some more listed here: http://www.visual-case.it/cgi-bin/vc/GMapsIcons.pl Martin. On Oct 28, 7:01 am, jufemaiz wrote: > Not sure about the official maps (unofficial listing > athttp://mapki.com/wiki/Available_Images) , but there *is* > alsohttp://mapicons.nicolasmollet.com/ -- You rece

[Google Maps API v3] Re: How to maintain map center LatLng while window resizing?

2011-10-27 Thread Martin
Hi. Try something like this... Create a global variable: var lastMapCenter; Add an event listener to your map, listen for the 'center_changed' event: google.maps.event.addListener(g_map, 'center_changed', function(){ // save the map center lastMapCenter=g_map.getCenter(); }); Now listen fo

[Google Maps API v3] Re: Optimised Markers consume the Map mousemove event

2011-10-26 Thread Martin
> "clickable" (default true) means that the overlay (marker, polygon, > polyline) captures all mouse events. > > I'll raise this issue with the team. > > Thanks, > Chris > > --http://twitter.com/broady > > > > > > > > On Sun, Oct 16, 2011 at

[Google Maps API v3] Re: Computing which tiles are in view within a given bounds.

2011-10-26 Thread Martin
Hi. This will get the tile that myLatLng is on: var zoom=myMap.getZoom(); var worldPoint=myMap.getProjection().fromLatLngToPoint(myLatLng); var pixelPoint=new google.maps.Point(parseInt(worldPoint.x*Math.pow(2, zoom)), parseInt(worldPoint.y*Math.pow(2, zoom))); var tileX=parseInt(pixelPoint.x/25

[Google Maps API v3] Re: LatLngBounds returns undefined value

2011-10-23 Thread Martin
Firebug finds the error straight away! mymap.map is undefined https://gusev.pro/test.html Line 66 I guess you want: mymap.fitBounds( bounds ); Martin. On Oct 21, 9:21 pm, Vladimir wrote: > Hello, > > i'm using v3, loading it async, creating the map object, then markers > and paths work ok, b

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

2011-10-20 Thread Martin
Also, have you specified a no-cache or no-store HTTP header in your > tileserver.php? > > On Oct 20, 8:02 pm, Martin™ wrote: > > > > > > > > > Just to keep this thread updated we have got my code working. > > > The MyOverlayMap code i posted before this threa

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

2011-10-20 Thread Martin
ts > methods using the constructor prototype instead of nesting the methods > inside the constructor. That's fine - both approaches are reasonable. But > when you converted the code to use the prototype, you made the 'tiles' > variable a global. Not good - if you ever had

[Google Maps API v3] Re: Maps in Android with HTML5

2011-10-20 Thread Martin
Hi. Try loading the Google API script before your map.js script: http://maps.google.com/maps/api/ js?&sensor=true"> If map.js executes before the Google API is loaded then all the API methods will be undefined. Martin. On Oct 20, 8:14 am, kennyhp wrot

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

2011-10-20 Thread Martin
David. You'll have to let me have a look at your map code i'm sure to enable me to help debugging it. Email me a link if you can and you want to keep the URL out of this thread. Otherwise i'd suggest Firefox and Firebug. Choose the Net tab then the Images sub tab. Look for any requests being mad

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

2011-10-19 Thread Martin
}; img.src = tileUrl; } }; MyOverlayMap.prototype.releaseTile = function (tile) { delete this.loadedTiles[tile.tileId]; tile = null; }; [/code] Martin. On Oct 20, 5:45 am, Martin™ wrote: > Hi again. > > I think you need to abandon the old meth

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

2011-10-19 Thread Martin
Hi again. I think you need to abandon the old method - removing the overlay map type and re-adding it to the map. You will always get a flicker with that method i believe. Try this for a basic overlay map: [code] function MyOverlayMap(tileSize) { this.loadedTiles = {}; this.tileS

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

2011-10-18 Thread Martin
However, the problem is that there is a bit of flashing when removing > and adding the tiles. I guess it is not possible to completely avoid > that, right ? > > On Oct 18, 3:49 pm, Martin™ wrote: > > > > > > > > > Hi. > > > Have you tri

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

2011-10-17 Thread Martin
Hi. Have you tried simply removing your overlay map and then re-adding it? map.overlayMapTypes.removeAt(0); map.overlayMapTypes.setAt(0,overlayMap); You'll still have to watch for problems with the browser caching tiles, but if you add a bogus parameter to each tile URL then it should force a re

[Google Maps API v3] Re: Resize MVC Radius

2011-10-17 Thread Martin
Hi. Try: myRadiusWidget.set('distance', the_input_value) Where myRadiusWidget is the instance of RadiusWidget that you have created - and kept a reference to. Martin. On Oct 18, 4:41 am, finco wrote: > I've built a map where a circle can be resized by dragging the edge.  It is > based on Luk

[Google Maps API v3] Re: Optimised Markers consume the Map mousemove event

2011-10-17 Thread Martin
verlay (marker, polygon, > polyline) captures all mouse events. > > I'll raise this issue with the team. > > Thanks, > Chris > > --http://twitter.com/broady > > > > > > > > On Sun, Oct 16, 2011 at 5:25 PM, Martin™ wrote: > > Hi All. >

[Google Maps API v3] Re: how to pass data to a marker click function

2011-10-17 Thread Martin
Hi uno. Version 3 of the API has made marker click event delegation somewhat impossible (or tricky). The Map click event doesn't fire when the user clicks on the Map while (also) clicking on a Marker. So, tradionally you cannot assign a single event listener to the Map to handle ALL Marker click

[Google Maps API v3] Optimised Markers consume the Map mousemove event

2011-10-15 Thread Martin
Hi All. I've started a new thread for this subject - it follows on from this recent thread about MarkerImage and optimised Markers: https://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/ac0d90c91ecec6a0/51a0cc033dba3866?hl=en#51a0cc033dba3866 I've run into a problem with optimi

[Google Maps API v3] Re: GMapsV3 - lots of MarkerImages slow down everything

2011-10-14 Thread Martin
ot;geocode...@gmail.com" wrote: > On Oct 14, 1:12 am, Martin™ wrote: > > > I agree. > > > I tend to use the full MarkerImage constructor and have been > > specifying a scaled size equal to the original icon size. > > This means i've unknowingingly be

[Google Maps API v3] Re: GMapsV3 - lots of MarkerImages slow down everything

2011-10-14 Thread Martin
I agree. I tend to use the full MarkerImage constructor and have been specifying a scaled size equal to the original icon size. This means i've unknowingingly been disabling any canvas optimisations for my maps! Defintely worth a mention in the documentation i say. Can Ben confirm that passing n

[Google Maps API v3] Re: GMapsV3 - lots of MarkerImages slow down everything

2011-10-13 Thread Martin
Hi. Are you implying that canvas markers will only be used if a MarkerImage is constructed with a string URL only? And that using the 'full' MarkerImage constructor with all properties set will cause non-optimised markers? Or could the scaled size be passed as null to acheive optimised canvas mar

[Google Maps API v3] Re: Date Query Slider to Filter Drop Pins

2011-10-13 Thread Martin
Have you seen Timemap? http://code.google.com/p/timemap/ Martin. On Oct 12, 3:47 pm, antony smith wrote: > Oh sages of the Maps API :) I'm hoping for a few pointers here please. > > I've implemented a map using a similar technique to what is shown in > the tutorial below: > > http://code.googl

[Google Maps API v3] Re: Prevent map panning when using google.maps.DirectionsService

2011-10-12 Thread Martin
Hi there. http://code.google.com/apis/maps/documentation/javascript/reference.html#DirectionsRendererOptions Look at the 'preserveViewport' option. Martin. On Oct 12, 6:49 am, Justin wrote: > Hi, > > Im currently using the google.maps.DirectionsService and whenever I > create a new route requ

[Google Maps API v3] Re: Transaction limits and associated costs

2011-10-10 Thread Martin
To be honest most (all!) questions such as yours seem to go PARTLY or WHOLLY unanswered not just in this group but also in the API 2 group too. I suspect that Google don't have a 'concrete' answer and are happy to leave us all wondering what is what... Martin. On Oct 10, 2:42 pm, abanjo wrote:

[Google Maps API v3] Re: Google Maps on android application

2011-10-05 Thread Martin
Hi. You have two options to display a map in an Android app i think. Create a browser based (javascript) map and use the Android WebView to render that map or use the native Android (java) MapView. A browser based map gives you access to all the current API services and easy integration with the

[Google Maps API v3] Re: Android and pinch-to-zoom

2011-09-30 Thread Martin
The native Android browser in versions prior to 3 simply does not support multitouch events: http://code.google.com/p/android/issues/detail?id=11909 Martin. On Sep 30, 9:26 pm, JFrancis wrote: > So 3.0 is the lowest version Android which supports pinch-to-zoom? Why no > versions prior to that?

[Google Maps API v3] Re: generating a map between bounding pairs of lat and lon coordinates

2011-09-28 Thread Martin
Hi. You can create a LatLngBounds object: var myBounds=new google.maps.LatLngBounds(); http://code.google.com/apis/maps/documentation/javascript/reference.html#LatLngBounds Extend it with all your points: myBounds.extend(new google.maps.LatLng(20, -80)); myBounds.extend(new google.maps.LatLng(

[Google Maps API v3] Re: Did you mean feature from maps.google.com

2011-09-18 Thread Martin
Have you seen the Places library? http://code.google.com/apis/maps/documentation/javascript/places.html#places_autocomplete Martin. On Sep 18, 2:47 pm, Subodh Shah wrote: > Hi, > > I am wondering if its possible to implement the *Did you mean* feature which > is available athttp://maps.google.

[Google Maps API v3] Re: How to cache server side geocodes

2011-09-14 Thread Martin
Hi. How about first creating a MySQL table with columns 'md5', 'lat' and 'lng'. 'md5' will be a text type, 'lat' and 'lng' double type. Now create the query string that your server will send to Google, presumably something like: $geocode_query='http://maps.googleapis.com/maps/api/geocode/json? s

[Google Maps API v3] Re: Is it possible to add the location name before the address of each waypoint on DirectionsRenderer?

2011-09-14 Thread Martin
Hi. Not with V3 of the API: http://code.google.com/p/gmaps-api-issues/issues/detail?id=2775 Martin. On Sep 15, 12:48 am, Dan wrote: > By applying the concept of this > example:http://code.google.com/apis/maps/documentation/javascript/examples/di... > > Is it possible to add the location name

[Google Maps API v3] Re: How to tell when an ImageMapType overlay's tiles are finished loading?

2011-09-08 Thread Martin
Can you post the code which is your GetTileUrl() method? Martin. On Sep 8, 4:19 pm, millz wrote: > Thanks for the reply, Martin. > > That sure sounds like it would work, but how can I obtain a reference to the > individual tile images such that I can listen for the "onload" event? -- You recei

[Google Maps API v3] Re: How to tell when an ImageMapType overlay's tiles are finished loading?

2011-09-07 Thread Martin
Hi. You could keep an array of requested tiles - each time your getTileUrl() method is called it add's a reference to the requested tile to the array. Then you can add an event listener to the tile image listening for the 'onload' event. The event listener can remove the reference to the tile fro

[Google Maps API v3] Re: Custom Controls flickering problem

2011-08-31 Thread Martin
Hi. I think i'd look at adding a DOM event listener to the DOM element that contains the map instead of using any API events. The Map getDiv() method will give your code a reference to the DOM element. http://code.google.com/apis/maps/documentation/javascript/reference.html#Map The DOM events '

[Google Maps API v3] Re: Problem with marker becoming visible when mouse is hovered over it

2011-08-31 Thread Martin
Hi. Look at the Polyline mouseover and mouseout events: http://code.google.com/apis/maps/documentation/javascript/reference.html#Polyline You can add an event listener for both events and each event listener is passed a MouseEvent parameter: http://code.google.com/apis/maps/documentation/javasc

[Google Maps API v3] Re: Repositioning map controlers

2011-08-29 Thread Martin
You can add CSS styles to your cutom control, for example: file.style.marginTop='5px'; Is that what you need? Martin. On Aug 30, 4:53 am, Jeremy wrote: > H, that looks great but I'm running into a small snag. > > Code A places the image at the immediate right of the other controls: > > va

[Google Maps API v3] Re: onclick zoom level

2011-08-28 Thread Martin
Look at this page: http://gmaps-samples-v3.googlecode.com/svn/trunk/geocoder/v3-geocoder-tool.html Enter a place to search for and look at the result returned from Google. I'm pretty sure that not all results contain a viewport bounds (but could be wrong!) so you'd have to test for it's presence

[Google Maps API v3] Re: PHP Won't output XML at least I think that's the problem....

2011-08-23 Thread Martin
Or try putting the Content-Type header statement before the 'require' statement. Martin. On Aug 23, 6:39 pm, Radina wrote: > Problem could be in php include file > > "filled in (phpsqlajax_dbinfo.php): > > $username="username"; > $password="password"; > $database="username-databaseName"; > ?>

[Google Maps API v3] Re: PHP Won't output XML at least I think that's the problem....

2011-08-18 Thread Martin
Open the URL to your XML in a browser: http://www.courtsofsorts.com/phpsqlajax_genxml.php Now use the browser's View Source option and you'll see your XML - the XML also validates so you have no problem there. But the XML is being served with a Content-Type of 'text/html'. I think your problem l

[Google Maps API v3] Re: PHP Won't output XML at least I think that's the problem....

2011-08-14 Thread Martin
Your map has an error around line 31. data.responseXML is null. data.responseText is defined however and it's value is the text from the database query. http://www.courtsofsorts.com/phpsqlajax_genxml.php That's being served with a text/html Content-Type, a Content-Type of text/xml would be more

[Google Maps API v3] Re: Bad requests on custom tile overlays

2011-07-29 Thread Martin
Just a thought. Will a browser cache tiles served via a server-side script or not? Any idea? Martin. On Jul 29, 5:43 am, John Coryat wrote: > Martin's suggestion is the standard way of doing it. Make a tile server that > does this simple function and you'll notice your server runs faster. > P

[Google Maps API v3] Re: Bad requests on custom tile overlays

2011-07-28 Thread Martin
Why not make all tile requests to a PHP script? The script can check if the requested tile exists. If the tile exists then the script can return it to the map, otherwise it can return a blank transparent tile. http://php.net/manual/en/function.file-exists.php http://www.php.net/manual/en/functio

[Google Maps API v3] Re: Animated Zoom? (Like, panTo() only in zoom level?)

2011-07-24 Thread Martin
Let me add to that... If the map user has browsed to an area of the map (either in the current session or previously) then their browser cache will have the tiles for that area in their browser cache. A smooth animated zoom MAY be possible. Otherwise the smoothness of any attempt at an animated z

[Google Maps API v3] Re: How to display Google map on entire screen

2011-07-20 Thread Martin
Look here for a good example: http://code.google.com/apis/maps/documentation/javascript/tutorial.html#HelloWorld Martin. On Jul 20, 5:10 pm, Mustafa646 wrote: > I want to display Google map on entire screen. It should be displayed > on entire screen no matter whats the size of screen. What par

[Google Maps API v3] Re: map.getBounds() returning nil

2011-07-18 Thread Martin
Could this be a timing issue - your map is not fully initialised? http://code.google.com/apis/maps/documentation/javascript/reference.html#Map try this: google.maps.event.addListenerOnce(myMap, 'idle', function(){ var bounds=myMap.getBounds(); alert(bounds.toString()); }); Add such a listener

[Google Maps API v3] Re: Possibilies of eventlisteners on Markers

2011-07-15 Thread Martin
Instead of resizing the map to make space for the new audio/video content you could display that content in a Custom Control: http://code.google.com/apis/maps/documentation/javascript/controls.html#CustomControls Use CSS margin style to position the control exactly where you want it and CSS displ

[Google Maps API v3] Re: just started using Google Maps JAVAscript API v3

2011-07-12 Thread Martin
Look here too: http://code.google.com/apis/maps/documentation/javascript/articles.html Scroll down to API Basics, Using Markers and Using InfoWindows for some good beginner tutorials. Martin. On Jul 12, 8:26 am, Luke Mahé wrote: > A good place to start is by reading the > documentationhttp:/

[Google Maps API v3] Re: About Storing markers

2011-06-28 Thread Martin
LOL On Jun 28, 12:18 pm, en4ce wrote: > how familiar are you with php/ajax/javascript? > > if you want this fast and for a client you better get a freelancer > doing the job (in case, write me a email, cheers) > > On 28 Jun., 10:13, Rohan Shah wrote: > > > > > > > > > hi all, > > i am new to thi

[Google Maps API v3] Re: Accessing innerHTML of a div in a custom control

2011-06-23 Thread Martin
That example is no bodge job! It'll poll the DOM til the element that you want to manipulate exists and then manipulate it - end of story. Change the poll frequenqy - maybe set a limit to the number of times that the timeout will execute before it gives up. The Google Maps API doesn't trigger man

[Google Maps API v3] Re: Accessing innerHTML of a div in a custom control

2011-06-23 Thread Martin
Hi. I tend to use something like this when i need to wait for an element to exist in the DOM before i can manipulate it: function waitForDOM(){ if(document.getElementById('myDiv')){ // do something with the div } else { setTimeout(waitForDOM, 250); } } // start it going waitForDOM(); Mar

[Google Maps API v3] Re: Changing default location when no nearby stores

2011-06-19 Thread Martin
Try this: function searchLocationsNear(center) { clearLocations(); var radius = document.getElementById('radiusSelect').value; var searchUrl = 'phpsqlajax_search.php?lat=' + center.lat() + '&lng=' + center.lng() + '&radius=' + radius; downloadUrl(searchUrl, function(data) { var xml = pa

[Google Maps API v3] Re: Getting DOM nodes from a custom mapType

2011-06-19 Thread Martin
Can't you keep a reference to the node when your getTile() method creates it? Or am i missing something..? Martin. On Jun 20, 7:25 am, Chris Broadfoot wrote: > This is definitely not supported by the API. Could you switch between two > different (buffered) map types? > > --http://twitter.com/b

[Google Maps API v3] Re: Help with world coordinate to pixel location on tile

2011-06-13 Thread Martin
Hi. http://code.google.com/apis/maps/documentation/javascript/maptypes.html#WorldCoordinates World Coordinates range from 0 to 256 for both x and y values. At zoom level 0 those world coordinates are the same as the pixel coordinets that you want. At higher zoom levels simply take each x and y v

[Google Maps API v3] Re: Placing marker at a pixel coordinate

2011-05-28 Thread Martin
ld be, using the API's built in Mercator projection could cause problems as it will assume your game's surface is a sphere and make appropriate corrections. Martin. On May 29, 5:48 am, Martin™ wrote: > Have you seen this page: > > http://code.google.com/apis/maps/documentatio

[Google Maps API v3] Re: Placing marker at a pixel coordinate

2011-05-28 Thread Martin
Have you seen this page: http://code.google.com/apis/maps/documentation/javascript/maptypes.html#CustomMapTypes You say that you have many (cartesian?) coordinates already - what is the range of these coordinates? Could you normalise all your coordinates so X and Y values range from 0 to 256? If

[Google Maps API v3] Re: Disable animated zoom

2011-05-26 Thread Martin
I think the animation effect when zooming more than one level gets crude and ugly! (Although the animation effect is entirely dependant on what tiles are visible before the zoom change, so the animation effect varies from acceptable to crude). Comment #5 on this page says much the same: http://co

[Google Maps API v3] Disable animated zoom

2011-05-26 Thread Martin
Has anyone else noticed that all zoom changes are now animated and have been animated since version 3.4 (i think)? I was hoping that there would be an option that could be set to disable animated zoom changes but have found nothing. The API changelog mentions nothing about zoom changes being anim

[Google Maps API v3] Re: clear and kill an overlay

2011-05-23 Thread Martin
centerMarker will not be 'undefined' until the javascript garbage collector has destroyed that object. The garbage collector will not destroy the object untill there are no more references to it - and it is no longer in use. http://www.google.co.uk/search?x=0&y=0&q=javascript+garbage+collector&ie

[Google Maps API v3] Re: error: image corrupt or truncated ...

2011-05-20 Thread Martin
Are you using Firefox 4? https://bugzilla.mozilla.org/show_bug.cgi?id=646090 Martin. On May 20, 9:29 am, Adriano Ellero wrote: > on this page:http://win.cvao-soaring.org/public/global/meteoTestXml.aspif > I drag the map i got many errors like this: > > Image corrupt or > truncated:http://khm0

[Google Maps API v3] Re: Best way to add many locationmarkers/icons on GoogleMaps

2011-05-13 Thread Martin
There's some useful info here: http://code.google.com/apis/maps/articles/toomanymarkers.html Martin. On May 13, 1:38 pm, Bert Van der Auwera wrote: > Hello, > > I've got a database full of records containing coordinates, in total more > than 2000 (and growing). The idea is to show all of those

[Google Maps API v3] Re: Toggle and restrict map to custom tiles

2011-05-13 Thread Martin
Look at the documentation: http://code.google.com/apis/maps/documentation/javascript/maptypes.html#CustomMapTypes I think you need to create a 'base map type' and not an 'overlay map type'. Martin. On May 13, 3:05 am, "Tom R." wrote: > Hello All- > > I found no clear mention of this on the fo

[Google Maps API v3] Re: static map from custom tiles

2011-05-11 Thread Martin
d to send to the > script. > > On May 10, 11:58 am, Martin™ wrote: > > > Did you see my reply to your reply post? > > >https://groups.google.com/group/google-maps-js-api-v3/browse_frm/thre... > > > Martin. > > > On May 10, 3:54 pm, fly2279 wrote:

[Google Maps API v3] Re: static map from custom tiles

2011-05-11 Thread Martin
//kenfrey.com/test/map%20type.html > > I don't know how to get the parameters that I need to send to the > script. > > On May 10, 11:58 am, Martin™ wrote: > > > Did you see my reply to your reply post? > > >https://groups.google.com/group/google-maps-js-api-v3/browse

[Google Maps API v3] Re: static map from custom tiles

2011-05-10 Thread Martin
Did you see my reply to your reply post? https://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/345af7ab1f03ac43?hl=en# Martin. On May 10, 3:54 pm, fly2279 wrote: > I need a php script (probably using the GD library) that can take the > viewable area of the map's div to stitch

[Google Maps API v3] Re: static image of custom map type

2011-05-07 Thread Martin
Hi. I did exactly this on an older API v2 map: http://panoramas.110mb.com/ Click a marker and then when the panorama appears you can click the Capture button. The panorama bounds and zoom are submitted to a PHP script that stitches together the tiles as a JPG image. It'd probably work fine with

  1   2   >