corresponding to this bit of script, there id159 is the id of the map div, so looks like the (injected?) script is looking for the wrong id.
new WicketMap('id159', false);Wicket.maps['id159'].clearOverlays();Wicket.maps['id159'].overlayListenerCallbackUrl = './page?4-1.IBehaviorListener.0-theme-standaloneCollection-collectionContents-collectionContents~1-map';Wicket.maps['id159'].setCenter(new google.maps.LatLng(37.4419, -122.1419, false));Wicket.maps['id159'].setZoom(13);Wicket.maps['id159'].setMinZoom(0);Wicket.maps['id159'].setMaxZoom(0);Wicket.maps['id159'].setDraggingEnabled(true);Wicket.maps['id159'].setDoubleClickZoomEnabled(true);Wicket.maps['id159'].setScrollWheelZoomEnabled(false);Wicket.maps['id159'].setStreetViewControlEnabled(true);Wicket.maps['id159'].setZoomControlEnabled(true);Wicket.maps['id159'].setScaleControlEnabled(true);Wicket.maps['id159'].setMapTypeControlEnabled(true);Wicket.maps['id159'].setPanControlEnabled(true);Wicket.maps['id159'].setMapType(google.maps.MapTypeId.ROADMAP);; On Sat, Nov 7, 2015 at 10:13 AM, Stephen Cameron <steve.cameron...@gmail.com > wrote: > Actually, there is a Javascript error message (in Firefox), did not see it > Firebug before, as below > > Wicket.Ajax: Wicket.Ajax.Call.processEvaluation: Exception evaluating > javascript: ReferenceError: WicketMap is not defined, text: (function(){new > WicketMap('id10a', false); > Wicket.maps['id10a'].clearOverlays(); > Wicket.maps['id10a'].overlayListenerCallbackUrl = > './page?3-1.IBehaviorListener.0-theme-standaloneCollection-collectionContents-collectionContents~1-map'; > Wicket.maps['id10a'].setCenter(new google.maps.LatLng(-42.886763, > 147.408854, false)); > Wicket.maps['id10a'].setZoom(13); > Wicket.maps['id10a'].setMinZoom(0); > Wicket.maps['id10a'].setMaxZoom(0); > Wicket.maps['id10a'].setDraggingEnabled(true); > Wicket.maps['id10a'].setDoubleClickZoomEnabled(true); > Wicket.maps['id10a'].setScrollWheelZoomEnabled(false); > Wicket.maps['id10a'].setStreetViewControlEnabled(true); > Wicket.maps['id10a'].setZoomControlEnabled(true); > Wicket.maps['id10a'].setScaleControlEnabled(true); > Wicket.maps['id10a'].setMapTypeControlEnabled(true); > Wicket.maps['id10a'].setPanControlEnabled(true); > var bounds = new google.maps.LatLngBounds(); > bounds.extend( new google.maps.LatLng(-42.886763, 147.408854, false) ); > bounds.extend( new google.maps.LatLng(-42.87481, 147.3687, false) ); > Wicket.maps['id10a'].fitBounds(bounds); > Wicket.maps['id10a'].panToBounds(bounds); > Wicket.maps['id10a'].setMapType(google.maps.MapTypeId.ROADMAP); > Wicket.maps['id10a'].addOverlay('overlay265', new google.maps.Marker({map: > Wicket.maps['id10a'].map, position: new google.maps.LatLng(-42.886763, > 147.408854, false), title: "66 Corinth Street, Howrah, 7018"})); > > Wicket.maps['id10a'].overlays['overlay265'].setMap(Wicket.maps['id10a'].map); > Wicket.maps['id10a'].addOverlayListener('overlay265', 'click'); > ; > Wicket.maps['id10a'].addOverlay('overlay267', new google.maps.Marker({map: > Wicket.maps['id10a'].map, position: new google.maps.LatLng(-42.87481, > 147.3687, false), title: "Level 5, 31 Cambridge Road, Bellerive, 7018"})); > > Wicket.maps['id10a'].overlays['overlay267'].setMap(Wicket.maps['id10a'].map); > Wicket.maps['id10a'].addOverlayListener('overlay267', 'click'); > ; > })();(function(){Wicket.Ajax.ajax({"u":"./page?3-1.IBehaviorListener.0-theme-standaloneCollection-collectionContents-collectionContents~2-table-topToolbars-toolbars-1-headers-2-header-orderByLink","e":"click","c":"id10c"});})();(function(){Wicket.Ajax.ajax({"u":"./page?3-1.IBehaviorListener.0-theme-standaloneCollection-collectionContents-collectionContents~2-table-topToolbars-toolbars-1-headers-3-header-orderByLink","e":"click","c":"id10d"});})();(function(){Wicket.Ajax.ajax({"u":"./page?3-1.IBehaviorListener.0-theme-standaloneCollection-collectionContents-collectionContents~2-table-topToolbars-toolbars-1-headers-4-header-orderByLink","e":"click","c":"id10e"});})();(function(){Wicket.Ajax.ajax({"u":"./page?3-1.IBehaviorListener.0-theme-standaloneCollection-collectionContents-collectionContents~2-table-topToolbars-toolbars-1-headers-5-header-orderByLink","e":"click","c":"id10f"});})();(function(){Wicket.Ajax.ajax({"u":"./page?3-1.IBehaviorListener.0-theme-standaloneCollection-collectionContents-collectionContents~2-table-topToolbars-toolbars-1-headers-6-header-orderByLink","e":"click","c":"id110"});})();(function(){Wicket.Ajax.ajax({"u":"./page?3-1.IBehaviorListener.0-theme-standaloneCollection-collectionContents-collectionContents~2-table-topToolbars-toolbars-1-headers-7-header-orderByLink","e":"click","c":"id111"});})();(function(){Wicket.Ajax.ajax({"u":"./page?3-1.IBehaviorListener.0-theme-standaloneCollection-selectorDropdown-views-viewList-viewItem-0-viewLink","e":"click","c":"id112"});})();(function(){Wicket.Ajax.ajax({"u":"./page?3-1.IBehaviorListener.0-theme-standaloneCollection-selectorDropdown-views-viewList-viewItem-2-viewLink","e":"click","c":"id113"});})();(function(){Wicket.maps['id10a'].addOverlay('overlay265', > new google.maps.Marker({map: Wicket.maps['id10a'].map, position: new > google.maps.LatLng(-42.886763, 147.408854, false), title: "66 Corinth > Street, Howrah, 7018"})); > > Wicket.maps['id10a'].overlays['overlay265'].setMap(Wicket.maps['id10a'].map); > })();(function(){Wicket.maps['id10a'].addOverlayListener('overlay265', > 'click'); > ; > })();(function(){Wicket.maps['id10a'].addOverlay('overlay267', new > google.maps.Marker({map: Wicket.maps['id10a'].map, position: new > google.maps.LatLng(-42.87481, 147.3687, false), title: "Level 5, 31 > Cambridge Road, Bellerive, 7018"})); > > Wicket.maps['id10a'].overlays['overlay267'].setMap(Wicket.maps['id10a'].map); > })();(function(){Wicket.maps['id10a'].addOverlayListener('overlay267', > 'click'); > ; > })(); wicket-ajax-jquery.min-ver-373007567CBDD4D664471DD5DBA38759.js:1:2436 > > > > On Sat, Nov 7, 2015 at 10:00 AM, Stephen Cameron < > steve.cameron...@gmail.com> wrote: > >> Internet is available, Looks like a debug job, maybe I'll see some >> opportunities for logging? >> >> On Sat, Nov 7, 2015 at 9:46 AM, Dan Haywood <d...@haywood-associates.co.uk >> > wrote: >> >>> Does the domain class implement Locatable [1] >>> >>> Also be aware, the component also checks the internet is available [2] >>> >>> Otherwise, put a breakpoint in this class, check it's called, see what it >>> does. >>> >>> >>> [1] >>> >>> https://github.com/isisaddons/isis-wicket-gmap3/blob/master/cpt/src/main/java/org/isisaddons/wicket/gmap3/cpt/ui/CollectionOfEntitiesAsLocatablesFactory.java#L66 >>> [2] >>> >>> https://github.com/isisaddons/isis-wicket-gmap3/blob/master/cpt/src/main/java/org/isisaddons/wicket/gmap3/cpt/ui/CollectionOfEntitiesAsLocatablesFactory.java#L54 >>> >>> >>> On 6 November 2015 at 22:43, Stephen Cameron <steve.cameron...@gmail.com >>> > >>> wrote: >>> >>> > I am on 1.10.0-SNAPSHOT. I see the Locations displayed in table view >>> but no >>> > Map view appears (don't tell me I have lat and long around the wrong >>> way :( >>> > ). >>> > >>> > On Sat, Nov 7, 2015 at 9:35 AM, Dan Haywood < >>> d...@haywood-associates.co.uk> >>> > wrote: >>> > >>> > > If on 1.10.0-SNAPSHOT, and there are no objects that have a non-null >>> > > Location, then the map is suppressed completely. Previously we used >>> to >>> > > render a map anyway, albeit one with no pins on it - that map was >>> > centered >>> > > on the "default location"- seemingly google's HQ in Silicon Valley. >>> > > >>> > > HTH >>> > > Dan >>> > > >>> > > >>> > > On 6 November 2015 at 22:32, Stephen Cameron < >>> steve.cameron...@gmail.com >>> > > >>> > > wrote: >>> > > >>> > > > Just having a look at that now :) >>> > > > I cannot see Javascript errors (I'll recheck) but there are >>> differences >>> > > in >>> > > > the HTML. >>> > > > >>> > > > In the working demo I see: >>> > > > >>> > > > <div class="collectionContentsAsLocatables"> >>> > > > <div id="mapcf" class="map" wicketsource=" >>> > > > >>> > > > >>> > > >>> > >>> org.isisaddons.wicket.gmap3.cpt.ui:CollectionOfEntitiesAsLocatables.java:94" >>> > > > style="margin-left: auto; margin-right: auto;"> >>> > > > <div id="mapdf" wicketsource="org.wicketstuff.gmap:GMap.java:117" >>> > > > style="width: >>> > > > 100%; height: 100%; position: relative; background-color: rgb(229, >>> 227, >>> > > > 223); overflow: hidden;"> >>> > > > <div class="gm-style" style="position: absolute; left: 0px; top: >>> 0px; >>> > > > overflow: hidden; width: 100%; height: 100%; z-index: 0;"> >>> > > > <div style="position: absolute; left: 0px; top: 0px; overflow: >>> hidden; >>> > > > width: 100%; height: 100%; z-index: 0; cursor: url(" >>> > > > http://maps.gstatic.com/mapfiles/openhand_8_8.cur"), default;"> >>> > > > >>> > > > In mine I just see: >>> > > > >>> > > > <div class="collectionContentsAsLocatables"> >>> > > > <div id="id14f" class="map" style="margin-left: auto; margin-right: >>> > > auto;"> >>> > > > <div id="id155" style="width:100%; height:100%"></div> >>> > > > </div> >>> > > > </div> >>> > > > >>> > > > Is that difference due to what is generated server-side? >>> > > > >>> > > > >>> > > > >>> > > > On Sat, Nov 7, 2015 at 9:22 AM, Dan Haywood < >>> > > d...@haywood-associates.co.uk> >>> > > > wrote: >>> > > > >>> > > > > On 6 November 2015 at 20:53, Cesar Lugo < >>> cesar.l...@sisorg.com.mx> >>> > > > wrote: >>> > > > > >>> > > > > > Hello Stephen. Well, I am not part of the Isis team just a user >>> > > > learning >>> > > > > > like you are now, but I can tell you the same thing you >>> describe >>> > and >>> > > > > having >>> > > > > > to click on a menu option, and the problem was actually the >>> > Internet >>> > > > > > Explorer browser which didn't have the google maps plugin. >>> > > > > >>> > > > > >>> > > > > @Cesar: >>> > > > > Bit confused by this... there is no google maps plugin? I >>> usually >>> > use >>> > > > > Chrome, but just double checked the demo app using IE 11 >>> (emulated >>> > bck >>> > > to >>> > > > > IE 8) and rendered ok. >>> > > > > >>> > > > > >>> > > > > >>> > > > > > But in your case, if it worked before then it might be >>> something >>> > > else. >>> > > > > > Maybe the ISIS team could help, I hope you find the solution. >>> I am >>> > > > using >>> > > > > > 1.9.0 and it is working just fine. Cesar. >>> > > > > > >>> > > > > > >>> > > > > @Steve: >>> > > > > Best I can suggest is to switch on developer tools and see if any >>> > > > > Javascript errors are being logged. >>> > > > > >>> > > > > >>> > > > > Dan >>> > > > > >>> > > > > >>> > > > > >>> > > > > > -----Original Message----- >>> > > > > > From: Stephen Cameron [mailto:steve.cameron...@gmail.com] >>> > > > > > Sent: Thursday, November 5, 2015 7:14 PM >>> > > > > > To: users@isis.apache.org >>> > > > > > Subject: Re: isis-wicket-gmap3 version 1.10.0-SNAPSHOT not >>> found >>> > > > > > >>> > > > > > Hi Cesar, >>> > > > > > >>> > > > > > I had it working before and now something is broken in my app >>> :( >>> > All >>> > > > the >>> > > > > > AppManifest is fine I think. I see the Map menu option on >>> > collections >>> > > > of >>> > > > > > Locatable objects, and it tries to load the map but fails for >>> some >>> > > > > reason. >>> > > > > > I have to click on a main menu option to switch the view, I >>> cannot >>> > > get >>> > > > > > back to a table view of that collection, so it seems to be >>> stalled, >>> > > > > kinda... >>> > > > > > >>> > > > > > I have a simple test class that shows the same behaviour as >>> above >>> > in >>> > > my >>> > > > > > app, but which works fine when I use it within the isis gmap >>> wicket >>> > > > > > component demo. So I have done something in my project to >>> break the >>> > > > > > component's rendering. >>> > > > > > >>> > > > > > Cheers >>> > > > > > >>> > > > > > >>> > > > > > >>> > > > > > >>> > > > > > >>> > > > > > >>> > > > > > >>> > > > > > On Fri, Nov 6, 2015 at 2:03 AM, Cesar Lugo < >>> > cesar.l...@sisorg.com.mx >>> > > > >>> > > > > > wrote: >>> > > > > > >>> > > > > > > When I started using gmap3, I ran into 2 issues, first one, >>> > didn't >>> > > > > > > registered in the AppManifest (similarly to what happened >>> with >>> > the >>> > > > > > > security add-on). Then, I was running it using MS Internet >>> > > Explorer, >>> > > > > > > which by default does not have the appropriate plugin >>> installed. >>> > > When >>> > > > > > > I registered it in the AppManifest and used Firefox or >>> Chrome it >>> > > > > > > worked just fine. I hope that might help. >>> > > > > > > >>> > > > > > > -----Original Message----- >>> > > > > > > From: Stephen Cameron [mailto:steve.cameron...@gmail.com] >>> > > > > > > Sent: Thursday, November 5, 2015 5:01 AM >>> > > > > > > To: users@isis.apache.org >>> > > > > > > Subject: Re: isis-wicket-gmap3 version 1.10.0-SNAPSHOT not >>> found >>> > > > > > > >>> > > > > > > It was due to me having built it locally I think, when I >>> deleted >>> > > that >>> > > > > > > project from eclipse all was good again. >>> > > > > > > >>> > > > > > > But I still cannot see a map in my application, it seems to >>> go >>> > > into a >>> > > > > > > error condition as I cannot switch back to a table view, will >>> > > > > > > investigate more tomorrow. >>> > > > > > > >>> > > > > > > I have everything else working now so happy about that :) >>> > > > > > > >>> > > > > > > On Thu, Nov 5, 2015 at 8:26 PM, Stephen Cameron < >>> > > > > > > steve.cameron...@gmail.com> >>> > > > > > > wrote: >>> > > > > > > >>> > > > > > > > Eclipse is just confused I think. >>> > > > > > > > >>> > > > > > > > On Thu, Nov 5, 2015 at 8:20 PM, Stephen Cameron < >>> > > > > > > > steve.cameron...@gmail.com> wrote: >>> > > > > > > > >>> > > > > > > >> Thanks, it gets downloaded fine, but Eclipse is still >>> > > complaining >>> > > > > > > >> that its not available, something not right. >>> > > > > > > >> >>> > > > > > > >> :( >>> > > > > > > >> >>> > > > > > > >> On Thu, Nov 5, 2015 at 7:54 PM, Jeroen van der Wal >>> > > > > > > >> <jer...@stromboli.it> >>> > > > > > > >> wrote: >>> > > > > > > >> >>> > > > > > > >>> Snaphots are available [1], the 1.9.0 release too [2]. >>> > Perhaps >>> > > > the >>> > > > > > > >>> usual cleanup, 'rm -Rf >>> > > > > > > >>> ~/.m2/repository/org/isisaddons/wicket/gmap3; >>> > > > > > > >>> mvn clean install', might bring it back in? >>> > > > > > > >>> >>> > > > > > > >>> [1] >>> > > > > > > >>> >>> > > > > > > >>> >>> > > > http://repository-estatio.forge.cloudbees.com/snapshot/org/isisadd >>> > > > > > > >>> on s/wicket/gmap3/isis-wicket-gmap3-cpt/ >>> > > > > > > >>> [2] >>> > > > > > > >>> >>> > > > > > > >>> >>> > > > http://search.maven.org/#artifactdetails%7Corg.isisaddons.wicket.g >>> > > > > > > >>> ma p3%7Cisis-wicket-gmap3-cpt%7C1.9.0%7Cjar >>> > > > > > > >>> >>> > > > > > > >>> >>> > > > > > > >>> >>> > > > > > > >>> On 5 November 2015 at 09:05, Stephen Cameron >>> > > > > > > >>> <steve.cameron...@gmail.com >>> > > > > > > >>> > >>> > > > > > > >>> wrote: >>> > > > > > > >>> >>> > > > > > > >>> > Hi Dan, Jeroen, ? >>> > > > > > > >>> > >>> > > > > > > >>> > Has isis-wicket-gmap3 module version 1.10.0-SNAPSHOT >>> been >>> > > > > > > >>> > removed from maven repository on purpose? >>> > > > > > > >>> > >>> > > > > > > >>> > I tried the 1.9.0 version with Isis 1.10.0-SNAPSHOT and >>> > don't >>> > > > > > > >>> > see >>> > > > > > > >>> anything >>> > > > > > > >>> > appearing on a map as yet. Not sure where to start to >>> fix >>> > it >>> > > as >>> > > > > > yet. >>> > > > > > > >>> Not a >>> > > > > > > >>> > high priority though. >>> > > > > > > >>> > >>> > > > > > > >>> > Steve Cameron >>> > > > > > > >>> > >>> > > > > > > >>> >>> > > > > > > >> >>> > > > > > > >> >>> > > > > > > > >>> > > > > > > >>> > > > > > > >>> > > > > > > --- >>> > > > > > > This email has been checked for viruses by Avast antivirus >>> > > software. >>> > > > > > > https://www.avast.com/antivirus >>> > > > > > > >>> > > > > > > >>> > > > > > >>> > > > > > >>> > > > > > --- >>> > > > > > This email has been checked for viruses by Avast antivirus >>> > software. >>> > > > > > https://www.avast.com/antivirus >>> > > > > > >>> > > > > > >>> > > > > >>> > > > >>> > > >>> > >>> >> >> >