Using displayProjection results in message "need Heron.layout or Heron.app configuration"

324 views
Skip to first unread message

Thomas Becker

unread,
Sep 17, 2014, 9:31:30 AM9/17/14
to geoext-vi...@googlegroups.com
Hi,

I am setting the options for my map in a separate javascript file and usually it works fine. However, when adding 'displayProjection' to the settings the page doesn't load anymore and I get the  message "need Heron.layout or Heron.app configuration".

Here is the snippet of my setup:

Heron.options.map.settings = {
    projection
: 'EPSG:900913',
    displayProjection
= new OpenLayers.Projection("EPSG:4326"),
    units
: 'm',
    maxExtent
: '-20037508.34, -20037508.34, 20037508.34, 20037508.34',
    maxResolution
: 'auto',
    center
: new OpenLayers.LonLat(1150000, 7600000),
    xy_precision
: 5,
    zoom
: 7,
    theme
: null
};

As soon as I take the displayProjection out of the code the page will load.

Where am I doing wrong?

Best regards,
Thomas

Mauro Alarcón

unread,
Sep 17, 2014, 11:02:22 AM9/17/14
to geoext-vi...@googlegroups.com
Your settings seems to be right. 
What does the console say? (in chrome, right click and inspect, console tab)

Gergely Padányi-Gulyás

unread,
Sep 19, 2014, 5:19:03 AM9/19/14
to geoext-vi...@googlegroups.com
I think you should not create an OpenLayers.Projection object, just type 'EPSG:4326' instead, like this:

Heron.options.map.settings = {
    projection
: 'EPSG:900913',

    displayProjection 
= 'EPSG:4326',

    units
: 'm',
    maxExtent
: '-20037508.34, -20037508.34, 20037508.34, 20037508.34',
    maxResolution
: 'auto',
    center
: new OpenLayers.LonLat(1150000, 7600000),
    xy_precision
: 5,
    zoom
: 7,
    theme
: null
};


Does it work?

Best,
        Gergely

Thomas Becker

unread,
Sep 19, 2014, 7:10:45 AM9/19/14
to geoext-vi...@googlegroups.com
Hi Gergely,

thanks for the advice, it worked! Only thing of course was that there shouldn't be a '=' but the ':' for the displayProjection.

Best regards,
Thomas

Gergely Padányi-Gulyás

unread,
Sep 22, 2014, 2:55:01 AM9/22/14
to geoext-viewer-devel
oh, of course, my bad... :)

--
--
You received this message because you are subscribed to the Google
Groups "geoext-viewer-devel" group.
To post to this group, send email to
geoext-vi...@googlegroups.com
To unsubscribe from this group, send email to
geoext-viewer-d...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/geoext-viewer-devel?hl=en

---
You received this message because you are subscribed to a topic in the Google Groups "Heron Mapping Client Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/geoext-viewer-devel/XcbrJliQTYo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to geoext-viewer-d...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages