[Google Maps API v3] Re: Geocoding API not returning lat/long for a valid complete address

2011-12-14 Thread PoojaC
Thanks for your reply.
When I investigated further on this issue, i found out that the reason is 
not that this address is new or not in geocoder db but the issue is the *postal 
code*. When i remove the postal code, it gives me the correct lat/long 
coordinates. Now, as far as i could see, this is happening with addresses 
of *India only*. One solution would be to remove this postal code but they 
would not return precise results for other addresses. Moreoever, why is 
this happening at all when geocoding api accepts the postal code in the 
input address?

-- 
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/-/8fyvcDciyScJ.
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] Re: Issues with Markererclusterplus with ie8 12000 markers

2011-12-14 Thread meenu bhatti
Hi Gary,

I tried that but still getting the error.

Harman

On Thu, Dec 15, 2011 at 1:56 AM, Gary Little  wrote:

> Harman,
>
> Try using the batchSizeIE parameter. It's use is covered in the
> MarkerClustererPlus reference.
>
> Rendering this many markers will still be very slow but by setting
> batchSizeIE appropriately you can probably avoid the error message.
>
> Gary
>
> On Dec 14, 10:33 pm, meenu bhatti  wrote:
> > Hi All,
> > I am using Markererclusterplus.js for rendering markers implementing
> > clustering.
> > For ie8 rendering of markers is very slow and gives error 'a script is
> > making the internet explorer to run slow..'
> >
> > I cant change the approach as site is already in production.I tried
> fusion
> > tables,but clustering is not possible with that.Earlier there were only
> > 5000 markers and it was fine.
> > Please help me .I studied that we can mark 10-15000 markers with
> clustering
> > but for me its very slow.
> >
> > If any one has already implemented the same,can you please forward me the
> > code.It will be really helpful.
> >
> > Thanks&Regards,
> > Harman
>
> --
> 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...@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: Issues with Markererclusterplus with ie8 12000 markers

2011-12-14 Thread Gary Little
Harman,

Try using the batchSizeIE parameter. It's use is covered in the
MarkerClustererPlus reference.

Rendering this many markers will still be very slow but by setting
batchSizeIE appropriately you can probably avoid the error message.

Gary

On Dec 14, 10:33 pm, meenu bhatti  wrote:
> Hi All,
> I am using Markererclusterplus.js for rendering markers implementing
> clustering.
> For ie8 rendering of markers is very slow and gives error 'a script is
> making the internet explorer to run slow..'
>
> I cant change the approach as site is already in production.I tried fusion
> tables,but clustering is not possible with that.Earlier there were only
> 5000 markers and it was fine.
> Please help me .I studied that we can mark 10-15000 markers with clustering
> but for me its very slow.
>
> If any one has already implemented the same,can you please forward me the
> code.It will be really helpful.
>
> Thanks&Regards,
> Harman

-- 
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] Issues with Markererclusterplus with ie8 12000 markers

2011-12-14 Thread meenu bhatti
Hi All,
I am using Markererclusterplus.js for rendering markers implementing
clustering.
For ie8 rendering of markers is very slow and gives error 'a script is
making the internet explorer to run slow..'

I cant change the approach as site is already in production.I tried fusion
tables,but clustering is not possible with that.Earlier there were only
5000 markers and it was fine.
Please help me .I studied that we can mark 10-15000 markers with clustering
but for me its very slow.

If any one has already implemented the same,can you please forward me the
code.It will be really helpful.

Thanks&Regards,
Harman

-- 
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: Geometry library not working in IE [8]

2011-12-14 Thread Rossko
> Also, when removing one of both, it still doesnt work... :(

Your demo page is still loading the API twice
http://code.google.com/apis/maps/documentation/javascript/basics.html#Libraries
once will do

-- 
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: Event delegation vs Event handling

2011-12-14 Thread Silver
Sorry, but was just an example no matter the overlay type, the
question is about listeners.
Somebody else with a similar doubt?


On 14 dic, 19:04, Marcelo  wrote:
> On Dec 14, 5:26 pm, Silver  wrote:
>
> > Hi Marcelo,
> > Thanks a lot.
> > Please... check the follow example:
>
> I don't parse code in my head as the compiler in my browser is much
> better at doing that.
>
>
>
> > In this case... I'm creating 2,000 markers in the loop, but I don't
> > need create 2,000 listeners because I'm receiving in the map the
> > triggered events.
> > Am I wrong? This way improve the memory availability?
> > Regards!!
>
> Your original question was about 3000 "complex" polygons, not about
> markers.
>
> --
> Marcelo -http://maps.forum.nu
> --
>
>
>
>
>
>
>
>
>
> > On 14 dic, 15:13, Marcelo  wrote:
>
> > > Polygons are not DOM objects, therefore you cannot make use of the
> > > javascript properties event bubbling and target that are used with the
> > > event delegation technique.
> > > According to the documentation, the map pane that holds the polygons,
> > > (overlayLayer), may not receive DOM events, so in terms of map
> > > objects, the parent which could do event delegation is the map itself.
> > > In order to do this you'd need to iterate an array of polygons and do
> > > some point-in-polygon analysis to determine in which polygon the event
> > > took place. This might work with click events, but I can't imagine it
> > > performing all too well with mouseover or mouseut events, which would
> > > have to be triggered by a mousemove event handler on the map.
>
> > > In more general terms, mouseover and mouseout on as many as 3000
> > > objects is nuts! (IMHO) :-)
>
> > > --
> > > Marcelo -http://maps.forum.nu
> > > --
>
> > > On Dec 14, 1:46 pm, Silver  wrote:
>
> > > > Hello friends,
> > > > Some idea about events delegation instead events handling in Google
> > > > Mapas API v3??
> > > > Currently, I'm creating 3,000 complex polygons, each of them has 5
> > > > listeners (click, dblclick, mouseover, mouseout and rightclick)...
> > > > with a hight use of memory.
> > > > A better approach can be using OverlayView extending a polygon class,
> > > > setting the listeners only one time and trigger its to the map??
> > > > Some example or idea??
> > > > Thanks a lot,
> > > > Silver

-- 
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: Event delegation vs Event handling

2011-12-14 Thread Marcelo
On Dec 14, 5:26 pm, Silver  wrote:
> Hi Marcelo,
> Thanks a lot.
> Please... check the follow example:

I don't parse code in my head as the compiler in my browser is much
better at doing that.

>
> In this case... I'm creating 2,000 markers in the loop, but I don't
> need create 2,000 listeners because I'm receiving in the map the
> triggered events.
> Am I wrong? This way improve the memory availability?
> Regards!!

Your original question was about 3000 "complex" polygons, not about
markers.


--
Marcelo - http://maps.forum.nu
--



>
> On 14 dic, 15:13, Marcelo  wrote:
>
>
>
>
>
>
>
> > Polygons are not DOM objects, therefore you cannot make use of the
> > javascript properties event bubbling and target that are used with the
> > event delegation technique.
> > According to the documentation, the map pane that holds the polygons,
> > (overlayLayer), may not receive DOM events, so in terms of map
> > objects, the parent which could do event delegation is the map itself.
> > In order to do this you'd need to iterate an array of polygons and do
> > some point-in-polygon analysis to determine in which polygon the event
> > took place. This might work with click events, but I can't imagine it
> > performing all too well with mouseover or mouseut events, which would
> > have to be triggered by a mousemove event handler on the map.
>
> > In more general terms, mouseover and mouseout on as many as 3000
> > objects is nuts! (IMHO) :-)
>
> > --
> > Marcelo -http://maps.forum.nu
> > --
>
> > On Dec 14, 1:46 pm, Silver  wrote:
>
> > > Hello friends,
> > > Some idea about events delegation instead events handling in Google
> > > Mapas API v3??
> > > Currently, I'm creating 3,000 complex polygons, each of them has 5
> > > listeners (click, dblclick, mouseover, mouseout and rightclick)...
> > > with a hight use of memory.
> > > A better approach can be using OverlayView extending a polygon class,
> > > setting the listeners only one time and trigger its to the map??
> > > Some example or idea??
> > > Thanks a lot,
> > > Silver

-- 
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: Event delegation vs Event handling

2011-12-14 Thread Silver
Hi Marcelo,
Thanks a lot.
Please... check the follow example:

MyMarker = function(opts)
{
for (var key in opts)
this[key] = opts[key];
google.maps.event.addListener(this, 'click', function (ev)
{ google.maps.event.trigger(this.map, 'click_marker', ev, this); });
this.setPosition(this.position);
this.setMap(this.map);
return this;
};
MyMarker.prototype = new google.maps.Marker();
google.maps.MyMarker = MyMarker;

...
...

var opts = { zoom: 9, center: new google.maps.LatLng(-34.397,
150.644), mapTypeId: google.maps.MapTypeId.ROADMAP };
var map = new google.maps.Map(document.getElementById("map"), opts);
google.maps.event.addListener(map, 'click_marker', function(ev, poly)
{
console.log('clicked marker ' + poly.index);
});

for (var i=0; i<2000; i++) {
var marker = new google.maps.MyMarker({ title: 'Marker No. ' + 
i,
index: i });
marker.setPosition(arrayLatLng[i]);
marker.setMap(map);
}

In this case... I'm creating 2,000 markers in the loop, but I don't
need create 2,000 listeners because I'm receiving in the map the
triggered events.
Am I wrong? This way improve the memory availability?
Regards!!


On 14 dic, 15:13, Marcelo  wrote:
> Polygons are not DOM objects, therefore you cannot make use of the
> javascript properties event bubbling and target that are used with the
> event delegation technique.
> According to the documentation, the map pane that holds the polygons,
> (overlayLayer), may not receive DOM events, so in terms of map
> objects, the parent which could do event delegation is the map itself.
> In order to do this you'd need to iterate an array of polygons and do
> some point-in-polygon analysis to determine in which polygon the event
> took place. This might work with click events, but I can't imagine it
> performing all too well with mouseover or mouseut events, which would
> have to be triggered by a mousemove event handler on the map.
>
> In more general terms, mouseover and mouseout on as many as 3000
> objects is nuts! (IMHO) :-)
>
> --
> Marcelo -http://maps.forum.nu
> --
>
> On Dec 14, 1:46 pm, Silver  wrote:
>
>
>
>
>
>
>
> > Hello friends,
> > Some idea about events delegation instead events handling in Google
> > Mapas API v3??
> > Currently, I'm creating 3,000 complex polygons, each of them has 5
> > listeners (click, dblclick, mouseover, mouseout and rightclick)...
> > with a hight use of memory.
> > A better approach can be using OverlayView extending a polygon class,
> > setting the listeners only one time and trigger its to the map??
> > Some example or idea??
> > Thanks a lot,
> > Silver

-- 
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: Geometry library not working in IE [8]

2011-12-14 Thread Kasper
I can't believe I didn't get notified about this reply...
But yeah, I include it twice, because I need two different parts: the
main library and the geometry library?
Or would the first include all?

Also, when removing one of both, it still doesnt work... :(

Any suggestions?

On 18 nov, 21:45, "geocode...@gmail.com"  wrote:
> On Nov 18, 12:01 pm, Kasper  wrote:
>
> > Note, you can view the page here:http://bit.ly/w2eGDR
>
> looks to me like you are including the API twice, once with the
> library once without:
> http://maps.googleapis.com/maps/
> api/js?sensor=false">
> http://maps.googleapis.com/maps/
> api/js?libraries=geometry&sensor=false">
>
>   -- 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: v3 Mini Map (GOverviewMapControl)

2011-12-14 Thread Rossko
> I i've seen some posts related with this, but the date is from 2009, i
> want to know if this remains no mini map version for api v3

You mean an Overview Map ?
http://code.google.com/apis/maps/documentation/javascript/controls.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: A couple of things with markers titles problem and custom overlay

2011-12-14 Thread Marcelo
On Dec 14, 10:35 am, K Lo  wrote:
>
> First thing is that the titles of the markers doesn't always show in
> FF (I'm using 8).  Some do some don't.  One thing I figured is that if
> I move my mouse pointer outside of the maps boundary and back inside,
> the one that didn't show title would then show title.  I am thinking
> of making the map full screen and that problem is going to make my map
> unusable for 1/3 of the browser out there.

I don't have FF8. Looks fine in Chrome.

>
> Second thing is the custom overlay image seems to be on top of the
> markers.  Is there a place I can stick a zIndex to so it'll appear
> underneath?

Try adding the overlay before adding the markers.
They go on the same mapPane, so as you're doing it now, when you do
panes.overlayImage.appendChild(this.div_);
the markers are already there.


>
> Third thing is, if I link away from the map and then back, all markers
> load regardless of the checkboxes status before I link away.  Any
> suggestion on how can I control this so the right site of markers will
> show when I return to the map by clicking 'back' on the browser?
>

It's an AJAX application, so it does not preserve the state unless you
preserve it in a server session or a cookie. However, some browsers
will preserve the state of checkboxes, so you could check the state of
the checkbox before loading the markers, for example:

//== Untested ===
if (document.getElementById('Checkbox1').checked) {
setMarkers(map, ElementarySchools, 'e');
}


--
Marcelo - http://maps.forum.nu
--




-- 
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] v3 Mini Map (GOverviewMapControl)

2011-12-14 Thread richcoto
I i've seen some posts related with this, but the date is from 2009, i
want to know if this remains no mini map version for api v3 because i
want to use it with the styling map feature of v3, but if there is no
minimap i couldn't use v3, please some help will be appreciated,
thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-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] geoxml3 implementation in GM api3

2011-12-14 Thread Rizwan Ali
I want a simple code in which geoxml3 implemented on a ploygon with
mouseover action like this on 
http://www.geocodezip.com/geoxml3_test/v3_geoxml3_polygon_highlight.html

with a little description of source code. Please don't tell me this
link :P (http://code.google.com/p/geoxml3/wiki/Usage)

-- 
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] places search autocomplete

2011-12-14 Thread Austin Buuren
Hello everybody,

I embedded this 
code
 from 
v3 api examples to my site, but it doesn't search when I hit "Enter" on the 
keyboard, I can only pick the option and start the search by clicking on it.
Is there any way to enable on-enter-key-press search?

I would be very grateful if someone could help me.

Cheers,
Austin 

-- 
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/-/3jy98XluousJ.
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] Re: Local searches

2011-12-14 Thread Matt Young
That's perfect!! Can I use the code?

Thanks

Sent from my iPhone

On 14 Dec 2011, at 21:08, davie  wrote:

> Hi
> Something like this http://daviestrachan.zxq.net/maps/taxicalc.html
> works with address or Postcode
> Regards Davie
>
> On Dec 13, 7:44 pm, Matt Young  wrote:
>> I want to display the map and fine having the directions. How do I
>> make the start and end point user defined?
>>
>> Sent from my iPhone
>>
>> On 13 Dec 2011, at 19:39, Barry Hunter  wrote:
>>
>>
>>
>>
>>
>>
>>
>>> Hmm, seems my information was outdated
>>
>>> http://code.google.com/apis/maps/terms.html#section_10_1
>>
>>> 10.1.1.(g). Says you cant even use it without a map. So just
>>> displaying the text is no longer enough.
>>
>>> Cant find anywhere in the documentation that explicitly allows
>>> displaying content without a map
>>> http://code.google.com/apis/maps/documentation/javascript/services.ht...
>>
>>> See also
>>> http://code.google.com/apis/maps/documentation/directions/#Limits
>>
>>> On Tue, Dec 13, 2011 at 7:29 PM, Barry Hunter  
>>> wrote:
 Actually you do need to display the 'directions box'
>>
 The terms say you must display the results on a Google Map, or display
 the whole text (which naturally includes the copyright message)
>>
 Other than that allowing the user to choose a location, or type. Is
 not really a Maps API question. A common way to do that is with a
 'combo' box.
>>
 The first result searching for "javascript combo box"
 http://www.javascriptkit.com/script/cutindex16.shtml
>>
 On Tue, Dec 13, 2011 at 6:01 PM, Matt  wrote:
> I hope someone can help. I have been trying to create a taxi fare
> calculator for our new website using Google maps so I've been playing
> around with some code. I have managed to create this (excuse the
> styling I'm just trying to get the function right first)
>>
> http://www.shrewsburytaxiservice.co.uk/shrewsbury_taxi_service_local_...
>>
> which has been simple enough using examples from Google tutorials but
> what I want to do is make the start and end point editable by the
> customer so they can enter a street name, town or postcode as well as
> choosing from a pre-selected options list (i.e UK airports) and for
> the route to then be calculated giving a result in miles. I don't
> really need the directions box although I have included it for now as
> it is the only way I have been able to get the distance calculated.
> The resulting mileage can then be used to calculate the fare.
>>
> Hope that makes sense
>>
> 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 
> athttp://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 
>>> athttp://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.
>

-- 
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] Re: A couple of things with markers titles problem and custom overlay

2011-12-14 Thread Johnny K Lo
Pls see link below.

http://www.strathcona-health.ca/vsb/maps/ourschoolsmap0.7.html

Any help would be appreciated.


On Wed, Dec 14, 2011 at 2:06 PM, Johnny K Lo  wrote:

> Pls see link below.
>
> http://www.strathcona-health.ca/vsb/maps/ourschoolsmap0.7.html
>
> Any help would be appreciated.
>
>
>
> On Wed, Dec 14, 2011 at 11:46 AM, 24/7 <2...@gmx.net> wrote:
>
>> Try jsfiddle.net
>>
>> --
>> 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/-/0sLXz45JDZUJ.
>>
>> 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.



Re: [Google Maps API v3] Re: A couple of things with markers titles problem and custom overlay

2011-12-14 Thread Johnny K Lo
Pls see link below.

http://www.strathcona-health.ca/vsb/maps/ourschoolsmap0.7.html

Any help would be appreciated.


On Wed, Dec 14, 2011 at 11:46 AM, 24/7 <2...@gmx.net> wrote:

> Try jsfiddle.net
>
> --
> 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/-/0sLXz45JDZUJ.
>
> 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: Event delegation vs Event handling

2011-12-14 Thread Marcelo
Polygons are not DOM objects, therefore you cannot make use of the
javascript properties event bubbling and target that are used with the
event delegation technique.
According to the documentation, the map pane that holds the polygons,
(overlayLayer), may not receive DOM events, so in terms of map
objects, the parent which could do event delegation is the map itself.
In order to do this you'd need to iterate an array of polygons and do
some point-in-polygon analysis to determine in which polygon the event
took place. This might work with click events, but I can't imagine it
performing all too well with mouseover or mouseut events, which would
have to be triggered by a mousemove event handler on the map.

In more general terms, mouseover and mouseout on as many as 3000
objects is nuts! (IMHO) :-)

--
Marcelo - http://maps.forum.nu
--



On Dec 14, 1:46 pm, Silver  wrote:
> Hello friends,
> Some idea about events delegation instead events handling in Google
> Mapas API v3??
> Currently, I'm creating 3,000 complex polygons, each of them has 5
> listeners (click, dblclick, mouseover, mouseout and rightclick)...
> with a hight use of memory.
> A better approach can be using OverlayView extending a polygon class,
> setting the listeners only one time and trigger its to the map??
> Some example or idea??
> Thanks a lot,
> Silver

-- 
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: Local searches

2011-12-14 Thread davie
Hi
Something like this http://daviestrachan.zxq.net/maps/taxicalc.html
works with address or Postcode
Regards Davie

