0
Commit Graph

47 Commits

Author SHA1 Message Date
Nicolas F
05cc9e60e7 Don't collapse marker group control 2018-05-06 17:12:03 +02:00
Nicolas F
ea33ebe2fb Assume 32x32 marker size so they get centred
Maybe expose this as an option to the markers dict later, with
the anchor as an option too.
2018-05-06 16:59:27 +02:00
Nicolas F
614663f601 Show marker group display names 2018-05-06 16:53:32 +02:00
Nicolas F
84b52326dc leaflet: Reimplement coordinate box on bottom left
I'd move the event setup into addTo, but JS is utter garbage and thinks
"this" in a function callback like that should be whatever, not where you
actually define it.
2017-03-13 14:04:37 +01:00
Andrew Chin
7a6b9973c2 Protect against optional marker variable 2017-02-19 11:46:44 -05:00
Nicolas F
99817f786f Re-implement map compass 2017-02-19 11:36:37 -05:00
Nicolas F
e0b36fa9e4 Move icon anchor to tip of icons
The spawn and location icons should now have the tip of the icon
image point at the actual location. Previously, the icons were
centred onto it, which was slightly off in the vertical direction.
2017-02-19 11:36:24 -05:00
Nicolas F
6426182c1e Add retina size icons for spawn and location
Unfortunately we need to explicitly tell leaflet not to scale them
weirdly but to make them perceptually equivalent to the normal ones,
which means we have hardcoded icon sizes for those two right now.
2017-02-19 11:36:15 -05:00
Nicolas F
ebfd40c995 Centre map view on spawn marker if left-clicked 2017-02-19 11:35:34 -05:00
Nicolas F
9bcf2d5542 Re-implement location marker
Click to centre, right-click to dismiss.
2017-02-19 11:35:24 -05:00
Andrew Chin
91a571d628 WIP marker stuff 2017-02-19 11:30:28 -05:00
Andrew Chin
5047655bb7 Fix for IE11 2016-12-10 17:56:12 -05:00
Andrew Chin
ad85b3ff6a Initial reimplementation of url hash updating 2016-12-10 14:56:18 -05:00
Nicolas F
0731ea65cd Re-implement configurable bgcolor 2016-12-10 14:56:18 -05:00
Nicolas F
003fc9cb47 Fix errorTileUrl for JPEG tilesets 2016-12-10 14:56:18 -05:00
Nicolas F
044c65f922 Get rid of overviewer.gmap, move code into util 2016-12-10 14:56:17 -05:00
Nicolas F
2cfa3e8731 Add tset config to leaflet layer, refactor marker
Instead of stuffing specialised values into overviewer.collections,
put a reference to the overviewerConfig tileset entry into the leaflet
layer, so that we can access it from callbacks easily.
2016-12-10 14:56:17 -05:00
Nicolas F
cfa2a9f39b Re-implement spawn marker
Let's hope this works, any bugs are totally my fault.
2016-12-10 14:56:17 -05:00
Nicolas F
64598e9c01 Set errorTileUrl to blank.png
Hopefully this code is correct, I have not tried with a different
"base" variable, but I don't even know what that thing is.
2016-12-10 14:56:17 -05:00
Andrew Chin
6d3062fade Misc leaflet fixes 2016-12-10 14:56:17 -05:00
Andrew Chin
d593a4e974 Added world switcher control 2016-12-10 14:56:17 -05:00
Andrew Chin
e58d23b1a0 Initial commit to drop gmaps and to add support for leaflet
Many things do not work at the moment:
* Missing world selector
* Missing overlays (overlay tilesets and markers)
* Missing urlhash code
* Probably other stuff
2016-12-10 14:56:17 -05:00
Aaron Griffith
a8fc3300b4 general fixes for min/maxzoom, documentation cleared up
hopeful fix for #1086
2014-04-05 20:29:58 -04:00
Thomas Lake
cd48aaa656 Rearrange infoWindow contents to shrink icon size
Addresses issue #1057
2014-01-30 14:17:37 +00:00
Kang Seonghoon
e466f891e1 hashchange triggered by setHash is now properly ignored 2013-05-12 00:36:13 +09:00
Kang Seonghoon
372b4e5e44 added support for hashchange event for recent browsers 2013-05-12 00:36:13 +09:00
CounterPillow
3ad99d9461 Added possibility to return tuple from filterfunc
If the returned type is a tuple, it will be interpreted as first the
title (i.e. hovertext), then the content of the infowindow. If the
returned type is a string, it will be used as both the title and
infowindow content (the old behaviour). This means that older configs
are still compatible and need no changes.
2013-01-01 21:15:38 +01:00
CounterPillow
bfcb53ede3 Added marker at coordinates in the url
Addresses issue #782
2012-11-29 18:48:54 +01:00
Filip Weiss
4eea7e4426 Forgot vars at top 2012-07-30 20:26:04 +02:00
Filip Weiss
ba046967de Added onready function
for other scripts that rely on overviewer
2012-07-30 20:11:16 +02:00
Kevin Chang
884860ebe0 fix incorrect world coord <-> latlng conversion for orientations other than upper-left 2012-07-29 15:40:51 -07:00
Andrew Chin
944de7bf2d Fix rotated regionset POI issue
Correctly handle POIs on two regionsets that have different rotations,
but share the same filterFunction(s)
2012-07-28 20:08:56 -04:00
Andrew Chin
5d43227edf Merge remote branch 'origin/master' into JSObserver 2012-06-10 14:59:17 -04:00
Richard Pastrick
b13bbd0204 Add the JS stuff and a little bit more python glue to make overlays only display for a specified render 2012-04-12 08:59:13 -07:00
Thomas Lake
55df1bcf78 Add new Javascript observer
Output render progress onto the rendered map using Javascript
A minimum period between updates can be specified
2012-04-08 23:03:26 +01:00
Andrew Chin
94b5f21d10 Have the world selector control have a correct default 2012-04-07 16:15:01 -04:00
Andrew Chin
6528aa91e7 Added overlay control to HTML 2012-04-07 15:03:06 -04:00
Andrew Chin
729fcda964 Display a spawn marker 2012-03-11 17:59:29 -04:00
Andrew Chin
5b168ebdbd Removed console debugging output 2012-03-11 13:33:02 -04:00
Andrew Chin
6b77d54555 Reimplement signs/POIs 2012-03-11 11:44:38 -04:00
Andrew Brown
0b34c7f1c3 changed JS to properly compute coords for anvil format 2012-02-25 16:17:49 -05:00
Andrew Chin
c5c45363e3 Remove debug console logging from js
This caused problems on browsers that didn't know what to do with
the 'console' object (like IE, and older versions of Firefox)
2012-02-19 18:11:44 -05:00
Andrew Chin
90dfc2b4af More javascript improvments related to northdirection 2012-02-11 15:39:32 -05:00
Andrew Chin
eb9649e310 Readded url hash updating
as a "side-effect", the current coords remain centered when switching
tilesets.  at least in theory.  needs more work
2012-02-11 00:29:28 -05:00
Andrew Chin
2e3bf7330d The coords box now displays the correct coords for every rotation 2012-02-10 21:55:28 -05:00
Andrew Chin
b7d2733f0c The compass now changes direction to make the tileset 2012-02-10 20:44:11 -05:00
Andrew Chin
19fcee24f7 Split up overviewer.js into several files 2012-02-08 21:07:53 -05:00