[Google Maps API v3] Google Map Title borders are displayed when polygon is rendered on google map.

2011-10-26 Thread GMapHelp
Hello everbody,

  I am having a problem when plotting polygon on google map api v3.
When i plot polygon and increase its zoom level, the google map tile
borders are displayed within the area covered by polygon. Any
suggestion appreciated? Thanks in advance

Regards.

Example :  http://postimage.org/image/5m8gy0ls7/ 

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



[Google Maps API v3] Re: Turn clustering on and off

2011-10-26 Thread geocode...@gmail.com
On Oct 26, 9:13 pm, gdp  wrote:
> Hi
>
> I am creating clusters on the map like this:
>
> markerCluster = new MarkerClusterer(map, markers, mcOptions);
>
> Without 'refreshing' the map markers, is it possible to temporarily
> turn off clustering and then turn it back on again?

I'm not sure what you mean by "'refreshing' the map markers", is this
what you are looking for:

http://www.geocodezip.com/v3_GoogleEx_markerclusterer_unclusterB.html

from this thread:
http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/83253468332b614a/8e2b8bd8fb6ae963?lnk=gst&q=uncluster#8e2b8bd8fb6ae963

  -- Larry

>
> Thanks
>
> gdp

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



[Google Maps API v3] Turn clustering on and off

2011-10-26 Thread gdp
Hi

I am creating clusters on the map like this:

markerCluster = new MarkerClusterer(map, markers, mcOptions);

Without 'refreshing' the map markers, is it possible to temporarily
turn off clustering and then turn it back on again?

Thanks

gdp

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



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

2011-10-26 Thread Martin™
Hi Chris.

Is there any news on this issue yet?

Thanks.

Martin.


On Oct 17, 4:25 pm, Chris Broadfoot  wrote:
> Hi Martin,
>
> This does indeed look like a bug. The only point of contention is whether
> the bug lies with optimized markers, or unoptimized markers. In reality,
> "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 5:25 PM, Martin™  wrote:
> > 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/thre...
>
> > I've run into a problem with optimised Markers and the Map mousemove
> > event...
>
> > Here's a project i've been working on:
>
> >http://developer.martinpearman.co.uk/markers_event_layer/demo/index.htm
>
> > and
>
> >http://developer.martinpearman.co.uk/markers_event_layer/demo/index.h...
>
> > I'm detecting click OR mouseover and mouseout events on all markers
> > under the mouse - not just the top most marker.
> > My first link is the mouseover and mouseout version, my second link
> > the click version.
>
> > Markers consume the Map click event so my single Map click event
> > listener detects no Marker clicks unless you set the MarkerOption
> > clickable to false.
> > My code does this and it works as desired except i'd like the cursor
> > to change when over a Marker - that doesn't happen when the
> > MarkerOption clickable is false.
>
> >http://code.google.com/apis/maps/documentation/javascript/reference.h...
>
> > Anyway that demo defines a MarkerImage with a scaledSize set to the
> > same size as the MarkerImage's size.
> > If you read the thread i linked to you'll find that setting a
> > MarkerImage scaledSize forces non-optimised Markers.
> > So i changed my demo to pass null as scaledSize in the MarkerImage
> > connstructor and thought that would give me optimised Markers and my
> > existing code would still work but it doesn't.
>
> > Optimised Markers by default consume the Map mousemove event so my
> > demo's mousemove event listener never executes.
> > Much like the demo's click event listener never executes unless the
> > MarkerOption clickable is set to false.
> > (Non-optimised Markers with MarkerOption clickable set to true
> > (default) do NOT consume the Map mousemove event).
>
> > Setting an optimised Marker's MarkerOption clickable to false stops
> > the Marker from consuming the Map mousemove event and my code again
> > works as desired - albeit with no change of cursor when over a Marker.
>
> > Here's a simple map that demonstrates this behavior:
>
> >http://developer.martinpearman.co.uk/markers_event_layer/mousemove_ev...
>
> > On that map, Markers are optimised and clickable - both these options
> > are the defaults.
> > Move the mouse over a group of Markers and you'll see the Map
> > mousemove event listener stops updating the mouse position top center
> > of map.
>
> >http://developer.martinpearman.co.uk/markers_event_layer/mousemove_ev...
>
> > That map uses non-optimised Markers that are clickable by default and
> > the Map mousemove event listeners executes even when the mouse is over
> > one or more Markers.
>
> >http://developer.martinpearman.co.uk/markers_event_layer/mousemove_ev...
>
> > Markers on this map are optimised but NOT clickable and the Map
> > mousemove event listener executes as desired.
>
> > The documentation for Map events points out that the Map click event
> > does NOT fire when a Marker is clicked on (it doesn't mention
> > MarkerOption clickable), but doesn't mention that the Map mousemove
> > event does not fire when the mouse is over an optimised Marker.
>
> > So my question - is this a bug or the intended behavior?
>
> > For my project i can set the MarkerOption clickable to false so BOTH
> > my Map click and Map mousemove event listeners execute as desired and
> > it will work.
> > But i'd rather that at least with the Map mousemove event i can leave
> > clickable set to true so that the mouse icon changes to a pointer when
> > over a Marker.
>
> > Thanks for reading my long(ish) post!
>
> > Martin.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Maps JavaScript API v3" group.
> > To post to this group, send email to
> > google-maps-js-api-v3@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-maps-js-api-v3+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-maps-js-api-v3?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr..

[Google Maps API v3] Re: Lat/Lon on Displayed Map

2011-10-26 Thread geocode...@gmail.com
On Oct 26, 7:56 pm, icu222much  wrote:
> I am wondering if it is possible to display the lat/lon of the four
> corners of the Google Map that is currently being displayed?

Is it a v3 Google Maps API map?

Then yes (get the bounds of the map, that allows you to access the NE
corner and the SW corner, which completely defines the rectangular
area displayed).

If it is a normal maps.google.com map, then not easily.

  -- Larry

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



[Google Maps API v3] Lat/Lon on Displayed Map

2011-10-26 Thread icu222much
I am wondering if it is possible to display the lat/lon of the four
corners of the Google Map that is currently being displayed?

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



[Google Maps API v3] Re: Why I cannot post a map from google maps api on google blogger?

2011-10-26 Thread geocode...@gmail.com
On Oct 26, 7:17 pm, Dan_84  wrote:
> I thought I should do the questions!  I don't have precise answers for
> this questions yet...
>
> I forgot to aks if it's necessary some kind of URI validation on
> w3.org?
>
> Ok, here is the html:

A link to your page on your blog please.

>
> 
> 
> 
> http://maps.google.com/maps/api/js?
> sensor=set_to_true_or_false">

You are required to set "sensor" to _either_ true or false, what you
have above is not valid (but probably not the problem).

  -- Larry

> 
> function initialize() {
> var latlng = new google.maps.LatLng(-34.397, 150.644);
> var myOptions = {
> zoom: 8,
> center: latlng,
> mapTypeId: google.maps.MapTypeId.ROADMAP};
>
> var map = new google.maps.Map(document.getElementById("map_canvas"),
> myOptions);}
>
> 
> 
> 
> 
> 
> 
>
> Thanks,
> Daniel
>
> On 26 out, 16:58, "geocode...@gmail.com"  wrote:
>
>
>
>
>
>
>
> > On Oct 26, 5:38 am, Dan_84  wrote:
>
> > > Hi everybody,
>
> > > Well, here's my question:
>
> > > Why I can't post a map from google maps api on google blogger?
>
> > To answer that we need to see the patient.
>
> > > Actually, I'm a begginner in google maps api and I'm making some tests
> > > yet. I'm copying and pasting the "hello world" map html from maps api
> > > tutorial but when I post it in my blog there's no map, only a blanked
> > > canvas.
>
> > Where is that map that exhibits that problem?
>
> > - Does blogger allow javascript in the blog posts?
> > - Do you have to do something special to add javascript to your posts?
> > - How are you initializing the map?
>
> >   -- Larry
>
> > > Daniel- Ocultar texto das mensagens anteriores -
>
> > - Mostrar texto das mensagens anteriores -

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



[Google Maps API v3] Re: Why I cannot post a map from google maps api on google blogger?

2011-10-26 Thread Dan_84
I thought I should do the questions!  I don't have precise answers for
this questions yet...

I forgot to aks if it's necessary some kind of URI validation on
w3.org?

Ok, here is the html:




http://maps.google.com/maps/api/js?
sensor=set_to_true_or_false">

