[OpenLayers-Users] Javascript problem
Alexandre Gacon
alexandre.gacon at gmail.com
Wed Apr 9 07:47:32 EDT 2008
Hello all,
Thanks to Pierre I made a first version of a ViaMichelin based layer for
OpenLayers.
You will find attached to this mail:
- a zip file containing the following files:
* a version of event.js modified with the patch of Pierre.
* a version of OpenLayers.js modified to reference the new ViaMichelin.js
file.
* the ViaMichelin.js file.
* a ViaMichelin.html example file.
- a html file from ViaMichelin to test the different functions of the API.
There is still some problems with the layer:
- The ViaMichelin javascript API must be called from a web server like
apache or tomcat. If not, you are automatically redirected to the
ViaMichelin Website.
- You can not use other layers with this layer : there is problems with
Array objects.
I don't know if it's worth to be integrated in the OpenLayers development.
If yes, I don't know how to do this.
If by any chance you have any idea to solve the Array problem, it will be
welcome.
Alexandre
On Wed, Apr 9, 2008 at 9:12 AM, Alexandre Gacon <alexandre.gacon at gmail.com>
wrote:
> Hello Pierre,
>
> Your patch resolved my problem : now I can try to find why the pan is not
> well handled for my layer.
>
> Thank you !
>
> Alexandre
>
>
> On Tue, Apr 8, 2008 at 5:54 PM, Pierre GIRAUD <bluecarto at gmail.com> wrote:
>
> > Can you try the patch attached to the ticket I just opened for this
> > issue ?
> > http://trac.openlayers.org/ticket/1502
> >
> > Regards,
> > Pierre
> >
> > On Tue, Apr 8, 2008 at 5:32 PM, Pierre GIRAUD <bluecarto at gmail.com>
> > wrote:
> > > I took a quick look at your problem by trying to load the ViaMichelin
> > > API beside OpenLayers (in lite.html example).
> > > An error is raised in Events.js where OpenLayers tries to call push()
> > > on an array.
> > >
> > > But it seems that the ViaMichelin API modifies/extends the Array
> > > prototype to provide a new "ci" function (bad! bad!).
> > >
> > > This is a quick investigation and I have no workaround at the moment.
> > >
> > > Regards,
> > > Pierre
> > >
> > >
> > >
> > >
> > > On Tue, Apr 8, 2008 at 5:13 PM, Alexandre Gacon
> > > <alexandre.gacon at gmail.com> wrote:
> > > > Hello,
> > > >
> > > > I am trying to develop a new Layer based on the service provided by
> > > > ViaMichelin. My problem is the following : as soon as I include the
> > > > reference to the JavaScript API of ViaMichelin (accessible via
> > <script
> > > > src="http://api.viamichelin.com/apijs/js/api.js"></script>),
> > OpenLayers does
> > > > not work anymore, even if I do not use my ViaMichelin Layer.
> > > >
> > > > I took the google example and just added the script line : the
> > google
> > > > example do not work anymore.
> > > >
> > > > If anyone has an idea, it would be great.
> > > >
> > > > Alexandre
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Users mailing list
> > > > Users at openlayers.org
> > > > http://openlayers.org/mailman/listinfo/users
> > > >
> > > >
> > >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openlayers.org/pipermail/users/attachments/20080409/c821773c/attachment-0002.htm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openlayers.org/pipermail/users/attachments/20080409/c821773c/attachment-0003.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openlayers_viamichelin.zip
Type: application/zip
Size: 11123 bytes
Desc: not available
Url : http://openlayers.org/pipermail/users/attachments/20080409/c821773c/attachment-0001.zip
More information about the Users
mailing list