That&#39;s it!!! <div><div>And the solution was under my nose!</div><div>Well, that&#39;s almost it - it works now with FF and Chrome, but with IE8 it works only in &quot;compatibility mode&quot;. That&#39;s with proj4js-compressed.</div>
<div><br></div><div>Thanks a bunch, I owe you a beer!</div><div><br></div><div>New link, still be live for some time if someone has a followup...</div><div><br></div><div><a href="http://89.164.44.84/geoserver/kutina/pretrazivanje_po_ulicama_vanjski_7.html">http://89.164.44.84/geoserver/kutina/pretrazivanje_po_ulicama_vanjski_7.html</a></div>
<div><br></div><div>still looking for advice/links/tips on building the &quot;search by address&quot; web app.</div><div><br></div><div>Best regards,</div><div><br clear="all">--- <br>Zoran Jankovic<br>ZIS-Izrada softvera i savjetovanje / ZIS - Software Development and Consulting<br>
<br><a href="http://www.zisis.hr">http://www.zisis.hr</a><br><br>M: 00 385 98 682 902<br>T:  00 385 44 683 374<br><br>A. Senoe 4<br>44320 Kutina<br>Croatia<br>
<br><br><div class="gmail_quote">On Thu, Jun 10, 2010 at 7:45 PM, Mike Adair <span dir="ltr">&lt;<a href="mailto:madair@dmsolutions.ca">madair@dmsolutions.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Zoran,<br>
<br>
It looks like you are using Proj4js where it dynamically loads the required projection code files.  In some earlier versions of Proj4js that had problems in IE (possibly in Chrome as well) but I think that is fixed in the latest version.  In any case, you can get around the issue by using proj4js-compressed.js rather than proj4js.js which includes all projection code.  You can also build your own version of Proj4js-compressed with only the projections you need and it would save a little space.<br>

<br>
Mike<br>
<br>
<br>
<br>
Zoran Jankovic wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
Hi list,<br>
<br>
I&#39;m sort of a newbie, and I have a question regarding the usage of Proj4.js, defining displayProjection and various browser interpretation. In short, everything works as intended when using latest Firefox, but it seems that my custom displayProjection is not recognized when using Chrome or IE8.<br>

<br>
I have defined both SphericalMercator and my custom projection using Proj4js.defs. I do not not for sure that this is necessary, but I have found that retrieving selected data via WFS displays as I want only using this setup, and only using Firefox. So FF displays data correctl on the first load, you can choose Street name and click on &quot;Display&quot; button, and voila, the map zooms to the streets BBOX. IE8 and Chrome show initial ma extent somewhere in Turkmenistan, bounds are not transformed/projected correctly and you can only see GMaps, not my data that is several thousand km west :-).<br>

<br>
My problem is, if I have to point it out by now, that I really need to make it work at least with IE8 :-(.<br>
<br>
Perhaps it is best that you should look at the example. The site is not live, so I set up a little port forwarding... Please, do not abuse :-). The site is in Croatian, yes I know the encoding is screwed, but this is all ad hoc, just to solve this projection problem.<br>

It is intended to be used for searching street names, and later on for addresses as well, maybe we&#39;ll add some POI with pictures (pop up), etc. If anyone has experience with this sort of things, I would very much appreciate all the help, tips and/or links.<br>

<br>
<a href="http://89.164.44.84/geoserver/kutina/pretrazivanje_po_ulicama_vanjski_4.html" target="_blank">http://89.164.44.84/geoserver/kutina/pretrazivanje_po_ulicama_vanjski_4.html</a><br>
<br>
The link will be live for a couple of hours... Try it with FF, and then with Chrome or IE8 and you&#39;ll see what my problem is :-(.<br>
<br>
---<br>
Zoran Jankovic<br>
ZIS-Izrada softvera i savjetovanje / ZIS - Software Development and Consulting<br>
<br>
<a href="http://www.zisis.hr" target="_blank">http://www.zisis.hr</a><br>
<br>
M: 00 385 98 682 902<br>
T:  00 385 44 683 374<br>
<br>
A. Senoe 4<br>
44320 Kutina<br>
Croatia<br></div></div>
------------------------------------------------------------------------<div class="im"><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br>
  <br>
</div></blockquote>
<br>
-- <br>
  Michael Adair<br>
  Senior Software Architect<br>
  DM Solutions Group Inc.<br>
<br>
  Office: (613) 565-5056 x26<br>
  <a href="mailto:madair@dmsolutions.ca" target="_blank">madair@dmsolutions.ca</a><br>
  <a href="http://www.dmsolutions.ca" target="_blank">http://www.dmsolutions.ca</a><br>
  <a href="http://research.dmsolutions.ca" target="_blank">http://research.dmsolutions.ca</a><br>
<br>
<br>
</blockquote></div><br></div></div>