/** * Gets the map url. * * @param mapName the map name * @return the map url */ public static String getMapUrl(String mapName) { if (mapName.equalsIgnoreCase("circoscrizioniBis")) mapName = "circoscrizioni"; File file = new File(ConfigSingleton.getRootPath() + "/maps/genova/" + mapName + ".svg"); try { return file.toURL().toString(); } catch (MalformedURLException e) { e.printStackTrace(); return null; } }