function initialize() {
var latlng = new google.maps.LatLng(-34.397, 150.644);
var myOptions = {
zoom: 8,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
}







Thanks,
Daniel

On 26 out, 16:58, "geocode...@gmail.com"  wrote:
> On Oct 26, 5:38 am, Dan_84  wrote:
>
> > Hi everybody,
>
> > Well, here's my question:
>
> > Why I can't post a map from google maps api on google blogger?
>
> To answer that we need to see the patient.
>
>
>
> > Actually, I'm a begginner in google maps api and I'm making some tests
> > yet. I'm copying and pasting the "hello world" map html from maps api
> > tutorial but when I post it in my blog there's no map, only a blanked
> > canvas.
>
> Where is that map that exhibits that problem?
>
> - Does blogger allow javascript in the blog posts?
> - Do you have to do something special to add javascript to your posts?
> - How are you initializing the map?
>
>   -- Larry
>
>
>
>
>
> > Daniel- Ocultar texto das mensagens anteriores -
>
> - Mostrar texto das mensagens anteriores -

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



[Google Maps API v3] Re: Google Maps throws "Javascript execution timeout exception" in iOS5 Safari Browser

2011-10-26 Thread jufemaiz:joel
We don't have access to your C:\ so we can't see your images.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/1QNyECkjrZ0J.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[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/256);
var tileY=parseInt(pixelPoint.y/256);

Martin.


On Oct 26, 10:34 pm, Garthan  wrote:
> I have data which is stored in a format whose file names mirrors the tiles
> used by google maps
> I needed to compute the rows and columns of tiles that are in view with a
> given bounds and zoom level
>
> In version 2 of the API I computed them using this function
>
>     var sw = proj.fromLatLngToPixel(bounds.getSouthWest(), Zoom);
>     var ne = proj.fromLatLngToPixel(bounds.getNorthEast(), Zoom);
>
>     var startcol = parseInt(sw.x / 256 - buffer);
>     var endcol = parseInt(ne.x / 256 + buffer);
>     var endrow = parseInt(sw.y / 256 + buffer);
>     var startrow = parseInt(ne.y / 256 - buffer);
>
> I am trying to figure out how to get this for v3

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



[Google Maps API v3] Re: Custom Tile Layer (SVG based) on Alternate Pane...

2011-10-26 Thread Enoch Lau (Google Employee)
http://code.google.com/apis/maps/documentation/javascript/reference.html#MapPanes

Description of overlayLayer:
This pane contains polylines, polygons, ground overlays and tile layer 
overlays. *It may not receive DOM events.* (Pane 1).

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/X80YAXAJUMEJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Why is there an invisible overlay above markers on Mac Safari?

2011-10-26 Thread Enoch Lau (Google Employee)
Can you post a link please?

Enoch

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/7lFKcc7DkXwJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Markers randomly appear behind Polylines

2011-10-26 Thread Enoch Lau (Google Employee)
Could you post up a link please?

Enoch

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/ioEPeyN9oLIJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Combine User Location with PHP/MySQL Listings

2011-10-26 Thread xelawho
> Here it is.
>
> http://hungryvt.com/map_tests/google-php/big_combo.php

firebug no show error. javascript happy!

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



[Google Maps API v3] Re: Drag and Drop An Image of A Marker Onto A Map (v3)

2011-10-26 Thread Bob Torzynski
I can't tell you how to do drag from outside the marker but this
example: gis.zgroks.com/rw2.html, lets the user right click on the
map, then click on the marker they created to assign it to a category.
Maybe it's too complicated for the users but it is one solution. Saves
to a SQL database and could be adapted to a similar purpose as the
site you're building. - Bob



On Oct 26, 2:04 pm, "geocode...@gmail.com" 
wrote:
> On Oct 26, 3:20 am, HelloGmaps  wrote:
>
> > Hi Everyone,
>
> > This may not be possible, but I am trying to find a way of dragging an
> > image of a marker (from outside a map) onto a map, and when it "drops" it
> > would create a marker on the map.
>
> Have you seen this example:
>
> http://www.wolfpil.de/v3/drag-from-outside.html
>
> From this thread:
>
> http://groups.google.com/group/google-maps-js-api-v3/browse_frm/threa...
>
>   -- Larry
>
>
>
> > This is the site where we are trying to develop that 
> > function:https://streetviolencemap.org/
>
> > The current solution we have means that the user has to select the green
> > marker (when active, it has a red bounding box), and then click on the map
> > to create a pin.
>
> > The reason we are trying to improve on this is because a large number of
> > our users instinctively try to drag and drop the green marker, and we would
> > like to make the site (and especially this function) as easy as possible to
> > use.
>
> > Many thanks for reading this post,
>
> > Adam

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



[Google Maps API v3] Re: stop auto-zoom for pointers

2011-10-26 Thread geocode...@gmail.com
On Oct 26, 12:47 pm, Vacation Gab  wrote:
> i have followed some code to allow, pointers to be displayed on a map
> from a mysql database but the problem is, without and pointers i
> have the map auto set for a zoom of 3 and centered over the united
> states... but once there is a pointer on the map it automatically
> zooms in on the pointer way to close... i dont want it to zoom in that
> much, and when i try to set the zoom level it still zooms in to close

If it is v3 API code (the topic of this group), your code is causing
it to zoom, change it to not do that.

If you want more specific help, please follow the posting guidelines
and provide a link to your map that exhibits the problem.

  -- Larry

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



[Google Maps API v3] Re: error message in v3 (latest)

2011-10-26 Thread geocode...@gmail.com
On Oct 26, 1:08 pm, overcrowdedplanet  wrote:
> String is not a 
> functionhttp://maps.gstatic.com/intl/de_ALL/mapfiles/361c/maps2.api/main.js
> Line 420.

That looks like the v2 API.

This group is for the Google Maps JavaScript API v3.  The v2 API group
is:

http://groups.google.com/group/google-maps-api

Looking at your page, it looks like you might have missed this post:
(it seems to be attempting to load v3.1, which doesn't exist anymore)

http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/a097fb23915d01d6#

But your code is definitely v2 code (won't work with v3).

  -- Larry


>
> My page:http://demo321.ilance-addons.com/rfp.php?id=55725708

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



[Google Maps API v3] Re: Getting a list of cities

2011-10-26 Thread geocode...@gmail.com
On Oct 26, 2:09 pm, Austin Gabel  wrote:
> I only want to show a list of cities with their State.  I do not want
> addresses to be available to the user.  Is this possible?

Sure it is possible to show the list.  Do you have the data to do
that?  Showing a list and not having that data available to the user
is not possible (if they can see it the data is available to them).

That functionality is not part of the Google Maps Javascript API v3
(the topic of this group).

  -- Larry

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



[Google Maps API v3] Why is there an invisible overlay above markers on Mac Safari?

2011-10-26 Thread Ken Corbett
Only in Safari on a Mac there is an invisible layer of div elements which 
is inserted over the top of markers which are added to the overlayImage 
pane which is preventing elements on this pane from receiving click events. 
 This has been reported as a bug (
http://code.google.com/p/gmaps-api-issues/issues/detail?id=3219)

I just find it odd that that it would only be affecting one browser on one 
platform.  Is Google Maps adding this layer to help handle for touch 
events?  What is the purpose of this layer?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/JBfuhlNh85QJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] stop auto-zoom for pointers

2011-10-26 Thread Vacation Gab
i have followed some code to allow, pointers to be displayed on a map
from a mysql database but the problem is, without and pointers i
have the map auto set for a zoom of 3 and centered over the united
states... but once there is a pointer on the map it automatically
zooms in on the pointer way to close... i dont want it to zoom in that
much, and when i try to set the zoom level it still zooms in to close

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



[Google Maps API v3] Google Maps throws "Javascript execution timeout exception" in iOS5 Safari Browser

2011-10-26 Thread Murali Srinivasan
I'm started seeing this javascript timeout exception in Google Maps after I 
updated my iPad to recent iOS5 which wasn't happening in iOS4. Maps will 
render fine in newly opened Safari browser fine and after I refresh it once 
it will throws Javascript execution timeout exception whenever I tried to 
enable/disable the Satellite layer. Some times the issue will happen when I 
tried to zoom-in or zoom-out with Satellite layer enabled. All these issues 
will happen only after refreshing the page once. 

I've mentioned the exact steps on how to reproduce the issue with the below 
images.

1.   Go to maps.google.com. Allow permission to track the current 
location when prompted.

 

2.   Enable Satellite layer in Google maps by opening Layers menu and 
then selecting “Satellite” menu item. We should see the satellite images 
for the current location (if tracking is enabled for current location).

 

3.   Refresh the web page and enable Satellite layer again. Notice at 
this point there will be 1 Error displayed in the Debug Console window

 

4.   Check the Javascript execution exception timeout exception in 
Debug Console window

 

5.   Try to do some other action in Google maps, like Zoom-in / 
Zoom-Out, or drag to view some other location in the map. At this time 
there will be huge number of exceptions were thrown in console window and 
make the maps unusable.

 

6.   Check the debug console showing more timeout exceptions.

 

7.   Refresh the page and see how google maps is not rendering properly 
anymore. Refreshing page some more times like 5/6 times will make the tab 
not even show the maps, we will just see plain white screen.

  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/_8sBJVcnG0sJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] error message in v3 (latest)

2011-10-26 Thread overcrowdedplanet
String is not a function
http://maps.gstatic.com/intl/de_ALL/mapfiles/361c/maps2.api/main.js
Line 420.

My page: http://demo321.ilance-addons.com/rfp.php?id=55725708

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



[Google Maps API v3] Re: google map api v3 reverse geocoding not working ?

2011-10-26 Thread mark
I have eventually got this working, baring in mind that im a complete 
javascript beginner how does my code look. Are there any errors or anything 
i should be worried about ?

Example link is the same http://rayoflightes.com/gmaps/form1.php

var geocoder = new google.maps.Geocoder();

function geocodePosition(pos) {
  geocoder.geocode({
latLng: pos
  }, function(responses) {
if (responses && responses.length > 0) {
  updateMarkerAddress(responses[0].formatted_address);
} else {
  updateMarkerAddress('Cannot determine address at this location.');
}
  });
}

function updateMarkerStatus(str) {
  document.getElementById('markerStatus').innerHTML = str;
}

function updateMarkerPosition(latLng) {
  document.getElementById('latitude').value = [
latLng.lat()
  ];
  document.getElementById('longitude').value = [
latLng.lng()
  ];
}



function initialize() {

  var address = document.getElementById("address").value;

  var latLng = new google.maps.LatLng(-34.397, 150.644);
  var map = new google.maps.Map(document.getElementById('mapCanvas'), {
zoom: 12,
center: latLng,
mapTypeId: google.maps.MapTypeId.SATELLITE
  });

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,
draggable: true,
position: results[0].geometry.location,
});

map.setZoom(18);

  // Update current position info.
  updateMarkerPosition(latLng);
  geocodePosition(latLng);
  
  // Add dragging event listeners.
  google.maps.event.addListener(marker, 'dragstart', function() {
updateMarkerAddress('Dragging...');
  });
  
  google.maps.event.addListener(marker, 'drag', function() {
updateMarkerStatus('Dragging...');
updateMarkerPosition(marker.getPosition());
  });
  
  google.maps.event.addListener(marker, 'dragend', function() {
updateMarkerStatus('Drag ended');
geocodePosition(marker.getPosition());
  });

/* When geocoding "fails", see if it was because of over quota error: */
} else if (status == 
google.maps.GeocoderStatus.OVER_QUERY_LIMIT) {
  wait = true;
  setTimeout("wait = false", 1000);

} else {
  alert("Geocode was not successful for the following reason: " 
+ status);
}
});
  

}

