Skip to content

onMapMove replace location entirely #54

@dmmishchenko

Description

@dmmishchenko

function completely replaces the location, but should replace the "hash" field

onMapMove: function() {
			// bail if we're moving the map (updating from a hash),
			// or if the map is not yet loaded

			if (this.movingMap || !this.map._loaded) {
				return false;
			}

			var hash = this.formatHash(this.map);
			if (this.lastHash != hash) {
				location.replace(hash); - **right here**
				this.lastHash = hash;
			}
		}

Can we change it to location.hash = hash;?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions