[OpenLayers-Users] Is there an easy way to center and zoom the map automatically based on the placemarks that are on it?

Someone azintirea at gmail.com
Tue Jul 10 11:05:15 PDT 2012


An example of how you call this is what I am looking for.  The
documentation is frustratingly brief, I find it hard to implement API's
without examples.
Aaron E-J
http://otherrealm.org
http://aaronej.blogspot.com
Vision without action is a daydream,
Action without vision is a nightmare,
One needs both to succeed.





On Mon, Jul 9, 2012 at 6:17 PM, Phil Scadden [via OSGeo.org] <
ml-node+s1560n4987063h19 at n6.nabble.com> wrote:

> On 10/07/2012 3:37 a.m., Aaron E-J wrote:
>
> I'm getting "undefined" when I try to call kmllayer.features using the
> script provided in the last post.  I am able to view the
> 'feature.geometry' when the feature is coming from a click event, I just
> have not figured out how to get all features available from the kml layer
> (keeps coming up undefined no matter what I try).  Any more examples
> would be greatly appreciated (working links to complete examples would be
> awesome[?]), thanks for what I have gotten so far.
>
>
> Well looking at the docs, a vector layer should have a "features"
> properties after it is loaded. Where are you doing the checking?
>
> Notice: This email and any attachments are confidential. If received in
> error please destroy and immediately notify us. Do not copy or disclose the
> contents.
>
>
>
> _______________________________________________
> Users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4987063&i=0>
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://osgeo-org.1560.n6.nabble.com/Is-there-an-easy-way-to-center-and-zoom-the-map-automatically-based-on-the-placemarks-that-are-on-it-tp4985789p4987063.html
>  To unsubscribe from Is there an easy way to center and zoom the map
> automatically based on the placemarks that are on it?, click here<http://osgeo-org.1560.n6.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4985789&code=YXppbnRpcmVhQGdtYWlsLmNvbXw0OTg1Nzg5fDcxOTQ1MjAw>
> .
> NAML<http://osgeo-org.1560.n6.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


-----
Vision without action is a daydream,
Action without vision is a nightmare,
One needs both to succeed.
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Is-there-an-easy-way-to-center-and-zoom-the-map-automatically-based-on-the-placemarks-that-are-on-it-tp4985789p4987391.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120710/0c01eed8/attachment.html>


More information about the Users mailing list