// Onload handler to fire off the app.
google.maps.event.addDomListener(window, 'load', initialize);

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/24P0cp1USTAJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Getting a list of cities

2011-10-26 Thread Austin Gabel
I only want to show a list of cities with their State.  I do not want 
addresses to be available to the user.  Is this possible?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/lLHxAnTf03EJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



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

2011-10-26 Thread Garthan
I have data which is stored in a format whose file names mirrors the tiles 
used by google maps
I needed to compute the rows and columns of tiles that are in view with a 
given bounds and zoom level

In version 2 of the API I computed them using this function 

var sw = proj.fromLatLngToPixel(bounds.getSouthWest(), Zoom);
var ne = proj.fromLatLngToPixel(bounds.getNorthEast(), Zoom);

var startcol = parseInt(sw.x / 256 - buffer);
var endcol = parseInt(ne.x / 256 + buffer);
var endrow = parseInt(sw.y / 256 + buffer);
var startrow = parseInt(ne.y / 256 - buffer); 

I am trying to figure out how to get this for v3

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/9-clJOQCeEMJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Custom Tile Layer (SVG based) on Alternate Pane...

2011-10-26 Thread Garthan
It sure seems like a bug to me too. 

Are you suggesting that I put the data as say js files that get loaded and 
executed on to a canvas?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/DHoCuLS1OYgJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Combine User Location with PHP/MySQL Listings

2011-10-26 Thread Steve McIntyre
Success! Thank you all for your help and forcing me to find the
solution on my own, especially xelawho.

I've put the whole thing into an external JS file. There's still more
work to be done, but this was the big stumbling block I'd been banging
my head against for the last couple of weeks.

Here it is.

http://hungryvt.com/map_tests/google-php/big_combo.php

// Some Custom Icons borrowed from the 'other function' that may come
in handy

var customIcons = {
  restaurant: {
icon: 'http://labs.google.com/ridefinder/images/
mm_20_blue.png',
shadow: 'http://labs.google.com/ridefinder/images/
mm_20_shadow.png'
  },
  bar: {
icon: 'http://labs.google.com/ridefinder/images/
mm_20_red.png',
shadow: 'http://labs.google.com/ridefinder/images/
mm_20_shadow.png'
  }
};

// End Custom Icons

 var map;

  function initialize() {
var myOptions = {
  zoom: 12,
  mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById('map'),
myOptions);

// Try HTML5 geolocation
if(navigator.geolocation) {
  navigator.geolocation.getCurrentPosition(function(position)
{
var pos = new google.maps.LatLng(position.coords.latitude,
 
position.coords.longitude);

var marker = new google.maps.Marker({
  map: map,
  position: pos,
  icon:'images/markers/you.png',
  animation: google.maps.Animation.DROP,
  title: 'Location found using HTML5.'
});

  var infoWindow = new google.maps.InfoWindow;

  // Change this depending on the name of your PHP file
  downloadUrl("phpsqlajax_genxml_one.php", function(data) {
var xml = data.responseXML;
var markers =
xml.documentElement.getElementsByTagName("marker");
for (var i = 0; i < markers.length; i++) {
  var name = markers[i].getAttribute("name");
  var address = markers[i].getAttribute("address");
  var citystate = markers[i].getAttribute("citystate");
  var phone = markers[i].getAttribute("phone");
  var type = markers[i].getAttribute("type");
  var point = new google.maps.LatLng(
  parseFloat(markers[i].getAttribute("lat")),
  parseFloat(markers[i].getAttribute("lng")));
  var html = "" + name + " " + address + ""
+citystate + "" + phone;
  var icon = customIcons[type] || {};
  var marker = new google.maps.Marker({
map: map,
position: point,
icon: icon.icon,
shadow: icon.shadow
  });
  bindInfoWindow(marker, map, infoWindow, html);
}
  });


map.setCenter(pos);
  }, function() {
handleNoGeolocation(true);
  });
} else {
  // Browser doesn't support Geolocation
  handleNoGeolocation(false);
}
  }


  function handleNoGeolocation(errorFlag) {
if (errorFlag) {
  var content = 'Error: The Geolocation service failed.';
} else {
  var content = 'Error: Your browser doesn\'t support
geolocation.';
}

var options = {
  map: map,
  position: new google.maps.LatLng(60, 105),
  content: content
};

var infowindow = new google.maps.InfoWindow(options);
map.setCenter(options.position);
  }

// Additional functions related to the 'other' DB Listing function

function bindInfoWindow(marker, map, infoWindow, html) {
  google.maps.event.addListener(marker, 'click', function() {
infoWindow.setContent(html);
infoWindow.open(map, marker);
  });
}

function downloadUrl(url, callback) {
  var request = window.ActiveXObject ?
  new ActiveXObject('Microsoft.XMLHTTP') :
  new XMLHttpRequest;

  request.onreadystatechange = function() {
if (request.readyState == 4) {
  request.onreadystatechange = doNothing;
  callback(request, request.status);
}
  };

  request.open('GET', url, true);
  request.send(null);
}

function doNothing() {}


  google.maps.event.addDomListener(window, 'load', initialize);


On Oct 26, 11:49 am, "geocode...@gmail.com" 
wrote:
> On Oct 26, 8:36 am, Steve McIntyre  wrote:
>
> > Again, I'll askcan it be done in two separate functions?
>
> Yes.  You can do it in as many functions as you want.  Both functions
> will need to have access to the "map".
>
>   -- Larry
>
>
>
>
>
>
>
>
>
> > On Oct 26, 4:16 am, Rossko  wrote:
>
> > > > Both could be executed with the window.onload command, rather than the
> > > > body tag.
>
> > > Why 'both'?  You don't need everything to happen at once.  There is
> > > absolutely nothing stopping you having code that geolocates, plots a
> > > map, requests some XML, plots so

