new OpenLayers map viewer with custom components I´d like to share

3 messages Options
Embed this post
Permalink
Juan G

new OpenLayers map viewer with custom components I´d like to share

Reply Threaded More More options
Print post
Permalink
Dear OpenLayers developers:

First of all, I´d like to congratulate all of you for this great job making this fantastic tool.

Second, sorry about my poor english :-( .

I am an spanish developer who have been developing some OpenLayers custom components, and I would like to share my work with you.

I am working for an spanish organization (Confederación Hidrográfica del Duero), which is responsible of the good management and health of a big spanish-portuguese river named "Duero" and all of its afluents. You can see the viewer at this URL:

http://www.mirame.chduero.es/DMADuero_09_Viewer

I was responsible of starting the development of the map viewer, and I suggested using OpenLayers. Finally the Team Leader accepted my suggestion and we started the viewer from OpenLayers source code (the version deployed now is from SVN downloaded 5 days ago more less).

I encountered some minor problems, mainly because of the project requirements (most of them were appearance stuff). I  solved this by putting everything in CSS classes (or id´s). For example, I changed the built-in images from LayerSwitcher for making them CSS-dependant not <img> dependant (hard work here).

Some other important changes I had to do was changing some layerSwitcher behaviour (like not to refresh map after click in one layer, only refresh it by when clicking in a custom "dmaUpdateMap" Control. Another change in LayerSwitcher was putting some "experimental" layers group checkBox and move and drop layer button I could pick from some one in the OpenLayers sandbox (can´t remember now who was! :-( ).

Other big change here was a custom Identify Feature Control, by adding to the LayerSwitcher an option button to select one layer to identify feature from.

I am not an expert in javascript, so I hope you could examine the code I made and change it for future versions of OpenLayers if you think it's worth it.

All the custom components where "copied and pasted" and changed, so I think you could dig into it without problems. The custom components are all in the directory "/js/customDMAOpenlayers".

If you have any question, please tell it to me.

Thanks for this fantastic work!

Greetings from Spain

Juan G

_______________________________________________
Dev mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/dev
rdewit

Re: new OpenLayers map viewer with custom components I´d like to share

Reply Threaded More More options
Print post
Permalink
Hi Juan,

Thank you for sharing the work you've done based on OpenLayers. You will
find that it is easier for your contributions to be added to OpenLayers
when you break them up in smaller bits. You can then create a ticket and
a patch for them [1], so they can be reviewed separately.

If you have found bugs in OL, please report them so they can fixed in
the main application as well. Things like controls not having id's or
classes can be bugs.

You seem to have implemented a new layerswitcher. If so, this could be a
candidate for an addin [2], since it is new functionality that is not
part of the core of OL, but could be useful for others.

I hope you can/will make the time for reporting the bugs you've found
(and the new features you've created). By doing this you'll help making
OL even better than it is now!

Regards,

Roald

[1] http://trac.openlayers.org/wiki/FilingTickets
[2] http://trac.openlayers.org/wiki/Addins

On Thu, 2008-03-13 at 13:18 +0100, Juan G wrote:

> Dear OpenLayers developers:
>
> First of all, I´d like to congratulate all of you for this great job
> making this fantastic tool.
>
> Second, sorry about my poor english :-( .
>
> I am an spanish developer who have been developing some OpenLayers
> custom components, and I would like to share my work with you.
>
> I am working for an spanish organization (Confederación Hidrográfica
> del Duero), which is responsible of the good management and health of
> a big spanish-portuguese river named "Duero" and all of its afluents.
> You can see the viewer at this URL:
>
> http://www.mirame.chduero.es/DMADuero_09_Viewer
>
> I was responsible of starting the development of the map viewer, and I
> suggested using OpenLayers. Finally the Team Leader accepted my
> suggestion and we started the viewer from OpenLayers source code (the
> version deployed now is from SVN downloaded 5 days ago more less).
>
> I encountered some minor problems, mainly because of the project
> requirements (most of them were appearance stuff). I  solved this by
> putting everything in CSS classes (or id´s). For example, I changed
> the built-in images from LayerSwitcher for making them CSS-dependant
> not <img> dependant (hard work here).
>
> Some other important changes I had to do was changing some
> layerSwitcher behaviour (like not to refresh map after click in one
> layer, only refresh it by when clicking in a custom "dmaUpdateMap"
> Control. Another change in LayerSwitcher was putting some
> "experimental" layers group checkBox and move and drop layer button I
> could pick from some one in the OpenLayers sandbox (can´t remember now
> who was! :-( ).
>
> Other big change here was a custom Identify Feature Control, by adding
> to the LayerSwitcher an option button to select one layer to identify
> feature from.
>
> I am not an expert in javascript, so I hope you could examine the code
> I made and change it for future versions of OpenLayers if you think
> it's worth it.
>
> All the custom components where "copied and pasted" and changed, so I
> think you could dig into it without problems. The custom components
> are all in the directory "/js/customDMAOpenlayers".
>
> If you have any question, please tell it to me.
>
> Thanks for this fantastic work!
>
> Greetings from Spain
>
> Juan G
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://openlayers.org/mailman/listinfo/dev
--
Roald de Wit
Software Engineer
[hidden email]

Commercial Support for Open Source GIS Software
http://lisasoft.com/LISAsoft/SupportedProducts/

_______________________________________________
Dev mailing list
[hidden email]
http://openlayers.org/mailman/listinfo/dev
geojoe

Re: new OpenLayers map viewer with custom components I´d like to share

Reply Threaded More More options
Print post
Permalink
In reply to this post by Juan G
I have two or three database point layers that would like to refresh with a custom refresh map control like I saw on your link. (only refresh it by when clicking in a custom "dmaUpdateMap" Control.)

Could you share the code for creating this control in the map init() function?

Thanks,
Joe



Juan G wrote:
Dear OpenLayers developers:

First of all, I´d like to congratulate all of you for this great job making
this fantastic tool.

Second, sorry about my poor english :-( .

I am an spanish developer who have been developing some OpenLayers custom
components, and I would like to share my work with you.

I am working for an spanish organization (Confederación Hidrográfica del
Duero), which is responsible of the good management and health of a big
spanish-portuguese river named "Duero" and all of its afluents. You can see
the viewer at this URL:

http://www.mirame.chduero.es/DMADuero_09_Viewer

I was responsible of starting the development of the map viewer, and I
suggested using OpenLayers. Finally the Team Leader accepted my suggestion
and we started the viewer from OpenLayers source code (the version deployed
now is from SVN downloaded 5 days ago more less).

I encountered some minor problems, mainly because of the project
requirements (most of them were appearance stuff). I  solved this by putting
everything in CSS classes (or id´s). For example, I changed the built-in
images from LayerSwitcher for making them CSS-dependant not  dependant
(hard work here).

Some other important changes I had to do was changing some layerSwitcher
behaviour (like not to refresh map after click in one layer, only refresh it
by when clicking in a custom "dmaUpdateMap" Control. Another change in
LayerSwitcher was putting some "experimental" layers group checkBox and move
and drop layer button I could pick from some one in the OpenLayers sandbox
(can´t remember now who was! :-( ).

Other big change here was a custom Identify Feature Control, by adding to
the LayerSwitcher an option button to select one layer to identify feature
from.

I am not an expert in javascript, so I hope you could examine the code I
made and change it for future versions of OpenLayers if you think it's worth
it.

All the custom components where "copied and pasted" and changed, so I think
you could dig into it without problems. The custom components are all in the
directory "/js/customDMAOpenlayers".

If you have any question, please tell it to me.

Thanks for this fantastic work!

Greetings from Spain

Juan G

_______________________________________________
Dev mailing list
Dev@openlayers.org
http://openlayers.org/mailman/listinfo/dev