[Google Maps API v3] KML file, show a marker or a polygon depending on zoom level

2011-05-12 Thread PaulG
I have searched around but cannot find out whether what I want to do is possible or not. I have a number of smallish polygons (e.g car parks) in a kml file which I am displaying fine on a map. If the user zooms too far out though, it does not provide as good an experience as if I were displaying

[Google Maps API v3] Re: List of cities to convert latitude and longitude

2011-01-14 Thread PaulG
Its probably worth mentioning Google Fusion Tables has the ability to do this geocoding for you too, and you can export the full results, or subsets of the results as kml. This is expecially useful if your cities are each associated with,say, a state (or any other criteria) so you could query the

[Google Maps API v3] Re: Removing unnecessary polygon points

2010-12-23 Thread PaulG
Thanks for your reply @bratlif, I shall mull over that during the xmas break! I cannot say I know how to implement that but shall have a stab at it and come back if I cannot work it out, after all, this is how we learn. BTW, although I now have the capture and storage of Polygons working, I note

[Google Maps API v3] Re: Removing unnecessary polygon points

2010-12-22 Thread PaulG
@Ben Appleton said: "V3 implements something like Douglas-Peucker in JavaScript. Are you sure you need to pre-simplify your polylines? " Ah, you could be correct there, I will look a bit closer at the return values, I was just trying to work out in advance a problem I had noticed in my test data.

[Google Maps API v3] Removing unnecessary polygon points

2010-12-22 Thread PaulG
Hi, I have some edited polygons being submitted. It is entirely possible for those polygons to contain a point which lie on a straight line. To illustrate my case : if you imagine a square with 4 lines and 4 points, and on the top line there is a 5th point sitting on that line with exactly horiz

[Google Maps API v3] Re: General strategies for Polygon storage, am I on the right track?

2010-12-20 Thread PaulG
Sorry for the delay in replying to this thread, thanks for the input so far. @bratliff - thx, but I dont want an IE only solution. @Albert_Sun I have looked into storing the polygon in a Mysql table row as you suggested, and yes, this looks a really good solution, with lots of downstream benefit

[Google Maps API v3] General strategies for Polygon storage, am I on the right track?

2010-11-05 Thread PaulG
I have done quite a bit of searching around on this group and just thought I'd post my initial thoughts just in case someone can share any heads up on what I am about to attempt. I am adding the ability to add/edit polygons to a CMS, the backend is PHP/Mysql. I'd prefer not to have to go out to G

[Google Maps API v3] Re: KML layer not displayed even after receiving metadata_changed event on IE8

2010-09-16 Thread PaulG
Are you making sure that the url of the kml file changes on each call? http://is.gd/fd7xy You could just be getting the same cached file you originally served up a few hours ago. It could drive you nuts! -- You received this message because you are subscribed to the Google Groups "Google Maps

[Google Maps API v3] Re: KML features in Gmap 3

2010-09-16 Thread PaulG
I documented some of my findings from moving to 2 to 3, and highlight a couple of gotchas which might help. http://is.gd/fd7xy It does not answer any of your questions exactly, but overall I'm not sure if you need to have "queryable kml" such as can be stored in Google Fusion Tables. -- You rec

[Google Maps API v3] Re: search kml by radius from a given point

2010-08-05 Thread PaulG
I don't know your exact situation, but if your aim is to zoom in on the kml set of markers so that only a limited number are shown which equate to about a particular radius, then look at zooming the viewport in to a known level. ie Level 8 at 500px square shows 1 square mile (thats a rough guess b

[Google Maps API v3] Re: Piritiles, an App Engine based map tile cutter

2010-07-27 Thread PaulG
The first one comes back with 'map not found' message. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to g

[Google Maps API v3] Re: Cannot get KML layer to work

2010-07-19 Thread PaulG
"Can anyone explain why this data has to be in the public domain?" I do commiserate, there are some fundamental gotchas for the unwary. I had a go at explaining your question on my blog, its probably not very accurate because its how I "internalize" what is going on. "When a map is requested fro

[Google Maps API v3] Re: Accessing individual placemarkers using kmlLayers