[Google Maps API v3] Re: google map api v3 reverse geocoding not working ?

2011-10-26 Thread mark
Sorry i have posted the wrong code above.

Should be

//Useful links:
// 
http://code.google.com/apis/maps/documentation/javascript/reference.html#Marker
// 
http://code.google.com/apis/maps/documentation/javascript/services.html#Geocoding
// http://jqueryui.com/demos/autocomplete/#remote-with-cache
  
var geocoder;
var map;
var marker;

function initialize(){
//MAP
  var latlng = new google.maps.LatLng(41.659,-4.714);
  var options = {
zoom: 16,
center: latlng,
mapTypeId: google.maps.MapTypeId.SATELLITE
  };

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

   
  //GEOCODER
  geocoder = new google.maps.Geocoder();

  myMarker = new google.maps.Marker({
map: map,
draggable: true
  });

}

$(document).ready(function() { 
 
  initialize();

  var address = document.getElementById("address").value;

geocoder.geocode( { 'address': address}, function(results, status) {

  if (status == google.maps.GeocoderStatus.OK) {
map.setCenter(results[0].geometry.location);
var myMarker = new google.maps.Marker({
map: map,
draggable: true,
position: results[0].geometry.location,
});





map.setZoom(18);

/* When geocoding "fails", see if it was because of over quota error: */
} else if (status == 
google.maps.GeocoderStatus.OVER_QUERY_LIMIT) {
  wait = true;
  setTimeout("wait = false", 1000);

} else {
  alert("Geocode was not successful for the following reason: " 
+ status);
}
});


google.maps.event.addListener(myMarker, 'dragend', function(evt){
document.getElementById('current').innerHTML = 'Marker dropped: 
Current Lat: ' + evt.latLng.lat().toFixed(3) + ' Current Lng: ' + 
evt.latLng.lng().toFixed(3) + '';
});

google.maps.event.addListener(myMarker, 'dragstart', function(evt){
document.getElementById('current').innerHTML = 'Currently dragging 
marker...';
});

  
});

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/rYXtLoEJhScJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Search always goes to Pacific Ocean

2011-10-26 Thread Am
Thank you for the explanation. How do I write the code? What do I write? Is 
there a tutorial to walk me through this? I don't know what code needs to 
be written.
Thanks for your help.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/zok-LxEMRa8J.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Markers randomly appear behind Polylines

2011-10-26 Thread Rossko
What happens if you set your little-square marker options for non-
optimized?

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



[Google Maps API v3] Re: Search always goes to Pacific Ocean

2011-10-26 Thread Rossko
> Does this make sense?

Yes, it does.  You'll have to write code to make it behave the way you
want.

Try this in your browser
http://www.rentalmatch101.com.php5-20.dfw1-1.websitetestlink.com/phpsqlsearch_genxml.php?lat=40&lng=-100&radius=1
It's a search that should return no properties.

When your map script tries to read XML like that, with no useful
content, it blows up because no-one told it what to do.

'Defensive programming' is about writing code that can handle that
kind of exception, and deal with it in a predictable way.

You can enhance your map script to test for valid data, and if there
isn't then do whatever you want it to do.
Or, you could as well / instead enhance your php code to always return
something in the XML even for unsuccessful searches, which is what
davie suggested.

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



[Google Maps API v3] Re: google map api v3 reverse geocoding not working ?

2011-10-26 Thread Rossko
> Example link =http://www.rayoflightes.com/gmaps/form1.php

I get javascript errors, do you not get that?

In http://www.rayoflightes.com/gmaps/form2.php, the variable
'myMarker' is ctreated in local scope within your geocoder callback,
but you try to use it when defining listeners (a) outside the scope
and (b) before the geocoder results return

Your 'map' variable isn't explicitly declared, which may cause cross-
browser quirks.

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



[Google Maps API v3] Markers randomly appear behind Polylines

2011-10-26 Thread Tiby Ionescu
Since I updated to Chrome 15 a weird thing is happening: I have a
drawing app that has that common little square markers for vertices
and midpoints. Now whenever I pan or zoom with markers on, they
sometimes get behind the polyline, completely random. They also get
back in front if you continue to pan and zoom.

I verified in IE and after I tested it a while (for about a minute)
this behavior never occurred. I also tried some variations, with
default marker images, with zIndex, but no result.

It's getting really annoying, because I can't figure if it's my fault
or it is a bug.

If you have any idea or got the same problem, please let me know.
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-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Map centering is off with second map load

2011-10-26 Thread geocode...@gmail.com
On Oct 26, 11:26 am, Chris Oakeson  wrote:
> I'm using V3 on byucougars.com for giving directions to sporting events,
> etc.  Maps popup in a fancybox via an AJAX call.  The first map is centered
> correctly, but successive calls are not centering the map correctly.  The
> correct center is displayed in the upper-left corner of the canvas with a
> marker showing where the center should be.

Sounds like a "zero size div" problem.

Have you searched the group?
http://groups.google.com/group/google-maps-js-api-v3/search?group=google-maps-js-api-v3&q=upper+left&qt_g=Search+this+group

The usual solution is to make sure the map is displayed, then
initialize it or use the resize event to cause it to adjust to the
div's new size.

http://code.google.com/apis/maps/documentation/javascript/reference.html#Map

resize  NoneDevelopers should trigger this event on the map when the
div changes size: google.maps.event.trigger(map, 'resize') .

  -- Larry


>
> Seehttp://byucougars.com/schedule/m-footballand click on any of the
> venues for the football game (ie. "Oxford, 
> MS
>  Vaught-Hemingway 
> Stadium"
> on the first row). The map is centered correctly in that first fancybox.
>  Close the window, and click the same link again to display the same map,
> and the center has moved to the top-left.
>
> Another example appears 
> inhttp://byucougars.com/m-football/event/2011/ole-misswhere there is a map
> loaded inline with the page located in the right column just above the
> weather widget.  Since that is the first map loaded on the page, the second
> map displayed will show the center in the top-left of the canvas.  So,
> clicking on "Get directions to this event" beneath the Location header and
> address, you will see the same issue with the center at the top-left.
>
> I've tested initializing the map with the center moved over so it appears
> the marker is in the center.  That hack fails because the first map loaded
> on the schedule list page shows the marker in the bottom-right corner.
>  Successive calls do, however, make the marker appear in the center of the
> canvas.
>
> I'm very confident that this problem has to do with either fancybox or
> displaying maps after an AJAX call.  Any ideas about what might be
> happening, or suggestions on what could fix 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-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Why I cannot post a map from google maps api on google blogger?

