Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
bartvde committed Feb 2, 2017
1 parent 4a75238 commit f7b16bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/geonode.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ global.enMessages = enMessages;

import Save from './save';
import MapUrlLink from '../containers/MapUrlLink';
import {getLocalGeoServer, getThumbnail} from '../services/geonode';
import {getLocalGeoServer, saveThumbnail} from '../services/geonode';

import '../css/app.css'
import 'boundless-sdk/dist/css/components.css';
Expand All @@ -49,7 +49,7 @@ var map = new ol.Map({
});

global.createMapThumbnail = function() {
getThumbnail(map);
saveThumbnail(map);
};

class GeoNodeViewer extends React.Component {
Expand Down
2 changes: 1 addition & 1 deletion src/services/geonode.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const getLocalGeoServer = (sources, baseUrl) => {
}
}
};
export const getThumbnail = (map, opt_id) => {
export const saveThumbnail = (map, opt_id) => {
let url = new URL(window.location.href);
if (opt_id !== undefined) {
url.set('pathname', url.pathname.replace('new', opt_id));
Expand Down

0 comments on commit f7b16bc

Please sign in to comment.