2010-07-16 Thread PaulG
Create separate kml files for each building. Cache them (they don't move do they?) Serve them up on demand. It means your html drop-list is generated separately, but the contents of that can be programmed to be cached (nightly?) too. Works for me, but might not be practical if your info-box dat

[Google Maps API v3] Re: InfoWindow : its in the DOM, but not as we know it, Jim.

2010-07-12 Thread PaulG
> You can assign it a css class and style that: >http://www.geocodezip.com/v3_markers_normal_colored_infowindows_style... >If you try to put the infowindow's content in an outer element, then >you know the id of this element and can style it appropriately. Two good replies, thank you. >The div o

[Google Maps API v3] Re: InfoWindow : its in the DOM, but not as we know it, Jim.

2010-07-11 Thread PaulG
Perhaps I should ask how can I manipulate just the bold text contained in my InfoWindow by picking my way down the DOM structure? Or, what is the div of the InfoWindow named? But yes, hardwiring seems the only way round it with the least markup, but is still a brittle solution. -- You received

[Google Maps API v3] InfoWindow : its in the DOM, but not as we know it, Jim.

2010-07-10 Thread PaulG
I like the simplicity and speed of the native InfoWindows in Gmaps3, and understand that it comes at a price: a scroll-bar appears dependent upon the map-size and so on. However, can someone just confirm my understanding: If I have some emboldened text in message : "this is boldthis is not", Th

[Google Maps API v3] Re: load kml, centre upon it but no zoom?

2010-07-02 Thread PaulG
Well that was a fun-filled few hours .. but I got it working thanks to your advice and info I found in other threads. http://groups.google.co.uk/group/google-maps-js-api-v3/browse_thread/thread/ee2479ef82638d8b http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/b73a280d9d63

[Google Maps API v3] load kml, centre upon it but no zoom?

2010-07-02 Thread PaulG
I have a number of features in separate kml files, all contained within a pretty tight area. I can load them up dynamically and this works fine, think of a road gazetteer. However I don't want the viewport zooming in and out for these particular features. I want the current viewport to pan to th

[Google Maps API v3] Re: KML tag and links.

2010-07-01 Thread PaulG
This would appear to be a kml "feature" than a Gmaps v3 "problem". from: http://code.google.com/apis/kml/documentation/kmlreference.html#description "Targets are ignored when included in HTML written directly into the KML; all such links are opened as if the target is set to _blank. Any specifie

[Google Maps API v3] Re: "hello world" not working

2010-07-01 Thread PaulG
Or just add this to your map div; That had me going for a while yesterday too, I do admit. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api...@googlegroups.com. To unsu

[Google Maps API v3] Re: How many users actually use our Streetview?

2010-07-01 Thread PaulG
Thanks for the reply Chad. I will give that a go and report back when I get chance - deep into playing catchup migrating some features from v2 to v3. I only tried to add event tracking once before and that failed to work. One thing I really want to investigate is when, say, a building is chosen

[Google Maps API v3] How many users actually use our Streetview?

2010-06-30 Thread PaulG
This is for a community site where we already have geotagged many assets around the town. Is there any way of finding out what proportion of our visitors actually drag pegman onto the map? We will likely be trying a variety of ways to point out to people that all the streets in our town have Stre

[Google Maps API v3] Re: Trouble using KmlLayer

2010-06-23 Thread PaulG
KML files have to be served from a publicly available server, you cannot do this from localhost. I fell over on this point too, and we won't be the last, we've both lost time and money. Move the KML file to a public-facing server and it will probably work, but still, the rewrite-publish-test proc

[Google Maps API v3] Show/Hide a kml layer, is this the only way?

2010-06-21 Thread PaulG
Hi, It is pretty simple code which I just got this working, and wondered if it really is the most efficient way of hiding a kml layer when the user zooms out too far. I was expecting to see a setting in the kml layer which would handle this kind of thing. Given that: map is my google mapv3 insta

[Google Maps API v3] Re: KML and custom icons being resized

2010-06-19 Thread PaulG
Just to update this thread with what I discovered after playing around with the values; The "hotSpot" tag withing IconStyle does not do what had I first imagined, that is, work like a html hotspot on an old-fashioned image map. It contains settings which allow you to specify the position your ico

[Google Maps API v3] Re: KML and custom icons being resized

2010-06-18 Thread PaulG
William - thanks, I woke up thinking about that this morning and was worried that the "live" are would extend around the icon, 32x32 - ahah! hotSpot, great thanks for taking the time to point that out to me. James - thanks for the confirmation Makes me wonder what will happen with the "new enhanc

[Google Maps API v3] Re: KML and custom icons being resized

2010-06-17 Thread PaulG
Thanks for your courtesy in explaining all of that to me. I do admit I am struggling to grapple with some kind of ball I have dropped between V2 and V3, likely much to do with terminology as anything else. I'll read again with your comments in mind. Thanks -- You received this message because

[Google Maps API v3] Re: KML and custom icons being resized

2010-06-17 Thread PaulG
> Are you using the same marker and just different images with different image > sizes for the marker or are they different markers entirely?  I say this b/c > when you create a marker and set its image size property, the image size for > that marker is set, this has been like this since api v2. T

[Google Maps API v3] KML and custom icons being resized

2010-06-17 Thread PaulG
My own small icons are being resized after they are defined in a kml file. There is an issue open which is very similar to my point: http://code.google.com/p/gmaps-api-issues/issues/detail?id=2444 I while I get them to load as part of my kml style rules, Gmaps is somehow resizing them. There ex