[OpenLayers-Users] Re: [OpenLayers-Dev] Openlayers,
GeoJSON and PopUp attributes
nsicad at gmail.com
Mon Oct 31 05:08:52 EDT 2011
Yes, It works in iPad simulator.
However, the Popup that I am looking is the one that is using GeoJSON.
Thanks for showing.
On 10/31/11, Javier Carrasco <jcarrasco at prodevelop.es> wrote:
> I did an uncomplete/demo code to show OpenLayers popups based on an html
> template. I have not tested it on mobile.
> The code is like that:
> var p1 = new SmartPopup(map); // SmartPopup should be renamed to
> TemplatePopupManager or similar
> p1.addLayer('twitterPopup',layer1); // addLayer(templateId,
> and inside the body
> <div id="twitterPopup" style="visibility:hidden; display:none">
> <img src="%profile_image_url%" class="twimg"/>
> <a class="twuser"
> <a class="twtext"
> The words between %...% are attribute names of the feature.
> You can see a demo here
> Do you think this is a good approach?
> -----Mensaje original-----
> De: openlayers-dev-bounces at lists.osgeo.org
> [mailto:openlayers-dev-bounces at lists.osgeo.org] En nombre de Noli Sicad
> Enviado el: lunes, 31 de octubre de 2011 4:54
> Para: OpenLayers-Dev Dev; openlayers-users
> Asunto: [OpenLayers-Dev] Openlayers, GeoJSON and PopUp attributes
> Leaflet has nice way of incorporating generic PopUp and GeoJSON in
> displaying feature attributes as illustrated below. It works in mobile
> as well as in desktop browser.
> Openlayers got one, but not on desktop and other framework aside from
> Jquery mobile and Secha Touch.
> Openlayers + GeoJSON has PopUp attributes for GeoJSON as seen in
> mobile-jq example.
> So as Sencha Touch.
> However, if you click on Sprinters icon in non mobile devices, the
> popup would not work since it only caters to the specific windowing
> framework (jQuery-mobile and Sencha Touch). In other words, it is
> dependent to windowing toolkit.
> Although, I am interested in mobile device framework i.e. jQTouch, it
> does not have a popup control/ (window) to micmic JQM and Sencha
> Is there any way to do the GeoJSON attributes PopUp in generic OL PopUp?
> GeoJSON is easier to handle than any other vector data as demonstrate
> here below.
> Hope OpenLayers would have friendliers way of handling GeoJSON
> especially in viewing the it attributes using a generic Popup window.
> Or anybody has implemented this already? Any link?
> (Post this URL below, before I get this as a reply :-)
> Dev mailing list
> Dev at lists.osgeo.org
More information about the Users