2011-10-26 Thread geocode...@gmail.com
On Oct 26, 5:38 am, Dan_84  wrote:
> Hi everybody,
>
> Well, here's my question:
>
> Why I can't post a map from google maps api on google blogger?

To answer that we need to see the patient.

>
> Actually, I'm a begginner in google maps api and I'm making some tests
> yet. I'm copying and pasting the "hello world" map html from maps api
> tutorial but when I post it in my blog there's no map, only a blanked
> canvas.

Where is that map that exhibits that problem?

- Does blogger allow javascript in the blog posts?
- Do you have to do something special to add javascript to your posts?
- How are you initializing the map?

  -- Larry



>
> Daniel

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



[Google Maps API v3] Map centering is off with second map load

2011-10-26 Thread Chris Oakeson
I'm using V3 on byucougars.com for giving directions to sporting events, 
etc.  Maps popup in a fancybox via an AJAX call.  The first map is centered 
correctly, but successive calls are not centering the map correctly.  The 
correct center is displayed in the upper-left corner of the canvas with a 
marker showing where the center should be.

See http://byucougars.com/schedule/m-football and click on any of the 
venues for the football game (ie. "Oxford, 
MS
 Vaught-Hemingway 
Stadium"
 
on the first row). The map is centered correctly in that first fancybox. 
 Close the window, and click the same link again to display the same map, 
and the center has moved to the top-left.

Another example appears in 
http://byucougars.com/m-football/event/2011/ole-miss where there is a map 
loaded inline with the page located in the right column just above the 
weather widget.  Since that is the first map loaded on the page, the second 
map displayed will show the center in the top-left of the canvas.  So, 
clicking on "Get directions to this event" beneath the Location header and 
address, you will see the same issue with the center at the top-left.

I've tested initializing the map with the center moved over so it appears 
the marker is in the center.  That hack fails because the first map loaded 
on the schedule list page shows the marker in the bottom-right corner. 
 Successive calls do, however, make the marker appear in the center of the 
canvas.

I'm very confident that this problem has to do with either fancybox or 
displaying maps after an AJAX call.  Any ideas about what might be 
happening, or suggestions on what could fix this problem?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/TqzUwunpFFMJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] google map api v3 reverse geocoding not working ?

2011-10-26 Thread mark
I have a form which uses the google maps api to geocode an address and
insert the lat / lng into form fields. When they submit this form it
takes them to a second form where a marker is placed on the google map
and the user then drags this marker onto their roof. At this point
using the reverse geocoding and jquery autocomplete i would like to
update the lat / lng fileds but for some reason the reverse geocoding
doesnt seem to be initializing. Any ideas ?

Example link = http://www.rayoflightes.com/gmaps/form1.php

var geocoder;
var map;
var marker;

function initialize(){
//MAP
  var latlng = new google.maps.LatLng(41.659,-4.714);
  var options = {
zoom: 16,
center: latlng,
mapTypeId: google.maps.MapTypeId.SATELLITE
  };

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

  //GEOCODER
  geocoder = new google.maps.Geocoder();

  marker = new google.maps.Marker({
map: map,
draggable: true
  });

}

$(document).ready(function() {

  initialize();

  $(function() {
$("#address").autocomplete({
  //This bit uses the geocoder to fetch address values
  source: function(request, response) {
geocoder.geocode( {'address': request.term },
function(results, status) {
  response($.map(results, function(item) {
return {
  label:  item.formatted_address,
  value: item.formatted_address,
  latitude: item.geometry.location.lat(),
  longitude: item.geometry.location.lng()
}
  }));
})
  },
  //This bit is executed upon selection of an address
  select: function(event, ui) {
$("#latitude").val(ui.item.latitude);
$("#longitude").val(ui.item.longitude);
var location = new google.maps.LatLng(ui.item.latitude,
ui.item.longitude);
marker.setPosition(location);
map.setCenter(location);
  }
});
  });

  //Add listener to marker for reverse geocoding
  google.maps.event.addListener(marker, 'drag', function() {
geocoder.geocode({'latLng': marker.getPosition()},
function(results, status) {
  if (status == google.maps.GeocoderStatus.OK) {
if (results[0]) {
  $('#address').val(results[0].formatted_address);
  $('#latitude').val(marker.getPosition().lat());
  $('#longitude').val(marker.getPosition().lng());
}
  }
});
  });

});

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



[Google Maps API v3] Chrome 15 seems slow

2011-10-26 Thread sb
I just noticed that a site I am working on has gone super slow when I
am using Google Chrome 15. It was working well 2 days ago with an
older version. It works well with Firefox and IE.

Is there something wrong with Chrome 15 and Google maps API 3 or is
there some change in code I need to make?

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



[Google Maps API v3] Why I cannot post a map from google maps api on google blogger?

2011-10-26 Thread Dan_84
Hi everybody,

Well, here's my question:

Why I can't post a map from google maps api on google blogger?

Actually, I'm a begginner in google maps api and I'm making some tests
yet. I'm copying and pasting the "hello world" map html from maps api
tutorial but when I post it in my blog there's no map, only a blanked
canvas.


Daniel

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



[Google Maps API v3] Re: Search always goes to Pacific Ocean

2011-10-26 Thread Am
Thank you for the input. I don't have 1000 properties, and may never have 
properties in every country. Other store locators don't have thousands of 
properties or properties in other countries, but doesn't default to the 
center of the ocean when you search for a location without properties.

With mine, if I search for someplace that doesn't have a property, the map 
goes to the ocean. How do I make it go to the location they searched for on 
the map without markers, or zoom out enough to show their searched location 
and the closest property, even if it's 1000 miles away?

I'd like it to work similar to Ace Hardware's store locator. 
http://www.acehardware.com/mystore/storeLocator.jsp If I search for a 
location that doesn't have any stores, it goes to that location on the map 
without markers.

Does this make sense?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/0jvrVk9kBt4J.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Drag and Drop An Image of A Marker Onto A Map (v3)

2011-10-26 Thread geocode...@gmail.com
On Oct 26, 3:20 am, HelloGmaps  wrote:
> Hi Everyone,
>
> This may not be possible, but I am trying to find a way of dragging an
> image of a marker (from outside a map) onto a map, and when it "drops" it
> would create a marker on the map.

Have you seen this example:

http://www.wolfpil.de/v3/drag-from-outside.html

>From this thread:

http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/ee85aeb374f961cc/f31a426bb62b1545?lnk=gst&q=Pil+marker#f31a426bb62b1545

  -- Larry

>
> This is the site where we are trying to develop that 
> function:https://streetviolencemap.org/
>
> The current solution we have means that the user has to select the green
> marker (when active, it has a red bounding box), and then click on the map
> to create a pin.
>
> The reason we are trying to improve on this is because a large number of
> our users instinctively try to drag and drop the green marker, and we would
> like to make the site (and especially this function) as easy as possible to
> use.
>
> Many thanks for reading this post,
>
> Adam

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



[Google Maps API v3] Drag and Drop An Image of A Marker Onto A Map (v3)

2011-10-26 Thread HelloGmaps
Hi Everyone,

This may not be possible, but I am trying to find a way of dragging an 
image of a marker (from outside a map) onto a map, and when it "drops" it 
would create a marker on the map.

This is the site where we are trying to develop that function:
https://streetviolencemap.org/

The current solution we have means that the user has to select the green 
marker (when active, it has a red bounding box), and then click on the map 
to create a pin.

The reason we are trying to improve on this is because a large number of 
our users instinctively try to drag and drop the green marker, and we would 
like to make the site (and especially this function) as easy as possible to 
use.

Many thanks for reading this post,

Adam

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/2whvFt_o8P4J.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Search always goes to Pacific Ocean

2011-10-26 Thread davie strachan
Hi
I tried 
http://www.rentalmatch101.com.php5-20.dfw1-1.websitetestlink.com/phpsqlsearch_genxml.php?lat=40&lng=-100&radius=2500
this produced XML for 20 properties. The last 2 having no proper lat/
lng.
I would suggest you ensure that the data in the database is accurate
and that there is sufficient records to test (for USA + Canada I
personally would need at least 1000)
The coding goes in the phpsqlsearch_genxml.php file replacing the XML
generting lines

Regards Davie


On Oct 26, 4:03 pm, Am  wrote:
> Is there anywhere specific in my code I'm supposed to add this? Before or
> after anything?

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



[Google Maps API v3] Re: Different size custom icons in a kml file

2011-10-26 Thread Rossko
It may well not be the last word, but 'Mr.Google' said 32x32 here
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/875856c4acd875a4/e34fdce09f040633

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



[Google Maps API v3] Re: Different size custom icons in a kml file

2011-10-26 Thread Joseph Elfelt
I thought the size limit for KML icons displayed via the API was 64x64.

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



[Google Maps API v3] Re: Add Sidebar to v3

2011-10-26 Thread Am
I seem to be frustrating you. I apologize, but I do not understand what I 
am looking at. That is why I'm asking questions, hoping someone can help me 
work through this so I can understand. I understand if I'm too frustrating 
to help and will not be offended if you stop helping me.

When I add '' + 
name + '<\/a>' to my code here:

function createMarker(googlemap_ltgooglemap_ln, street) {

  var html = *'' + street + '<\/a>';* // info window contents
   sidebarInfo += html;
  // add this line after the html var declaration:
  document.getElementById("sidebar").innerHTML=sidebarInfo;
  
  var marker = new google.maps.Marker({
map: map,
position: googlemap_ltgooglemap_ln
  });
  google.maps.event.addListener(marker, 'click', function() {
infoWindow.setContent(html);
infoWindow.open(map, marker);
  });
  markers.push(marker);
}

(street being the name of my field, not name), and do a search, the map 
doesn't move, nothing is listed in the sidebar, the drop down only has 1 
property listed, and I get gmarkers is undefined in my firebug console. 

I don't know what I need to change gmarkers to to match my code, nor do I 
know if that is the correct way to make my list link to the map. I don't 
know what gmarkers is. Is that the code I need to make my list link? I 
don't know.

Comparing the code of the sample map and my map doesn't make sense to me. 
The code is different than what I have, and I don't know what I'm supposed 
to look for. When I tried to copy the sample code and put it on my server, 
the map didn't have anything listed in the sidebar and no markers, so I 
don't know what I'm missing. 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/LhTZkIiPZ9gJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Combine User Location with PHP/MySQL Listings

2011-10-26 Thread geocode...@gmail.com
On Oct 26, 8:36 am, Steve McIntyre  wrote:
> Again, I'll askcan it be done in two separate functions?

Yes.  You can do it in as many functions as you want.  Both functions
will need to have access to the "map".

  -- Larry

>
> On Oct 26, 4:16 am, Rossko  wrote:
>
>
>
>
>
>
>
> > > Both could be executed with the window.onload command, rather than the
> > > body tag.
>
> > Why 'both'?  You don't need everything to happen at once.  There is
> > absolutely nothing stopping you having code that geolocates, plots a
> > map, requests some XML, plots some XML, etc in sequence.

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



[Google Maps API v3] Re: Combine User Location with PHP/MySQL Listings

2011-10-26 Thread Rossko
Yes.

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



[Google Maps API v3] Re: Different size custom icons in a kml file

2011-10-26 Thread Rossko
I believe kmlLayer is restricted to 32x32 icons.  You may not be using
kmlLayer, can't guess.

Here's a group for general KML discussions
http://groups.google.com/group/kml-support

Here's the KML tutorial
http://code.google.com/apis/kml/documentation/kml_tut.html

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



[Google Maps API v3] Re: Combine User Location with PHP/MySQL Listings

2011-10-26 Thread Steve McIntyre
Again, I'll askcan it be done in two separate functions?



On Oct 26, 4:16 am, Rossko  wrote:
> > Both could be executed with the window.onload command, rather than the
> > body tag.
>
> Why 'both'?  You don't need everything to happen at once.  There is
> absolutely nothing stopping you having code that geolocates, plots a
> map, requests some XML, plots some XML, etc in sequence.

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



[Google Maps API v3] Re: Add Sidebar to v3

2011-10-26 Thread geocode...@gmail.com
On Oct 26, 8:18 am, Am  wrote:
> I viewed the example, but it is set up different than my map, so I'm not
> sure what I'm supposed to do. I found where this map links their sidebar,
> but I don't have similar code, so when I copy their code, it breaks my map.

The point of examples is for you to look at them and understand how
they do what you want, then apply that understanding to your map.

"breaks my map" isn't meaningful.  Look at the errors you get,
understand what is causing them and fix them.

  -- Larry

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



[Google Maps API v3] Re: Add Sidebar to v3

2011-10-26 Thread Am
I viewed the example, but it is set up different than my map, so I'm not 
sure what I'm supposed to do. I found where this map links their sidebar, 
but I don't have similar code, so when I copy their code, it breaks my map.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/r_tVSbi-VqYJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Search always goes to Pacific Ocean