On Dec 13, 7:44 pm, Matt Young  wrote:
> I want to display the map and fine having the directions. How do I
> make the start and end point user defined?
>
> Sent from my iPhone
>
> On 13 Dec 2011, at 19:39, Barry Hunter  wrote:
>
>
>
>
>
>
>
> > Hmm, seems my information was outdated
>
> >http://code.google.com/apis/maps/terms.html#section_10_1
>
> > 10.1.1.(g). Says you cant even use it without a map. So just
> > displaying the text is no longer enough.
>
> > Cant find anywhere in the documentation that explicitly allows
> > displaying content without a map
> >http://code.google.com/apis/maps/documentation/javascript/services.ht...
>
> > See also
> >http://code.google.com/apis/maps/documentation/directions/#Limits
>
> > On Tue, Dec 13, 2011 at 7:29 PM, Barry Hunter  
> > wrote:
> >> Actually you do need to display the 'directions box'
>
> >> The terms say you must display the results on a Google Map, or display
> >> the whole text (which naturally includes the copyright message)
>
> >> Other than that allowing the user to choose a location, or type. Is
> >> not really a Maps API question. A common way to do that is with a
> >> 'combo' box.
>
> >> The first result searching for "javascript combo box"
> >>http://www.javascriptkit.com/script/cutindex16.shtml
>
> >> On Tue, Dec 13, 2011 at 6:01 PM, Matt  wrote:
> >>> I hope someone can help. I have been trying to create a taxi fare
> >>> calculator for our new website using Google maps so I've been playing
> >>> around with some code. I have managed to create this (excuse the
> >>> styling I'm just trying to get the function right first)
>
> >>>http://www.shrewsburytaxiservice.co.uk/shrewsbury_taxi_service_local_...
>
> >>> which has been simple enough using examples from Google tutorials but
> >>> what I want to do is make the start and end point editable by the
> >>> customer so they can enter a street name, town or postcode as well as
> >>> choosing from a pre-selected options list (i.e UK airports) and for
> >>> the route to then be calculated giving a result in miles. I don't
> >>> really need the directions box although I have included it for now as
> >>> it is the only way I have been able to get the distance calculated.
> >>> The resulting mileage can then be used to calculate the fare.
>
> >>> Hope that makes sense
>
> >>> 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 
> >>> athttp://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 
> > athttp://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] Event delegation vs Event handling

2011-12-14 Thread Silver
Hello friends,
Some idea about events delegation instead events handling in Google
Mapas API v3??
Currently, I'm creating 3,000 complex polygons, each of them has 5
listeners (click, dblclick, mouseover, mouseout and rightclick)...
with a hight use of memory.
A better approach can be using OverlayView extending a polygon class,
setting the listeners only one time and trigger its to the map??
Some example or idea??
Thanks a lot,
Silver

-- 
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 road layer on top of my tiles?

2011-12-14 Thread Marcelo
This should be possible, (like everything), by creating a custom tile
layer with the getTile() function from the main mapType, and with
opacity.

Here is a custom tile layer object with opacity:
http://maps.forum.nu/v3/gm_customTiles.html

... and I was trying to create what you describe when I got a BSOD, so
I am not going to try it again right now because I have work to do,
but let us know if you need more help.

--
Marcelo - http://maps.forum.nu
--


On Dec 14, 10:13 am, Steve D  wrote:
> Possible to do this?  Lots of references to overlay's but I'd like an
> underlay!  I currently have large blobs of data that are mildly transparent
> on top of the google maps road layer so that the roads, lakes and other
> features are visible.  It would be preferable to have my large mess of
> polygon data beneath these layers.  The ability to style Google's layers
> suggests that the data is flexible, but I don't know where to start.
>  Ideally, my data could also sit on top of the satellite layer and below
> the road layer... but I could live without that for now.  Thanks,
>
> -Steve D

-- 
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: Draw regions from points at the map

2011-12-14 Thread Marcelo
Regions is a geographic concept that defines an area of the map,
therefore the only criteria that you'll be able to group the points by
is their lat/lon. No other attribute or "filter" is relevant.

You can either do clustering, as in
http://maps.forum.nu/server_side_clusterer/index2.php
http://maps.forum.nu/server_side_clusterer/index.php

or you can subdivide the country into existing political regions, such
as states or provinces, and associate each point with one of them.

--
Marcelo - http://maps.forum.nu
--



On Dec 14, 9:51 am, Carlos Eduardo Rührwiem 
wrote:
> Hello,
>
> I'm working for a projet that needs to use about 300k points in the map.
> All of them have attributes that will be used with the input filters. I
> need to draw regions on the map that separates all of the points in regions
> that meet the specified filters. The country should have at least 400
> regions inside and this regions must cover all the country.
>
> My team was able to group all the points using the filters and considering
> the distance between them. But I'm not sure of how can I create regions
> grouping all those points in the map leaving no space missing in the map.
>
> Can anyone give me some suggestions?
>
> Regards,
> Carlos

-- 
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: NetworkLink kml file works in Google earth but not on Google maps (the browser map is just a bare map without any placemarks)

2011-12-14 Thread Rossko
> I'm begining to think that its a problem with the NetworkLink file.

Bear in mind it increases the overall latency, fetching (at least) two
consecutive files.

Demos?

-- 
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: Drawing a sector in API v3

2011-12-14 Thread subversionpdx
Thank you, that worked perfectly :)

Joe

On Dec 14, 12:15 pm, Andrew Leach  wrote:
> On 14 December 2011 19:44, subversionpdx  wrote:
>
> > Updated someone else's previous example of this for Google Maps API V3
>
> > Anyone know if something like this can be filled with a color /
> > opacity?
>
> >            var poly = new google.maps.Polyline({map: map, path:
> > PGpoints, strokeColor: "#00ff00", strokeOpacity: 1.0,
> >                strokeWeight: 2 });
>
> If you use Polygon instead of Polyline you get additional options.
>
> http://code.google.com/apis/maps/documentation/javascript/reference.h...

-- 
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] Multiple Marker with Categories and Types

2011-12-14 Thread Kishanth Mehra
okay thanks.. I'll try it :D

-- 
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/-/IOY-E4I58ekJ.
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] Drawing a sector in API v3

2011-12-14 Thread Andrew Leach
On 14 December 2011 19:44, subversionpdx  wrote:
> Updated someone else's previous example of this for Google Maps API V3
>
> Anyone know if something like this can be filled with a color /
> opacity?
>
>            var poly = new google.maps.Polyline({map: map, path:
> PGpoints, strokeColor: "#00ff00", strokeOpacity: 1.0,
>                strokeWeight: 2 });

If you use Polygon instead of Polyline you get additional options.

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

-- 
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] Drawing a sector in API v3

2011-12-14 Thread subversionpdx
Updated someone else's previous example of this for Google Maps API V3
-

Anyone know if something like this can be filled with a color /
opacity?

function drawSector(lat,lng,r,azimuth,width) {
//Degrees to radians
var d2r = Math.PI / 180;
//  Radians to degrees
var r2d = 180 / Math.PI;


var centerPoint = new google.maps.LatLng(lat,lng);
var PRlat = (r/3963) * r2d; // using 3963 miles as earth's
radius
var PRlng = PRlat/Math.cos(lat*d2r);
var PGpoints = [];
PGpoints.push(centerPoint);
with (Math) {
lat1 = lat + (PRlat * cos( d2r * (azimuth  - width/2 )));
lon1 = lng + (PRlng * sin( d2r * (azimuth  - width/2 )));
PGpoints.push( new google.maps.LatLng(lat1,lon1));
lat2 = lat + (PRlat * cos( d2r * (azimuth  + width/2 )));
lon2 = lng + (PRlng * sin( d2r * (azimuth  + width/2 )));
var theta = 0;
var gamma = d2r * (azimuth  + width/2 );
for (var a = 1; theta < gamma ; a++ ) {
 theta = d2r * (azimuth  - width/2 +a);
 PGlon = lng + (PRlng * sin( theta ));
 PGlat = lat + (PRlat * cos( theta ));
PGpoints.push(new
google.maps.LatLng(PGlat,PGlon));
}
PGpoints.push( new google.maps.LatLng(lat2,lon2));
PGpoints.push(centerPoint);
}
var poly = new google.maps.Polyline({map: map, path:
PGpoints, strokeColor: "#00ff00", strokeOpacity: 1.0,
strokeWeight: 2 });
poly.setMap(map);
  return poly;
}

-- 
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: Difference between GGeoXml and KmlLayer

2011-12-14 Thread Rossko
> I new to thins group. I just want to know that what is the difference
> between GGeoXml and KmlLayer methods in Google Map api

One is used in API v2 , the other is used in API v3

> And one thing
> more when i try to use this kml 
> filehttp://www.gelib.com/wp-content/uploads/2009/world-borders_nl.kml
> on map.google.com it not show me the polygon filled colors.


  aaff
  random


colorMode is not supported in maps.google.com see
http://code.google.com/apis/kml/documentation/kmlelementsinmaps.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: Different response geocoding in PHP than directly in URL navigation bar in Google maps api v3 json

2011-12-14 Thread 24/7
http://code.google.com/intl/en-EN/apis/maps/faq.html#geocoder_differences

-- 
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/-/v7LhkKTr6mUJ.
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] Re: A couple of things with markers titles problem and custom overlay

2011-12-14 Thread 24/7
Try jsfiddle.net

-- 
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/-/0sLXz45JDZUJ.
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] Draw regions from points at the map

2011-12-14 Thread Carlos Eduardo Rührwiem
Hello,

I'm working for a projet that needs to use about 300k points in the map. 
All of them have attributes that will be used with the input filters. I 
need to draw regions on the map that separates all of the points in regions 
that meet the specified filters. The country should have at least 400 
regions inside and this regions must cover all the country.

My team was able to group all the points using the filters and considering 
the distance between them. But I'm not sure of how can I create regions 
grouping all those points in the map leaving no space missing in the map.

Can anyone give me some suggestions?

Regards,
Carlos

-- 
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/-/Vhd88JnYN3sJ.
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] Memory leak with setCenter()?

2011-12-14 Thread Sander Sturing
I hope this is not a repost, but I've searched everywhere and couldn't find 
a clear fix so far.

First I just initialize a very simple map (no markers etc.). I have a 
script where every couple of seconds I call the setCenter() function like 
this:

latlng = new google.maps.LatLng(56.02508 +random_number(-2, 2), 
2.39525+random_number(-2, 2));
   map.setCenter(latlng);

Is there any way to clear the memory every time this is called. It is 
called by the setInterval function and refreshing the whole page is not an 
option. I've tried re-initializing the whole map everytime instead of just 
changing position but that doesn't seem to work either.
Thanks in advance!

*BTW, the whole script is a little bit more advanced with AJAX-calls which 
places markers with infoboxes.
But after a couple of time debugging that script it seems to be stuck on 
the setCenter() part.

I saw this 
demoin
 another 
postand
 that is basically the same script as I'm describing at the top. (random 
position-changing on a single 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/-/fleX91NYC_8J.
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] memory leaks when using .panTo

2011-12-14 Thread Sander Sturing
I'm currently getting the same memory leak issues working on a similar 
script as the demo LarryK showed. Is there a fix already since I can't 
really seem to find anything yet...?

-- 
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/-/qlsjhLZOkswJ.
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] Difference between GGeoXml and KmlLayer

2011-12-14 Thread Rizwan Ali
Hi All,

I new to thins group. I just want to know that what is the difference
between GGeoXml and KmlLayer methods in Google Map api. And one thing
more when i try to use this kml file 
http://www.gelib.com/wp-content/uploads/2009/world-borders_nl.kml
on map.google.com it not show me the polygon filled colors. But when i
run it with google earth or paste it on
http://kml-samples.googlecode.com/svn/trunk/interactive/index.html its
give me the polygon coloring. So what is the problem in kml file. I
want these coloring in google map.

-- 
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] Re: A couple of things with markers titles problem and custom overlay

2011-12-14 Thread Johnny K Lo
It is on an internal network I'll try to set up it up somewhere...

On Wed, Dec 14, 2011 at 10:02 AM, Marcelo  wrote:

> On Dec 14, 10:35 am, K Lo  wrote:
> >
> > Please see my code below.  Thanks in advance for helping.
> >
> > *** HTML file as followed **
>
> Massive code dump ignored.
>
> You still haven't read the posting guidelines, as it was suggested to
> you in your other thread.
>
> http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/1863801601f3f3db
>
> --
> Marcelo - http://maps.forum.nu
> --
>
> --
> 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...@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: A couple of things with markers titles problem and custom overlay

2011-12-14 Thread Marcelo
On Dec 14, 10:35 am, K Lo  wrote:
>
> Please see my code below.  Thanks in advance for helping.
>
> *** HTML file as followed **

Massive code dump ignored.

You still haven't read the posting guidelines, as it was suggested to
you in your other thread.
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/1863801601f3f3db

--
Marcelo - http://maps.forum.nu
--

-- 
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] A couple of things with markers titles problem and custom overlay

2011-12-14 Thread K Lo
I have been working on a map about schools in Vancouver.  For days, I
am stuck with these problems.  Would really appreciate if someone can
help.

