Posted by
idwright on
Jan 17, 2011; 10:27am
URL: https://discuss.orbeon.com/Maps-component-and-https-tp3085234p3220956.html
Hi,
This isn't a problem for me any more as I'm moving down a different
route - it was probably something stupid....
Some more concrete observations:
1. The use of brackets { } in xhtml:script at the end of map.xbl
seems to be causing the generation of the erroneous:
<script src="<a href="view-source:https://wwarn-app3.nsms.ox.ac.uk/repository/ops/images/xforms/spacer.gif">/repository/ops/images/xforms/spacer.gif" type="text/javascript" id="xf-1027$xf-2955"></script>
2. In the js updateMakerFromAddress doesn't set the lat/lng at the
moment you need to drag the pointer after doing that - it's a simple
fix.
3. I've put in bing maps instead
(<xhtml:script charset="UTF-8" type="text/javascript"
src=
"https://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0&ssl=1"
/>)
4. The current implementation uses google maps v2 which is
deprecated and behaves differently to v3 with https
I've attached 2 files - one is google maps v3 implementation, the
other a bing maps implementation - these could be used with
relatively minor tweaking
For bing the callback mechanism isn't great and there isn't a good
way to insert the api key into the javascript (you need to change
both places where it says "insert credentials here" but other than
that it appears to work for me at least.
I did experiment with mapstraction but it doesn't appear to have
sufficient support for callbacks i.e. for the dragging
Regards,
Ian
On 19:59, Erik Bruchez wrote:
Ian,
Can you try to hack i.e. put your own copy of map.xbl under:
RESOURCES/xbl/orbeon/map/map.xbl
(Restart your servlet container just in case.)
And then hardcode the request with https? This to make sure that the
issue is the xxforms:property() call.
Also to try, adding somewhere:
<xforms:output value=xforms:property('oxf.xforms.xbl.fr.map.ssl')"/>
to see if the property is read correctly.
-Erik
On Tue, Jan 4, 2011 at 1:18 AM, Ian Wright [hidden email] wrote:
Erik,
Yes - same place as the oxf.xforms.xbl.fr.map.key property which works fine.
Copied the text from
http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/map#TOC-Google-API-configuration
Thanks,
Ian
On 19:59, Erik Bruchez wrote:
Ian,
So you set a value for that property in your properties-local.xml, right?
-Erik
On Tue, Dec 21, 2010 at 5:36 AM, Ian Wright[hidden email]
wrote:
Alex,
My first step was to make sure that I could configure the map component
so
that the https URL is used but I haven't got as far as that.
I've done some further investigation and looking at the line below in the
map.xbl file I can't figure out how to make the if evaluate to true
if (xxforms:property('oxf.xforms.xbl.fr.map.ssl')) then
's://maps-api-ssl'
else '://maps'}
I'm sure I'm (not) doing something obvious....
Thanks,
Ian
Ian,
Just to make sure: in addition to setting<property as=s:boolean"
name=xf.xforms.xbl.fr.map.ssl" value="true"/> do you have a Premier
API key for this? Also see:
http://code.google.com/apis/maps/faq.html#ssl
Alex
On Mon, Dec 13, 2010 at 2:43 AM, Ian Wright[hidden email]
wrote:
Hi,
I've got a form which contains the xbl map component and is served
using
https
If somebody says "no" to the dialogue which asks about mixed http/https
content then the form behaves horribly so I've been trying to enable
https
for the map but I haven't had any luck in getting it to work
I've set the property according to:
http://wiki.orbeon.com/forms/doc/developer-guide/xbl-components/map but
it
doesn't seem to work as the http url is still used.
Has anyone had any experience with this?
Thanks,
Ian
--
You receive this message as a subscriber of the [hidden email]
mailing
list.
To unsubscribe: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet
--
You receive this message as a subscriber of the [hidden email] mailing
list.
To unsubscribe: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws
--
You receive this message as a subscriber of the [hidden email] mailing
list.
To unsubscribe: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws
--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
OW2 mailing lists service home page:
http://www.ow2.org/wws