2011-10-26 Thread Am
Is there anywhere specific in my code I'm supposed to add this? Before or 
after anything?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/NlvJgB_TXkgJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Add Sidebar to v3

2011-10-26 Thread Am
thank you for your help.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/LAgt1E6MjpEJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Add Sidebar to v3

2011-10-26 Thread geocode...@gmail.com
On Oct 26, 7:12 am, Am  wrote:
> Thanks for the input. When I put the call there, it doesn't list all the
> properties, only one of them.

Where?

> How do I make it list all the properties?

What about this didn't you understand?

>>  If you only want the markers that come in from a given xml
>> request, put it in the xml processing before the loop that adds the
>> markers (you probably want to remove the "var" from in front of it as
>> well).

A loop starts with "for".  The xml processing is in the callback
function for downloadUrl.

  -- Larry

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



[Google Maps API v3] Re: Add Sidebar to v3

2011-10-26 Thread Am
Thanks for the input. When I put the call there, it doesn't list all the 
properties, only one of them. How do I make it list all the properties?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/ufYgxQzVY8cJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: Add Sidebar to v3

2011-10-26 Thread geocode...@gmail.com
On Oct 26, 5:43 am, Am  wrote:
> When I put it in the marker function, the list only displays the last
> marker.
>
> function createMarker(googlemap_ltgooglemap_ln, street) {
>      * var sidebarInfo = "";*

This clears out the sidebar every time you add a marker, so only the
last one will be visible.  Sounds like that isn't what you want.

>       var html = "" + street + ""; //
> info window contents
>        sidebarInfo += html;
>       // add this line after the html var declaration:
>       document.getElementById("sidebar").innerHTML=sidebarInfo;
>
>       var marker = new google.maps.Marker({
>         map: map,
>         position: googlemap_ltgooglemap_ln
>       });
>       google.maps.event.addListener(marker, 'click', function() {
>         infoWindow.setContent(html);
>         infoWindow.open(map, marker);
>       });
>       markers.push(marker);
>     }
>
> If I put * var sidebarInfo = ""; *in any other function, nothing happens.
> It still duplicates the sidebar list. Did I put it in the wrong place?

Yes.  If you only want the markers that come in from a given xml
request, put it in the xml processing before the loop that adds the
markers (you probably want to remove the "var" from in front of it as
well).

 -- Larry

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



[Google Maps API v3] Re: Different size custom icons in a kml file

2011-10-26 Thread Joseph Elfelt
To the best of my knowledge you need to create a separate style in
your KML file for each icon size.
Each style will point to a different png file.

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



[Google Maps API v3] Re: Add Sidebar to v3

2011-10-26 Thread Am
When I put it in the marker function, the list only displays the last 
marker. 

function createMarker(googlemap_ltgooglemap_ln, street) {
 * var sidebarInfo = "";*
  var html = "" + street + ""; // 
info window contents
   sidebarInfo += html;
  // add this line after the html var declaration:
  document.getElementById("sidebar").innerHTML=sidebarInfo;
  
  var marker = new google.maps.Marker({
map: map,
position: googlemap_ltgooglemap_ln
  });
  google.maps.event.addListener(marker, 'click', function() {
infoWindow.setContent(html);
infoWindow.open(map, marker);
  });
  markers.push(marker);
}

If I put * var sidebarInfo = ""; *in any other function, nothing happens. 
It still duplicates the sidebar list. Did I put it in the wrong place?
Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/z6bXaq5t_3AJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.



[Google Maps API v3] Re: How to add markers and save it?

2011-10-26 Thread Bob Torzynski
Hi Georgi,

There is an example of a map that does that here: 
http://zgroks.com/wikka/ZgroksMaps
with source code. It's based on the tutorials cited in the other
responses as well as Google Maps Hacks, Hack #63, 
http://mappinghacks.com/projects/gmaps/,
by Rich Gibson and Schuyler Erle. Uses version 3 of the Google Maps
API, a little bit of PHP, and an SQL database. Integrates
Markerclusterer, allows icons to be toggled on and off, as well as the
Panoramio layer, etc.

Grab the source code here, if you want: 
http://zgroks.com/wikka/SourceCodeZgroksMaps

Regards,

Bob

On Oct 25, 4:00 pm, Georgi Stefanov  wrote:
> Hi,
> I need little help with Google Maps JavaScript API v3. The idea is : I need
> to make a website with a map. On this map the administrator of the site
> have to place a markers on diffrent location. Like resturants, schools,
> shop and etc. I look at the tutorials for "Map overlay" there i found a
> peace of code which promote me to add markers on the map, but the problem
> is when i refresh the page the markers disapeared. And the question is how
> to add markers on  the map  and save it in array or cookie and when the
> page refreshed they must be there.
> (im soory if i have some spelling mistakes but my english is not very  good)

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



Re: [Google Maps API v3] Change the cursor to an image?

2011-10-26 Thread Chris Broadfoot
Hi Lecter,

The cursor properties are like in CSS - you will need to specify two
separated by a comma - first your custom one, then one of the built in ones
provided by the browser.

Try one of these:
draggableCursor:'img/cat.png,default'
draggableCursor:'img/cat.png,pointer'
draggableCursor:'img/cat.png,crosshair'

Chris
--
http://twitter.com/broady



On Tue, Oct 25, 2011 at 9:03 PM, Lecter  wrote:

> i'm trying to change the cursor when we pass inside of the map clearly, my
> idea is to change the typical hand of google maps to a cat, I saw it  before
> changed by the option "cross-hair", and it change the cursor to a cross or a
> "text" that works fine, but look like is not working with a url image
> instead of standard icons this is the code I'm using..
>
>  var options = {
>   zoom: 3,
>   center: new google.maps.LatLng(37.09, -95.71),
>   mapTypeId: google.maps.MapTypeId.ROADMAP,
>   draggable: true,
>   draggableCursor:'img/cat.png'
>   };
>
> It is a bug in the API V3? I saw a few answers about the same subject but
> in V2 and it was ..
> Thanks for the answers .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/0D9JVm5USKcJ.
> To post to this group, send email to
> google-maps-js-api-v3@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-api-v3+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>

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



[Google Maps API v3] Re: Combine User Location with PHP/MySQL Listings

2011-10-26 Thread Rossko
> Both could be executed with the window.onload command, rather than the
> body tag.

Why 'both'?  You don't need everything to happen at once.  There is
absolutely nothing stopping you having code that geolocates, plots a
map, requests some XML, plots some XML, etc in sequence.

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