[Geoprisma-dev] GeoNamesSearchCombo wrong LatLng in GP

Alexandre Dube adube at mapgears.com
Mon Nov 23 09:54:02 EST 2009


Found a clue : it has something to do with how the OSM layer is 
defined.  I replaced the definition by only this :

    var layer = new OpenLayers.Layer.OSM("OSM");

and it worked.  I'll dig more.

Alexandre


Alexandre Dube wrote:
> Yves,
>
>  I tried what you proposed but it didn't solved the issue.  I made a 
> text.html file out of what GeoPrisma outputs to try to find out what's 
> wrong.  See the attached file and simply put it in :
>
>  I'll dig more and report back.  Thanks for your help,
>
> Alexandre
>
>
> Yves Moisan wrote:
>> Le vendredi 20 novembre 2009 à 16:14 -0500, Alexandre Dube a écrit :
>>  
>>> Hey,
>>>
>>>   I don't know why (yet), but the GeoNamesSearchCombo widget, when 
>>> used in GeoPrisma, doesn't zoom the the correct location.  See the 
>>> difference between the two samples below :
>>>
>>> [1] 
>>> http://dev.geoext.org/ux/GeoNamesSearchCombo/examples/GeoNamesSearchComboExample.html 
>>>
>>>     
>>
>> <script type="text/javascript"
>> src="http://extjs.cachefly.net/builds/ext-cdn-771.js"></script>
>>         <link rel="stylesheet" type="text/css" 
>> href="http://extjs.cachefly.net/ext-2.2.1/resources/css/ext-all.css" />
>>         <link rel="stylesheet" type="text/css" 
>> href="http://extjs.cachefly.net/ext-2.2.1/examples/shared/examples.css" 
>> />
>>         <script 
>> src="http://openlayers.org/api/2.8/OpenLayers.js"></script>
>>
>>
>>  
>>> [2] http://www.geoprisma.org/samples/geoextux/geonamessearchcombo/
>>>     
>>
>> We use Ext 3.0 and trunk of the other libs.  Maybe you could try with
>> the same JS libraries used on dev.geoext ?
>>
>> Yves
>>
>>
>>
>>   
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Geoprisma-dev mailing list
> Geoprisma-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geoprisma-dev
>   


-- 
Alexandre Dubé
Mapgears
www.mapgears.com




More information about the Geoprisma-dev mailing list