ICEfaces
  1. ICEfaces
  2. ICE-4150

gMapMarker component doesn't respect its "longitude" and "latitude" attributes, and must require a gMapLatLng or gMapLatLngs to render GMarker(s)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.2
    • Fix Version/s: 1.8RC2, 1.8
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      Development is in Netbean running on a Mac. Application is running on Glassfish v2
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      I had to create a gMapLatLng with the design interface and then do the following, directly editing the JSP code.

      Change <ice:gMapMarker id="gMapMarker" Lat..../ > to <ice:gMapMarker id="gMapMarker"></ice:gMapMarker>

      Move the gMapLatLng tag to within the gMapMarker tags.


      Show
      I had to create a gMapLatLng with the design interface and then do the following, directly editing the JSP code. Change <ice:gMapMarker id="gMapMarker" Lat..../ > to <ice:gMapMarker id="gMapMarker"></ice:gMapMarker> Move the gMapLatLng tag to within the gMapMarker tags.

      Description

      I'm using ICEFaces as delivered in the Netbeans plugin and developing as a Visual Web JSF project. I would create a marker using the design interface but the markers would not show up on a map at runtime. I spent several hours looking through documentation trying to find a solution.

      I did find a workaround which I noted below. However the workaround does not show up in the Desgin interface.

        Issue Links

          Activity

          Hide
          Frank Ye added a comment -

          create GMapLatLng and GMapLatLngs as default child of GMapMarker

          Show
          Frank Ye added a comment - create GMapLatLng and GMapLatLngs as default child of GMapMarker
          Hide
          Adnan Durrani added a comment -

          Changes made so the gMapMarker component will respect its "longitude" and "latitude" attributes. So now it can be used without any of the following component : gMapLatLng or gMapLatLngs.

          <ice:gMapMarker id="gmarker" latitude="51" longitude="-90" />

          Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\gmap\GMapMarker.java
          Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\gmap\GMapMarker.java
          Completed: At revision: 18483

          Show
          Adnan Durrani added a comment - Changes made so the gMapMarker component will respect its "longitude" and "latitude" attributes. So now it can be used without any of the following component : gMapLatLng or gMapLatLngs. <ice:gMapMarker id="gmarker" latitude="51" longitude="-90" /> Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\gmap\GMapMarker.java Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component\src\com\icesoft\faces\component\gmap\GMapMarker.java Completed: At revision: 18483
          Hide
          Adnan Durrani added a comment -

          GMap demo under component-showcase has been updated.
          Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\samples\component-showcase\common-web\WEB-INF\includes\examples\custom\gmap.jspx
          Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\samples\component-showcase\common-web\WEB-INF\includes\examples\custom\gmap.jspx
          Completed: At revision: 18485

          Show
          Adnan Durrani added a comment - GMap demo under component-showcase has been updated. Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\samples\component-showcase\common-web\WEB-INF\includes\examples\custom\gmap.jspx Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\samples\component-showcase\common-web\WEB-INF\includes\examples\custom\gmap.jspx Completed: At revision: 18485
          Hide
          Adnan Durrani added a comment -

          Description added which defines how to use the gMapMarker component with or without the gMapLatLng and gMapLatLngs components.

          Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\custom\gMapMarker-renderer.xml
          Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\custom\gMapMarker-renderer.xml
          Completed: At revision: 18486

          Show
          Adnan Durrani added a comment - Description added which defines how to use the gMapMarker component with or without the gMapLatLng and gMapLatLngs components. Modified: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\custom\gMapMarker-renderer.xml Sending content: D:\work\development\head\svn\ossrepo\icefaces\trunk\icefaces\component-metadata\src\main\resources\conf\custom\gMapMarker-renderer.xml Completed: At revision: 18486

            People

            • Assignee:
              Unassigned
              Reporter:
              Eric Marsh
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: