Infeasible
Status Update
Comments
be...@gmail.com <be...@gmail.com> #2
+1
er...@gmail.com <er...@gmail.com> #3
I've beat my head on this for a while. Until Google properly exposes these, this is
how I've gained access to the underlying (polygons for my case) GOverlays....
[snip]
var polygons = new Array();
var kml = "http://my.site/testfile.kml ";
GPolygon.prototype.show2 = GPolygon.prototype.show;
GPolygon.prototype.show = function() {
this.show2.apply(this); // Call the original show method still...
polygons.push(this);
}
/* Create your map and such we'll call it "gmap" */
var overlay = new GGeoXml(kml, finished);
gmap.addOverlay(overlay);
finished = function() {
overlay.show();
for(p in polygons) {
GEvent.addListener(p, 'click', function(_point) {
alert('(' + _point.lat() + ', ' + _point.lng() + ')');
});
}
}
[/snip]
There may be some syntax errors in the above because I re-typed it free-hand from
memory, but you should get the general idea. The resulting "polygon" array has now
exposed all the polygons in the GGeoXml overlay. This works so long as you aren't
adding any other polygons outside of the GGeoXml. Similar works for other overlays.
I'm still all for these being exposed natively in the API.
how I've gained access to the underlying (polygons for my case) GOverlays....
[snip]
var polygons = new Array();
var kml = "
GPolygon.prototype.show2 = GPolygon.prototype.show;
GPolygon.prototype.show = function() {
this.show2.apply(this); // Call the original show method still...
polygons.push(this);
}
/* Create your map and such we'll call it "gmap" */
var overlay = new GGeoXml(kml, finished);
gmap.addOverlay(overlay);
finished = function() {
overlay.show();
for(p in polygons) {
GEvent.addListener(p, 'click', function(_point) {
alert('(' + _point.lat() + ', ' + _point.lng() + ')');
});
}
}
[/snip]
There may be some syntax errors in the above because I re-typed it free-hand from
memory, but you should get the general idea. The resulting "polygon" array has now
exposed all the polygons in the GGeoXml overlay. This works so long as you aren't
adding any other polygons outside of the GGeoXml. Similar works for other overlays.
I'm still all for these being exposed natively in the API.
pa...@gmail.com <pa...@gmail.com> #4
You could also just listen to the overlayadd event on the map. Here's an example:
http://pamela.fox.googlepages.com/geoxml-rss.html
be...@gmail.com <be...@gmail.com> #5
here is a great tutorial for creating sidebars, selects, ... from GGeoXml data
http://econym.googlepages.com/interceptor.htm
that works great but uses private variables of GMarkers like name or id. - thus, even
if functions like getTitle() don't deliver anything, you can use this data unless
google will change something on their structure.
we would therefore really need some basic getters like getID(), getName() or
getInfoWindow() in future releases.
that works great but uses private variables of GMarkers like name or id. - thus, even
if functions like getTitle() don't deliver anything, you can use this data unless
google will change something on their structure.
we would therefore really need some basic getters like getID(), getName() or
getInfoWindow() in future releases.
ct...@gmail.com <ct...@gmail.com> #7
I couldnt get a dynamic sidebar (from KML) working with GGeoXML. So i hope i can
interact with KML placemark/markers via Google Map API
interact with KML placemark/markers via Google Map API
ct...@gmail.com <ct...@gmail.com> #8
[Comment deleted]
pa...@gmail.com <pa...@gmail.com> #9
Changing status of "Accepted" issues to "Acknowledged", to clarify their
state.
We may not be able to resolve all bugs or fulfill all feature requests, but
we do thank you for filing them, and we will continually revisit all
acknowledged issues and evaluate their feasibility. Thanks!
state.
We may not be able to resolve all bugs or fulfill all feature requests, but
we do thank you for filing them, and we will continually revisit all
acknowledged issues and evaluate their feasibility. Thanks!
sp...@gmail.com <sp...@gmail.com> #10
Thor/Pamela, now that this has been acknowledged for v3 do you have any suggested API features we should look for in the interim. I note that there is no addoverlay event on the Map class in v3, although there is a click event for KmlLayer (but that's only useful for managing click events rather than exposing the overlays).
It should also be noted that this now affects the KmlLayer class rather than the former GGeoXml.
It should also be noted that this now affects the KmlLayer class rather than the former GGeoXml.
th...@gmail.com <th...@gmail.com> #11
Given that v3 renders *all* KML features except GroundOverlays as server side tiles rather than streaming them to the browser for client side rendering, does this FR still apply?
th...@gmail.com <th...@gmail.com> #12
Given that v3 renders *all* KML features except GroundOverlays as server side tiles rather than streaming them to the browser for client side rendering, does this FR still apply?
sp...@gmail.com <sp...@gmail.com> #13
The point of the exposure for me is that I'd like to place a KmlLayer on the Map and render a list of the overlays next to the map which can be clicked on to trigger the markers. Almost like the support available via entering the address of a KML file into the search box on maps.google
ca...@gmail.com <ca...@gmail.com> #14
s there any way to extract the polygons after loading a kmlLayer?
sk...@gmail.com <sk...@gmail.com> #15
I would suggest that this FR is absolutely necessary, for the reason given by @sparks.phill.
ch...@missouristate.edu <ch...@missouristate.edu> #16
While I would agree that much of this feature request no longer applies due to the v3 implementation techniques, it would be nice to be able to trigger a click event on a feature give either its coordinates or its placemark id.
gr...@gmail.com <gr...@gmail.com> #17
Hi.
I want to add tens of thousands of points on the map (with the help of elements <link>) in "inactive" and then using Javascript to switch the selected items (taken with the object ID) to "active". Without the provision of a list of objects in the KML file, I do not see a way to achieve this.
So: getObjectById ("objectId") and then updateStyleUrl("#active")
Best Regards
I want to add tens of thousands of points on the map (with the help of elements <link>) in "inactive" and then using Javascript to switch the selected items (taken with the object ID) to "active". Without the provision of a list of objects in the KML file, I do not see a way to achieve this.
So: getObjectById ("objectId") and then updateStyleUrl("#active")
Best Regards
ke...@transcore.com <ke...@transcore.com> #18
We have a current application that uses GoogleMaps v2 API to place markers and let the user toggle them on and off via HTML controls and javascript.
We want to rewrite our application in v3 and change it to import KML containing PlaceMarkers instead of creating the markers in script (that way our customers will have a data file that they can use outside their public web page). We can not make that migration until this feature is added.
We want to rewrite our application in v3 and change it to import KML containing PlaceMarkers instead of creating the markers in script (that way our customers will have a data file that they can use outside their public web page). We can not make that migration until this feature is added.
to...@gmail.com <to...@gmail.com> #19
This FR is absolutely necessary
lu...@google.com <lu...@google.com> #20
This was a v2 feature request and doesn't make sense in the context of v3.
gu...@gmail.com <gu...@gmail.com> #21
Plase! I need to call placemark in my KML file with a javascript link into .html! any way to do that?
tks.
tks.
ma...@max.tc <ma...@max.tc> #22
Still waiting 12 years after 'wontfix'...
Description
load and remove.
Comments: These are useful in keeping track on these object collections
from xml on the map, such as centering and zoom leveling on some or all
these overlay objects, and allowing custom ui controls that interact with
the overlay elements (e.g. dynamic sidebar/legend that can interact w/
individual markers/polygons/polylines) etc. .
Requested by: ~newton, designaweb, David Streutker, CrescentFresh, mapperz,
keashF, bbrala, Esa, adlerhn, hamlynt, Olagato, brodersen , Quinode,
nalbion, gerdkamp,Arjan, Gerard van Enk, Jason Birch