[OpenLayers-Users] Fwd: Firefox does not work with GeoExplorer (openlayers)

pablo zader pzader at gmail.com
Tue Mar 10 11:17:35 PDT 2015


But I do not understand, because google chrome works fine but fails with
firefox.

In my composer.html I have:

if (GeoExt.Lang) {
GeoExt.Lang.set(OpenLayers.Util.getParameters()["locale"] ||
GeoExt.Lang.locale); } var app = new GeoExplorer.Composer({     authStatus:
401, proxy: "../proxy/?url=", printService: "/geoserver/pdf/", /*about: {
title: "aaaa", "abstract": "", defaultSourceType: "gxp_wmscsource",
sources: {
     ....
mapquest: { ptype: "gxp_mapquestsource" }, osm: { ptype: "gxp_osmsource" },
google: { ptype: "gxp_googlesource" }, bing: { ptype: "gxp_bingsource" },
mapbox: { ptype: "gxp_mapboxsource" },

map: {

id: "mymap", // id needed to reference map in portalConfig above tbar: {id:
'geocoder'}, title: "Map", projection: "EPSG:102113", layers: [ { source:
"mapquest", title: "MapQuest OpenStreetMap", name: "osm", group:
"background", "visibility": false }, {"opacity": 1, "group":
"background", "name":
"HYBRID", "title": "Google Hibrido", "visibility": true, "source":
"google", "fixed": true }, {"opacity": 1, "group": "background", "name":
"TERRAIN", "title": "Google Terrain", "visibility": false, "source":
"google", "fixed": true }, {"opacity": 1, "group": "background", "name":
"AerialWithLabels", "title": "Bing Satelital", "visibility": false, "source":
"bing", "fixed": true }, { source: "ol", group: "background", fixed: true,
type: "OpenLayers.Layer", args: [ "None", {visibility: false} ] },

{ // A vector layer to display our geometries and processing results
source: "ol", name: "Res", type: "OpenLayers.Layer.Vector", args: [null,
{displayInLayerSwitcher: false}]
} ], //center: [-7166735.77102,-3918467.81747], center:
[-7026944.92,-3940299.94], zoom: 4 } });


Thanks in advanced




2015-03-10 11:28 GMT-03:00 Andreas Hocevar <andreas.hocevar at gmail.com>:

>  Adding a Google layer on the fly works fine here: *http://suite.opengeo.org/geoexplorer/composer/
> <http://suite.opengeo.org/geoexplorer/composer/>*
>
> Note that Google often make changes to the Google Maps API, so it is
> better to not rely on Google layers.
>
> Andreas.
>
>
> On Tuesday, Mar 10, 2015 at 2:20 PM, pablo zader <pzader at gmail.com>,
> wrote:
>
>>
>> ---------- Forwarded message ----------
>> From: pablo zader <pzader at gmail.com>
>> Date: 2015-02-22 0:39 GMT-03:00
>> Subject: Firefox does not work with GeoExplorer (openlayers)
>> To: openlayers-users <openlayers-users at lists.osgeo.org>
>>
>>
>> Hi list,
>>
>> The problem is detected by firebug when GeoExplorer start with Mozilla,
>> but the strange thing is that with google chrome works fine (and IE):
>>
>> NotFoundError: Node was not found
>> document.getElementsByTagName("head")[0].removeChild...
>>
>> The exception is thrown in the googlesource.js file, line 334 , in the
>> function loadScript:
>>
>>  loadScript: function(options) { .... window.setTimeout((function() { if (!gxp.plugins.GoogleSource.loader.ready) { this.loading = false; this.ready = false; document.getElementsByTagName("head")[0].removeChild(script); (LINE 334) errback.call(options.scope); this.fireEvent("failure"); this.purgeListeners(); } ....
>>
>>
>> I understand that there is a problem when firefox wants to access the
>> service google but not so google chrome.
>> Thanks in advanced
>>
>> Pablo
>>
>>
>>
>>
>>
>> --
>> *Pablo J. Zader*
>> *Lic. en Cs. de la Computación*
>>  *pablo.zader at gmail.com <pablo.zader at gmail.com>*
>>
>>
>>
>>
>>
>> *"Los Grandes Hombres hablan sobre ideas... Los Hombres Promedio hablan
>> sobre cosas... Los Hombres Pequeños hablan.. de otros Hombres.*
>> *del libro Matemática estas ahi? A. Paenza "*
>>
>


-- 
*Pablo J. Zader*
*Lic. en Cs. de la Computación*
*pablo.zader at gmail.com <pablo.zader at gmail.com>*





*"Los Grandes Hombres hablan sobre ideas... Los Hombres Promedio hablan
sobre cosas... Los Hombres Pequeños hablan.. de otros Hombres.*
*del libro Matemática estas ahi? A. Paenza "*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20150310/de29f79c/attachment-0001.html>


More information about the Users mailing list