cybersthang / gmaps-utility-library-dev

Automatically exported from code.google.com/p/gmaps-utility-library-dev
0 stars 0 forks source link

Mapsicle has an absolute link to a stylesheet #166

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In the following code in mapsicle.js:

Mapsicle.Startup.addStyleSheet = function () {
  // TODO: just add styles via javascript
  var cssLink = document.createElement("link");
  cssLink.href =
"http://gmaps-utility-library-dev.googlecode.com/svn/trunk/mapsicle/src/mapsicle
.css";

The link is an absolute link to the googlecode site.  This is problematic
if the user wanted to download the code and load mapsicle locally.  This 
should be changed to:

  cssLink.href = "mapsicle.css";

Though I suppose there are probably some issues with that as well. 
Possibly the code should manipulate location to make sure it's loaded from
the same branch as the mapsicle.js file.

Original issue reported on code.google.com by chimpath...@gmail.com on 25 Nov 2009 at 8:07

GoogleCodeExporter commented 8 years ago

Original comment by stephend@gmail.com on 30 Nov 2009 at 2:38

GoogleCodeExporter commented 8 years ago
Now it should link to mapsicle.css at the same path that mapsicle.js was 
included from.

Original comment by stephend@gmail.com on 10 Dec 2009 at 12:14

GoogleCodeExporter commented 8 years ago

Original comment by stephend@gmail.com on 13 Dec 2009 at 10:21

GoogleCodeExporter commented 8 years ago

Original comment by stephend@gmail.com on 4 Jan 2010 at 9:14