First thing is that the titles of the markers doesn't always show in
FF (I'm using 8).  Some do some don't.  One thing I figured is that if
I move my mouse pointer outside of the maps boundary and back inside,
the one that didn't show title would then show title.  I am thinking
of making the map full screen and that problem is going to make my map
unusable for 1/3 of the browser out there.

Second thing is the custom overlay image seems to be on top of the
markers.  Is there a place I can stick a zIndex to so it'll appear
underneath?

Third thing is, if I link away from the map and then back, all markers
load regardless of the checkboxes status before I link away.  Any
suggestion on how can I control this so the right site of markers will
show when I return to the map by clicking 'back' on the browser?

Please see my code below.  Thanks in advance for helping.

*** HTML file as followed **




Our School - Test Version 0.7

 




http://maps.googleapis.com/maps/api/js?sensor=true";>










 Select schools
 
 
Elementary Schools
 
Secondary Schools
  
   Adult Education Centres
 
   StrongStart Centres
 
 Select area
 
Show sectors









*** mapscripts.js file as followed ***

// JavaScript Document
// version 0.6.2 2011-12-13
// For SectoralReview website ourfuture.vsb.bc.ca.
// Use Google Map V3


var map;
var marker;
var poly;
var ElementaryMarkerArray=new Array();  // data from
googlemapdata.js
var SecondaryMarkerArray=new Array();
var StrongStartMarkerArray=new Array();
var EdCentreMarkerArray = new Array();
var CurrentSchoolsArray = new Array(); // Contain Active markers



// Custom Overlay

var overlay;

VSBOverlay.prototype = new google.maps.OverlayView();

function VSBOverlay(bounds, image, map) {
// Now initialize all properties.
this.bounds_ = bounds;
this.image_ = image;
this.map_ = map;
this.div_ = null;
this.setMap(map);
}


VSBOverlay.prototype.onAdd = function () {


var div = document.createElement('DIV');
div.style.border = "none";
div.style.borderWidth = "0px";
div.style.position = "absolute";
div.style.zIndex = "-1";

var img = document.createElement("img");
img.src = this.image_;
img.style.width = "100%";
img.style.height = "100%";
div.appendChild(img);

this.div_ = div;

var panes = this.getPanes();
panes.overlayImage.appendChild(this.div_);
}

VSBOverlay.prototype.draw = function () {

var overlayProjection = this.getProjection();

var sw =
overlayProjection.fromLatLngToDivPixel(this.bounds_.getSouthWest());
var ne =
overlayProjection.fromLatLngToDivPixel(this.bounds_.getNorthEast());

var div = this.div_;
div.style.left = sw.x + 'px';
div.style.top = ne.y + 'px';
div.style.width = (ne.x - sw.x) + 'px';
div.style.height = (sw.y - ne.y) + 'px';
}

VSBOverlay.prototype.onRemove = function () {
this.div_.parentNode.removeChild(this.div_);
}

VSBOverlay.prototype.hide = function () {
if (this.div_) {
this.div_.style.visibility = "hidden";
}
}

VSBOverlay.prototype.show = function () {
if (this.div_) {
this.div_.style.visibility = "visible";
}
}

VSBOverlay.prototype.toggle = function () {
if (this.div_) {
if (this.div_.style.visibility == "hidden") {
this.show();
} else {
this.hide();
}
}
}




// *** End Custom Overlay

// show sectors map GIF overlay
function showsectorsmap(flag) {
var showmap = flag;
if (showmap) {sectorsmap.setMap(map); }
else { sectorsmap.setMap(null); }
}



// place markers
function setMarkers(map, locations, schoollevel) {

  // set image and shadow for Elementary and Secondary schools
  if (schoollevel=='e') {
  var image = new google.maps.MarkerImage('../maps/assets/
map_elementary.png',
  new google.maps.Size(19, 15),
  new google.maps.Point(0, 0),
  new google.maps.Point(0, 15));
  }
  else if (schoollevel=='s') {
  var image = new google.maps.MarkerImage('../maps/assets/
map_secondary.png',
  new google.maps.Size(26, 21),
  new google.maps.Point(0, 0),
  new google.maps.Point(0, 21));
  }
  else if (schoollevel=='ss') {
  var image = new google.maps.MarkerImage('../maps/assets/
map_strong_start.png',
  new google.maps.Size(19, 15),
  new google.maps.Point(0, 0),
  new google.maps.Point(0, 15));
   

[Google Maps API v3] Google road layer on top of my tiles?

2011-12-14 Thread Steve D
Possible to do this?  Lots of references to overlay's but I'd like an
underlay!  I currently have large blobs of data that are mildly transparent
on top of the google maps road layer so that the roads, lakes and other
features are visible.  It would be preferable to have my large mess of
polygon data beneath these layers.  The ability to style Google's layers
suggests that the data is flexible, but I don't know where to start.
 Ideally, my data could also sit on top of the satellite layer and below
the road layer... but I could live without that for now.  Thanks,

-Steve D

-- 
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] Re: toggle only work with button not checkbox

2011-12-14 Thread Johnny K Lo
Thank you Jeff.  It was my first post.  I apologize for not familiarizing
myself with the guideline before I post.  It was a distress call...

I got it figured out and it works now.  But thank you anyway for taking the
time to answer.  Appreciate it.

Johnny


On Thu, Dec 8, 2011 at 6:08 PM, JKurtock  wrote:

> Let's see.  Your problem is html/javascript; nothing to do with maps.
> Would someone on this forum help you?
>
> You obviously mis-typed something in your implementation.  COULD
> someone on this forum help you if they were willing to take the time?
> They can't see what you mis-typed.
>
> I'll bet if you had followed the posting guidelines (which require you
> to post a link to your map that shows the problem you are having),
> someone might actually have helped you out.
>
> Good luck!
>
> - Jeff
>
> On Dec 7, 4:51 pm, K Lo  wrote:
> > I followed the sample on code.google.com for maps javascript api v3 to
> > implement a custom overlay using exact set of codes except the image
> > and co-ordinates.
> >
> > http://code.google.com/intl/en/apis/maps/documentation/javascript/ove...
> >
> > But when I change the button to a check box, it doesn't work.  Maybe
> > I'm missing something totally obvious?
> >
> > I added this:
> >
> >> Onclick="overlay.toggle();" />
> >
> > in front of the original code:
> >
> >  > onclick="overlay.toggle();">
> >
> > The button works but the checkbox doesn't.  Anybody please help?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> google-maps-js-api-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: NetworkLink kml file works in Google earth but not on Google maps (the browser map is just a bare map without any placemarks)

2011-12-14 Thread Aaron E-J
I'm begining to think that its a problem with the NetworkLink file.  I 
can't load any file (kml or aspx) using ... but I 
can load the same kml file directly in the javascript.  

-- 
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/-/acN5_E7o5VMJ.
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: NetworkLink kml file works in Google earth but not on Google maps (the browser map is just a bare map without any placemarks)

2011-12-14 Thread Joseph Elfelt
As a test you could  try taking a static version of one of your KML
files, loading it onto Google Sites (fast servers) and trying  to
display it from there.
When you get the Google Sites URL to your file, strip the  '?' and
everything  after it.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-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: NetworkLink kml file works in Google earth but not on Google maps (the browser map is just a bare map without any placemarks)

2011-12-14 Thread Aaron E-J
 

Is there any way to customize the time limit (the server is incredibly slow 
so it is very likely that this is an/the issue).

-- 
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/-/szNDUhhMxUMJ.
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: any chances for for a google.maps.MapOptions "allowedBounds" property with latLngBounds as attribute?

2011-12-14 Thread Chad Killingsworth
Sounds like you'll want to star this issue to both vote for it and keep 
track of its progress:  
http://code.google.com/p/gmaps-api-issues/issues/detail?id=3457

-- 
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/-/0pq4j8pebJ4J.
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.