--
You received this message because you are subscribed to the Google Groups "mapstore-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-developers+unsub...@googlegroups.com.
To post to this group, send email to mapstore-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/mapstore-developers.
For more options, visit https://groups.google.com/d/optout.
AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
Le informazioni contenute in questo messaggio di posta elettronica e/o nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nel messaggio stesso. Qualora riceviate questo messaggio senza esserne il destinatario, Vi preghiamo cortesemente di darcene notizia via e-mail e di procedere alla distruzione del messaggio stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od utilizzarlo per finalità diverse, costituisce comportamento contrario ai principi dettati dal D.Lgs. 196/2003.
The information in this message and/or attachments, is intended solely for the attention and use of the named addressee(s) and may be confidential or proprietary in nature or covered by the provisions of privacy act (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection Code).Any use not in accord with its purpose, any disclosure, reproduction, copying, distribution, or either dissemination, either whole or partial, is strictly forbidden except previous formal approval of the named addressee(s). If you are not the intended recipient, please contact immediately the sender by telephone, fax or e-mail and delete the information in this message that has been received in error. The sender does not give any warranty or accept liability as the content, accuracy or completeness of sent messages and accepts no responsibility for changes made after they were sent or for other risks which arise as a result of e-mail transmission, viruses, etc.
Hi Lorenzo,
Best regardsAli Nasri
--
Hi,I checked again and everything is done on the right way but it doesn't show yet. If it possible could you please send me an example if you you added some new plugins before?Thank you very much.BestRegardsAli Nasri
const selector = createSelector([ (state) => state.controls && state.controls.infobar && state.controls.infobar.enabled,
// (state) => ....get other parts of the state you want to use...
], (enabled) => ({ enabled
})); const InfobarPlugin = connect(selector)(require('../components/data/infobar/Infobar'));
//....module.exports = { InfobarPlugin: assign(InfobarPlugin, { Toolbar: { name: 'infobar', position: 6, tooltip: "info.tooltip", icon: <Glyphicon glyph="map-marker"/>, help: <Message msgId="helptexts.infoButton"/>, toggle: true } }), reducers: {mapInfo: require('../reducers/infobar')} // <-- only if needed
};
--
You received this message because you are subscribed to the Google Groups "mapstore-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-developers+unsubscribe...@googlegroups.com.
To post to this group, send email to mapstore-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/mapstore-developers.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "mapstore-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstore-developers+unsub...@googlegroups.com.
To post to this group, send email to mapstore-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/mapstore-developers.
For more options, visit https://groups.google.com/d/optout.

const selector = createSelector([ (state) => state.controls && state.controls.infobar && state.controls.infobar.enabled,
(state) => state.infobar && state.infobar.point
], (enabled, point) => ({ enabled,point
module.exports = { InfobarPlugin: assign(InfobarPlugin, { Toolbar: { name: 'infobar', position: 6, tooltip: "info.tooltip", icon: <Glyphicon glyph="map-marker"/>, help: <Message msgId="helptexts.infoButton"/>, toggle: true } }),
reducers: {infobar: require('../reducers/infobar')} // <-- only if needed
};const selector = createSelector([ (state) => state.controls && state.controls.infobar && state.controls.infobar.enabled,
(state) => state.infobar && state.infobar.url
], (enabled, url) => ({
enabled,url
module.exports = { InfobarPlugin: assign(InfobarPlugin, { Toolbar: { name: 'infobar', position: 6, tooltip: "info.tooltip", icon: <Glyphicon glyph="map-marker"/>, help: <Message msgId="helptexts.infoButton"/>, toggle: true } }),
epics: infoBarClickEpic
reducers: {infobar: require('../reducers/infobar')} // <-- only if needed
};
--
epics: infoBarClickEpic
--
Hi,
point => `http://myurl.com/data/${point.latlng.lng}/${point.latlng.lat}`
--
// NOTE getLayerFromId and mapSelector are from web/client/selectors/layers and web/client/selectors/map
const createGetFeatureInfoRequest = (state, action) => {
const layer = getLayerFromId(state ,id); // find the layer from the application state. if you assigned one id to it you can use getLayerFromId, otherwise you can use layersSelector and then find it with filter const props = { map: mapSelector(state), point: action.point };
const {url, request} = buildRequest(layer, props);
return axios.get(url,request);
} const composeIframeURL = (response) => { // TODO get your information from the response.data (json) and retrn your URL. you should find the information in the features array } infoBarClickEpic = (action$, store) = action$.ofType(CLICK_ON_MAP).switchMap( action => Rx.Observable.fromPromise(createGetFeatureInfoRequest(store.getState(), action)).map( response => { return { type: IFRAME_URL_UPDATE, url: composeIframeURL(response) } }))
--